1
+ /*
2
+
3
+ --- 01 TYPOGRAPHY SYSTEM
4
+
5
+ - FONT SIZES SYSTEM (px)
6
+
7
+ 10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
8
+
9
+ - FONT WEIGHTS:
10
+ Default : 400,
11
+ Medium : 500,
12
+ Semi-Bold : 600,
13
+ Bold : 700
14
+
15
+ - LINE HEIGHTS:
16
+ Default: 1;
17
+ small : 1.05
18
+ Medium: 1.2
19
+ Paragraph default : 1.6
20
+
21
+ - Letter spacing
22
+ 0.5px
23
+ 1.2px
24
+
25
+ --- 02 COLORS
26
+
27
+ Primary: #e67e22 , #cf711f
28
+ Tints: #fdf2e9 , #fae5d3
29
+ Shades: #cf711f
30
+ Accents:
31
+ Greys: #555 , #333
32
+
33
+ --- 05 SHADOWS
34
+
35
+
36
+ --- 06 BORDER-RADIUS
37
+ Defualt: 9px
38
+
39
+ -- 07 WHITESPACE
40
+
41
+ - SPACING SYSTEM (px)
42
+ 2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
43
+
44
+
45
+
46
+ */
47
+
1
48
* {
2
- padding : 0 ;
3
49
margin : 0 ;
50
+ padding : 0 ;
4
51
box-sizing : border-box;
5
52
}
6
53
7
54
html {
55
+ /* font-size: 10px; */
56
+ /* 10px / 16px = 0.625 = 62.5% */
8
57
font-size : 62.5% ;
58
+ overflow-x : hidden;
59
+
60
+ /* not work on safari */
61
+ /* scroll-behavior: smooth; */
9
62
}
10
63
11
64
body {
12
65
font-family : "Rubik" , sans-serif;
13
66
line-height : 1 ;
14
67
font-weight : 400 ;
15
68
color : # 555 ;
69
+ overflow-x : hidden;
16
70
}
17
71
18
- /**************************/
19
- /* GENRAL REUSABLE COMPONENTS */
20
- /**************************/
21
-
72
+ /*******************************/
73
+ /* General Reusable Components */
74
+ /*******************************/
22
75
.container {
23
- /* 1140px */
24
76
max-width : 120rem ;
25
- padding : 0 3.2rem ;
26
77
margin : 0 auto;
78
+ padding : 0 3.2rem ;
27
79
}
28
80
29
81
.grid {
30
82
display : grid;
31
83
column-gap : 6.4rem ;
32
84
row-gap : 9.6rem ;
33
- /* margin-bottom: 9.6rem ; */
85
+ /* padding: 3.2rem ; */
34
86
}
35
87
36
- /* .grid:last-child {
88
+ .grid : last-child {
37
89
margin-bottom : 0 ;
38
- } */
90
+ }
39
91
40
92
.grid : not (: last-child ) {
41
93
margin-bottom : 9.6rem ;
42
94
}
43
95
44
- .grid--2-- cols {
96
+ .grid--2-cols {
45
97
grid-template-columns : repeat (2 , 1fr );
46
98
}
47
99
48
- .grid--3-- cols {
100
+ .grid--3-cols {
49
101
grid-template-columns : repeat (3 , 1fr );
50
102
}
51
103
52
- .grid--4-- cols {
104
+ .grid--4-cols {
53
105
grid-template-columns : repeat (4 , 1fr );
54
106
}
55
107
56
- .grid--5-- cols {
108
+ .grid--5-cols {
57
109
grid-template-columns : repeat (5 , 1fr );
58
110
}
59
111
60
- .grid--center-- v {
112
+ .grid--center-v {
61
113
align-items : center;
62
114
}
63
115
64
- .heading__primary ,
65
- .heading__secondary ,
66
- .heading__tertiary {
67
- font-weight : 700 ;
68
- color : # 333 ;
69
- /* color: #45260a; */
70
- /* color: #343a40; */
116
+ .heading-primary ,
117
+ .heading-secondary ,
118
+ .heading-tertiary {
71
119
letter-spacing : -0.5px ;
120
+ color : # 333 ;
121
+ font-weight : 700 ;
72
122
}
73
123
74
- .heading__primary {
124
+ .heading-primary {
75
125
font-size : 5.2rem ;
76
126
line-height : 1.05 ;
77
127
margin-bottom : 3.2rem ;
78
128
}
79
129
80
- .heading__secondary {
130
+ .heading-secondary {
81
131
font-size : 4.4rem ;
82
- line-height : 1.2 ;
83
132
margin-bottom : 9.6rem ;
84
133
}
85
134
86
- .heading__tertiary {
135
+ .heading-tertiary {
87
136
font-size : 3rem ;
88
137
line-height : 1.2 ;
89
138
margin-bottom : 3.2rem ;
@@ -93,7 +142,7 @@ body {
93
142
display : block;
94
143
font-size : 1.6rem ;
95
144
font-weight : 500 ;
96
- color : # cf711f ;
145
+ color : # e67e22 ;
97
146
text-transform : uppercase;
98
147
margin-bottom : 1.6rem ;
99
148
letter-spacing : 0.75px ;
@@ -103,33 +152,19 @@ body {
103
152
.btn : link ,
104
153
.btn : visited {
105
154
display : inline-block;
106
-
107
- text-decoration : none;
108
- font-size : 2rem ;
109
155
font-weight : 600 ;
156
+ font-size : 2rem ;
157
+ text-decoration : none;
110
158
padding : 1.6rem 3.2rem ;
111
159
border-radius : 9px ;
112
160
113
- /* Only necessary for .btn */
161
+ /* only necessory for button */
114
162
border : none;
115
163
cursor : pointer;
116
- font-family : inherit;
164
+ color : inherit;
117
165
118
- /* Put transition on original "state" */
119
- /* transition: background-color 0.3s; */
120
166
transition : all 0.3s ;
121
167
}
122
- .btn--form {
123
- background-color : # 45260a ;
124
- color : # fdf2e9 ;
125
- align-self : center;
126
- padding : 1.2rem ;
127
- }
128
-
129
- .btn--form : hover {
130
- background-color : # fff ;
131
- color : # 555 ;
132
- }
133
168
134
169
.btn--full : link ,
135
170
.btn--full : visited {
@@ -152,9 +187,8 @@ body {
152
187
.btn--outline : active {
153
188
background-color : # fdf2e9 ;
154
189
155
- /* border: 3px solid #fff; */
190
+ /* border: 2px solid #fff; */
156
191
157
- /* Trick to add border inside */
158
192
box-shadow : inset 0 0 0 3px # fff ;
159
193
}
160
194
@@ -166,18 +200,18 @@ body {
166
200
}
167
201
168
202
.btn--form : hover {
169
- background-color : # fff ;
203
+ background-color : # fdf2e9 ;
170
204
color : # 555 ;
171
205
}
172
206
173
207
.link : link ,
174
208
.link : visited {
175
209
display : inline-block;
176
- color : # e67e22 ;
177
210
text-decoration : none;
211
+ color : # e67e22 ;
178
212
border-bottom : 1px solid currentColor;
179
213
padding-bottom : 2px ;
180
- transition : all 0.3 s ;
214
+ transition : all 0.35 s ;
181
215
}
182
216
183
217
.link : hover ,
@@ -186,34 +220,34 @@ body {
186
220
border-bottom : 1px solid transparent;
187
221
}
188
222
189
- .list__items {
223
+ .list {
190
224
list-style : none;
191
225
display : flex;
192
226
flex-direction : column;
193
227
gap : 1.6rem ;
194
228
}
195
229
196
- .list__item {
230
+ .list-item {
197
231
font-size : 1.8rem ;
232
+
198
233
display : flex;
199
234
align-items : center;
200
235
gap : 1.6rem ;
201
236
}
202
237
203
- .list__icon {
238
+ .list-icon {
204
239
width : 3rem ;
205
240
height : 3rem ;
206
241
color : # e67e22 ;
207
242
}
208
243
209
244
* : focus {
210
245
outline : none;
211
- /* outline: 4px dotted #e67e22; */
212
- /* outline-offset: 8px; */
213
- box-shadow : 0 0 0 0.8rem rgba (230 , 125 , 34 , 0.5 );
246
+ box-shadow : 0 0 0 0.8rem rgba (230 , 125 , 34 , 0.494 );
214
247
}
215
248
216
- /* HELPER/SETTINGS CLASSES */
249
+ /* Helper Classes */
250
+
217
251
.margin-right-sm {
218
252
margin-right : 1.6rem !important ;
219
253
}
@@ -222,10 +256,10 @@ body {
222
256
margin-bottom : 4.8rem !important ;
223
257
}
224
258
225
- .center-text {
226
- text-align : center;
227
- }
228
-
229
259
strong {
230
260
font-weight : 500 ;
261
+ }
262
+
263
+ .centered-text {
264
+ text-align : center;
231
265
}
0 commit comments