1
+ :root {
2
+ --page-max-width : 55rem ;
3
+ --navbar-height : 5.937rem ;
4
+
5
+ --color-text : #333 ;
6
+ --color-link : #0098d4 ;
7
+
8
+ --page-header-height : 15rem ;
9
+
10
+ --borders-color : #ddd ;
11
+ }
12
+
1
13
* {
2
14
box-sizing : border-box ;
3
15
}
4
16
5
17
html {
6
- height : 100% ;
7
- font-size : 100% ;
8
-
9
18
scroll-snap-type : y proximity ;
10
19
scroll-padding-top : 1.875rem ; // obtained by fine tuning
11
20
scroll-behavior : smooth ;
12
21
}
13
22
14
23
body {
15
- font-size : 100% ;
16
- display : flex ;
17
- justify-content : space-between ;
18
- flex-direction : column ;
19
- height : 100% ;
20
24
margin : 0 ;
21
- min-height : 100 % ;
25
+ min-height : 100 svh ;
22
26
background-color : #fff ;
23
- color : #333 ;
27
+ color : var ( --color-text ) ;
24
28
25
29
font-family : " Helvetica Neue" ,
26
30
" Helvetica" ,
@@ -36,29 +40,16 @@ body {
36
40
/* Emojis*/
37
41
" Segoe UI Symbol" ;
38
42
39
- font-weight : 400 ;
40
43
line-height : 1.75 ;
41
44
}
42
45
43
46
main {
44
- padding-top : 95px ;
45
- }
46
-
47
- img {
48
- max-width : 100% ;
49
- vertical-align : middle ;
50
- display : inline-block ;
51
- height : auto ;
47
+ padding-top : var (--navbar-height );
52
48
}
53
49
54
50
a {
55
- color : #0098d4 ;
51
+ color : var ( --color-link ) ;
56
52
text-decoration : none ;
57
-
58
- & :active ,
59
- & :hover {
60
- outline : 0 ;
61
- }
62
53
}
63
54
64
55
ul ,
@@ -83,51 +74,23 @@ ol:last-child {
83
74
84
75
.content {
85
76
width : 100% ;
86
- max-width : 850 px ;
77
+ max-width : var ( --page-max-width ) ;
87
78
88
- margin : 10 px auto ;
79
+ margin : .625 rem auto ;
89
80
padding : 0 1.5rem ;
90
81
91
82
img {
92
83
max-height : 40rem ;
93
84
}
94
85
95
86
@media (max-width : 767px ) {
96
- padding-left : 14 px ;
97
- padding-right : 14 px ;
87
+ padding-left : 1 rem ;
88
+ padding-right : 1 rem ;
98
89
}
99
90
}
100
91
101
- .content.dark {
102
- background-color : #f4f4f4 ;
103
- }
104
-
105
- .w-button {
106
- display : inline-block ;
107
- padding : 9px 15px ;
108
- background-color : #3898EC ;
109
- color : white ;
110
- border : 0 ;
111
- line-height : inherit ;
112
- text-decoration : none ;
113
- cursor : pointer ;
114
- border-radius : 0 ;
115
- }
116
-
117
- .w-button.button-dark {
118
- margin-top : 10px ;
119
- margin-bottom : 10px ;
120
- padding : 10px 30px ;
121
- border-radius : 20px ;
122
- background-color : #000 ;
123
- color : #fff ;
124
- }
125
-
126
- .w-button.button-dark :hover {
127
- background-color : #0098d4 ;
128
- }
129
-
130
92
.site-footer {
93
+ position : relative ;
131
94
z-index : 1 ;
132
95
background-color : #000 ;
133
96
width : 100% ;
@@ -178,49 +141,6 @@ ol:last-child {
178
141
}
179
142
}
180
143
181
- .grid {
182
- display : flex ;
183
- flex-wrap : wrap ;
184
- justify-content : flex-start ;
185
- width : 100% ;
186
-
187
- .grid-container-third {
188
- padding : 10px ;
189
- width : 33% ;
190
-
191
- @media (max-width : 767px ) {
192
- width : 100% ;
193
- }
194
- }
195
-
196
- .grid-container {
197
- padding : 10px ;
198
- width : 50% ;
199
-
200
- @media (max-width : 767px ) {
201
- width : 100% ;
202
- }
203
- }
204
-
205
- .grid-container-full {
206
- padding : 10px ;
207
- width : 100% ;
208
- }
209
-
210
- .block {
211
- p {
212
- text-align : center ;
213
- }
214
-
215
- padding : 20px ;
216
- display : flex ;
217
- height : 100% ;
218
- flex-direction : column ;
219
- justify-content : flex-start ;
220
- align-items : center ;
221
- }
222
- }
223
-
224
144
pre {
225
145
padding : 1rem ;
226
146
overflow : auto ;
@@ -254,13 +174,22 @@ pre table {
254
174
255
175
/* The black block on pages at the top. */
256
176
.page-header {
257
- width : 100% ;
258
- height : 23.5rem ;
177
+ display : flex ;
178
+ flex-direction : column ;
179
+ justify-content : center ;
180
+ padding-inline : 5.625rem ;
181
+ @media (max-width : 767px ) {
182
+ padding-inline : 2rem ;
183
+ }
184
+ padding-bottom : calc (var (--navbar-height )/ 2 );
185
+
186
+ min-height : var (--page-header-height );
259
187
background-color : #000000 ;
260
188
overflow : hidden ;
261
189
262
190
background-image : url (/ assets/page-header-bg.svg );
263
- background-size : 100% 100% ;
191
+ background-size : 90% 100% ;
192
+ background-position : bottom right ;
264
193
background-repeat : no-repeat ;
265
194
266
195
@media (max-width : 767px ) {
@@ -269,25 +198,17 @@ pre table {
269
198
}
270
199
271
200
.hero-block {
272
-
273
- @media (max-width : 767px ) {
274
- margin : 60px 32px 70px ;
275
- }
276
-
277
- margin : 89px 80px ;
278
-
279
201
h1 {
280
202
font-style : normal ;
281
203
font-weight : 700 ;
282
- font-size : 3.125 rem ;
204
+ font-size : 2.8 rem ;
283
205
line-height : 120% ;
284
206
color : #FFFFFF ;
285
207
}
286
208
287
209
p {
288
210
font-style : normal ;
289
- font-weight : 400 ;
290
- font-size : 1.5rem ;
211
+ font-size : 1.4rem ;
291
212
line-height : 120% ;
292
213
293
214
display : flex ;
@@ -314,7 +235,7 @@ pre table {
314
235
background-repeat : no-repeat ;
315
236
padding : 1rem ;
316
237
317
- max-width : 45 % ;
238
+ max-width : 23 rem ;
318
239
319
240
.wrapper {
320
241
display : flex ;
@@ -343,12 +264,8 @@ pre table {
343
264
background-size : 100% 100% ;
344
265
width : 3rem ;
345
266
height : 3rem ;
346
- margin : auto auto auto .5rem ;
267
+ margin : auto 0 auto .5rem ;
347
268
transform : rotate (-90deg );
348
269
filter : invert (1 );
349
270
}
350
271
}
351
-
352
- h1 , h2 , h3 , h4 {
353
- font-weight : 700 ;
354
- }
0 commit comments