Skip to content

Commit c472c19

Browse files
committed
30-08-2023
0 parents  commit c472c19

45 files changed

Lines changed: 2052 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

css/general.css

Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
* {
2+
padding: 0;
3+
margin: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
html {
8+
/* Percentage of user's browser font-size setting */
9+
font-size: 62.5%;
10+
overflow-x: hidden;
11+
12+
/* Does NOT work on Safari */
13+
/* scroll-behavior: smooth; */
14+
}
15+
16+
body {
17+
font-family: "Rubik", sans-serif;
18+
line-height: 1;
19+
font-weight: 400;
20+
color: #555;
21+
22+
/* Only works if there is nothing absolutely positioned in relation to body */
23+
overflow-x: hidden;
24+
}
25+
26+
/**************************/
27+
/* GENRAL REUSABLE COMPONENTS */
28+
/**************************/
29+
30+
.container {
31+
/* 1140px */
32+
max-width: 120rem;
33+
padding: 0 3.2rem;
34+
margin: 0 auto;
35+
}
36+
37+
.grid {
38+
display: grid;
39+
column-gap: 5rem;
40+
row-gap: 9.6rem;
41+
}
42+
43+
.grid:not(:last-child) {
44+
margin-bottom: 9.6rem;
45+
}
46+
47+
.grid--2-cols {
48+
grid-template-columns: repeat(2, 1fr);
49+
}
50+
51+
.grid--3-cols {
52+
grid-template-columns: repeat(3, 1fr);
53+
}
54+
55+
.grid--4-cols {
56+
grid-template-columns: repeat(4, 1fr);
57+
}
58+
59+
.grid--center-v {
60+
align-items: center;
61+
}
62+
63+
.heading-primary,
64+
.heading-secondary,
65+
.heading-tertiary {
66+
font-weight: 700;
67+
color: #333;
68+
letter-spacing: -0.5px;
69+
}
70+
71+
.heading-primary {
72+
font-size: 5.2rem;
73+
line-height: 1.05;
74+
margin-bottom: 3.2rem;
75+
}
76+
77+
.heading-secondary {
78+
font-size: 4.4rem;
79+
line-height: 1.2;
80+
margin-bottom: 9.6rem;
81+
}
82+
83+
.heading-tertiary {
84+
font-size: 3rem;
85+
line-height: 1.2;
86+
margin-bottom: 3.2rem;
87+
}
88+
89+
.subheading {
90+
display: block;
91+
font-size: 1.6rem;
92+
font-weight: 500;
93+
color: #cf711f;
94+
text-transform: uppercase;
95+
margin-bottom: 1.6rem;
96+
letter-spacing: 0.75px;
97+
}
98+
99+
.btn,
100+
.btn:link,
101+
.btn:visited {
102+
display: inline-block;
103+
104+
text-decoration: none;
105+
font-size: 2rem;
106+
font-weight: 600;
107+
padding: 1.6rem 3.2rem;
108+
border-radius: 9px;
109+
110+
/* Only necessary for .btn */
111+
border: none;
112+
cursor: pointer;
113+
font-family: inherit;
114+
115+
/* Put transition on original "state" */
116+
transition: all 0.3s;
117+
}
118+
119+
.btn--full:link,
120+
.btn--full:visited {
121+
background-color: #e67e22;
122+
color: #fff;
123+
}
124+
125+
.btn--full:hover,
126+
.btn--full:active {
127+
background-color: #cf711f;
128+
}
129+
130+
.btn--outline:link,
131+
.btn--outline:visited {
132+
background-color: #fff;
133+
color: #555;
134+
}
135+
136+
.btn--outline:hover,
137+
.btn--outline:active {
138+
background-color: #fdf2e9;
139+
140+
/* Trick to add border inside */
141+
box-shadow: inset 0 0 0 3px #fff;
142+
}
143+
144+
.btn--form {
145+
background-color: #45260a;
146+
color: #fdf2e9;
147+
align-self: end;
148+
padding: 1.2rem;
149+
}
150+
151+
.btn--form:hover {
152+
background-color: #fff;
153+
color: #555;
154+
}
155+
156+
.link:link,
157+
.link:visited {
158+
display: inline-block;
159+
color: #e67e22;
160+
text-decoration: none;
161+
border-bottom: 1px solid currentColor;
162+
padding-bottom: 2px;
163+
transition: all 0.3s;
164+
}
165+
166+
.link:hover,
167+
.link:active {
168+
color: #cf711f;
169+
border-bottom: 1px solid transparent;
170+
}
171+
172+
.list {
173+
list-style: none;
174+
display: flex;
175+
flex-direction: column;
176+
gap: 1.6rem;
177+
}
178+
179+
.list-item {
180+
font-size: 1.8rem;
181+
display: flex;
182+
align-items: center;
183+
gap: 1.6rem;
184+
line-height: 1.2;
185+
}
186+
187+
.list-icon {
188+
width: 3rem;
189+
height: 3rem;
190+
color: #e67e22;
191+
}
192+
193+
*:focus {
194+
outline: none;
195+
box-shadow: 0 0 0 0.8rem rgba(230, 125, 34, 0.5);
196+
}
197+
198+
/* HELPER/SETTINGS CLASSES */
199+
.margin-right-sm {
200+
margin-right: 1.6rem !important;
201+
}
202+
203+
.margin-bottom-md {
204+
margin-bottom: 4.8rem !important;
205+
}
206+
207+
.center-text {
208+
text-align: center;
209+
}
210+
211+
strong {
212+
font-weight: 500;
213+
}

0 commit comments

Comments
 (0)