3
3
top : 0 ;
4
4
left : 0 ;
5
5
font-family : 'Oswald' , sans-serif;
6
+ scroll-behavior : smooth;
6
7
7
8
/*Fixed Background*/
8
9
background : linear-gradient (rgba (0 , 0 , 0 , 0.5 ), rgba (0 , 0 , 0 , 0.5 )), url(../ res/bg.jpg);
@@ -18,11 +19,11 @@ html {
18
19
19
20
--header-transparency : rgba (0 , 0 , 0 , 0.7 );
20
21
21
- --image-size : 20 % ;
22
+ --image-size : 30 % ;
22
23
--red : # d22 ;
23
24
--dark-gray : # 111 ;
24
25
--gray : # 151515 ;
25
- --light -gray : # 222 ;
26
+ --transparent -gray : # 222E ;
26
27
27
28
--quick-transition : cubic-bezier (0.165 , 0.84 , 0.44 , 1 ) 0.5s ;
28
29
--long-transition : cubic-bezier (0.215 , 0.610 , 0.355 , 1 ) 1s ;
@@ -46,35 +47,35 @@ html {
46
47
font-size : calc (var (--desktop-height ) / 2 );
47
48
margin : auto 0 ;
48
49
}
49
- # logo-header {
50
+ . logo-header {
50
51
display : none;
51
52
opacity : 0 ;
52
53
margin : auto 0 ;
53
54
}
54
- # logo-header a {
55
+ . logo-header a {
55
56
text-decoration : none;
56
57
color : # fff ;
57
58
}
58
- # logo-header img {
59
+ . logo-header img {
59
60
display : flex;
60
61
margin-left : 5px ;
61
62
}
62
- # links-header {
63
+ . links-header {
63
64
display : flex;
64
65
flex : 1 ;
65
66
margin : auto 0 ;
66
67
justify-content : space-around;
67
68
transition : var (--quick-transition );
68
69
}
69
- # links-header a {
70
+ . links-header a {
70
71
color : # eee ;
71
72
text-align : center;
72
73
margin : auto 1vw ;
73
74
text-decoration : none;
74
75
font-family : 'Dosis' , sans-serif;
75
76
transition : var (--quick-transition );
76
77
}
77
- .header , # links-header , # logo-header , # logo-header img {
78
+ .header , . links-header , . logo-header , . logo-header img {
78
79
height : var (--desktop-height );
79
80
font-size : calc (var (--desktop-height ) / 2 );
80
81
}
@@ -88,16 +89,16 @@ html {
88
89
font-size : calc (var (--desktop-height ) / 1.75 );
89
90
height : calc (var (--desktop-height ) * 1.5 );
90
91
}
91
- # links-header a : hover {
92
+ . links-header a : hover {
92
93
color : var (--red );
93
94
}
94
95
95
96
/*Sticky header*/
96
- .sticky > # logo-header {
97
+ .sticky > . logo-header {
97
98
opacity : 1 ;
98
99
display : flex;
99
100
}
100
- .sticky > # links-header {
101
+ .sticky > . links-header {
101
102
display : flex;
102
103
flex : 1 1 0 ;
103
104
justify-content : flex-end;
@@ -121,47 +122,47 @@ html {
121
122
}
122
123
123
124
/* Banner settings */
124
- # banner {
125
+ . banner {
125
126
/*Sizing*/
126
127
height : 100vh ;
127
128
width : 100% ;
128
129
color : # fff ;
129
130
overflow : hidden;
130
- font-size : 4 vw ;
131
+ font-size : calc ( 32 px + 2 vw ) ;
131
132
transition : var (--long-transition );
132
133
133
134
/*Flexbox content*/
134
135
justify-content : center;
135
136
align-items : center;
136
137
display : flex;
137
138
}
138
- # banner h1 {
139
+ . banner h1 {
139
140
filter : drop-shadow (-5px 6px 3px rgba (0 , 0 , 0 , .7 ));
140
141
}
141
- # banner img {
142
- width : 20 vw ;
142
+ . banner img {
143
+ width : calc ( 32 px + 14 vw ) ;
143
144
filter : drop-shadow (-5px 6px 3px rgba (0 , 0 , 0 , .7 ));
144
145
transition : var (--long-transition );
145
146
}
146
147
147
148
/* Text field settings */
148
- # text {
149
+ . text {
149
150
display : flex;
150
151
flex-wrap : wrap;
151
- width : 95 % ;
152
+ width : 100 % ;
152
153
min-height : 100px ;
153
- background-color : var (--light -gray );
154
+ background-color : var (--dark -gray );
154
155
color : # fff ;
155
156
align-self : center;
156
157
transition : var (--quick-transition );
157
158
}
158
159
159
- # text h2 {
160
+ . text h2 {
160
161
text-align : center;
161
162
width : 100% ;
162
163
margin : 3vw 0 ;
163
- font-size : 5 vw ;
164
- line-height : 8 vw ;
164
+ font-size : calc ( 32 px + 2 vw ) ;
165
+ line-height : 1.4 em ;
165
166
background-color : var (--gray );
166
167
transition : var (--quick-transition );
167
168
color : var (--red );
@@ -175,106 +176,97 @@ html {
175
176
margin : 0 auto;
176
177
flex-direction : row;
177
178
flex : 1 ;
178
- font-size : 1.2 vw ;
179
+ font-size : calc ( 16 px + 0.5 vw ) ;
179
180
flex-wrap : wrap;
180
181
align-items : flex-start;
181
182
text-align : center;
182
183
font-family : 'Dosis' , sans-serif;
183
184
transition : var (--quick-transition );
184
185
}
185
186
.row {
186
- width : 45 % ;
187
+ width : 50 % ;
187
188
}
188
189
.text-field h3 {
189
- font-size : 1.2 vw ;
190
+ font-size : calc ( 16 px + 1 vw ) ;
190
191
margin : 0 ;
191
192
}
192
193
193
194
/*Category of descriptions*/
194
195
.category {
195
- margin : 1.5vw 0 ;
196
196
display : flex;
197
197
flex-wrap : nowrap;
198
- width : 100% ;
198
+ width : 90% ;
199
+ margin : 1.5vw auto;
199
200
overflow : hidden;
200
201
transition : var (--quick-transition );
201
- filter : saturate (0% );
202
202
color : # fff ;
203
- box-shadow : 0 4px 8px -2px # 000 ;
204
203
}
205
204
.category img {
206
- width : 40 % ;
205
+ width : 80 % ;
207
206
max-width : 900px ;
208
207
padding : 5% 5% 5% 5% ;
209
208
transition : var (--quick-transition );
210
209
}
211
- .category : hover {
212
- color : # c22 ;
213
- box-shadow : 0 10px 8px -2px # 000 ;
214
- filter : saturate (100% );
215
- }
216
210
217
211
/*Left Side settings*/
218
212
.left {
219
- background-color : var (--dark-gray );
220
213
width : var (--image-size );
221
214
display : flex;
222
- justify-content : center ;
215
+ justify-content : flex-end ;
223
216
align-items : center;
224
217
min-width : 200px ;
225
218
transition : var (--quick-transition );
226
219
}
227
220
228
221
.swap .left {
229
222
order : 1 ;
223
+ justify-content : flex-start;
230
224
}
231
225
232
226
/*Right side settings*/
233
227
.right {
234
- background-color : var (--gray );
235
228
width : calc (100% - var (--image-size ));
236
229
display : flex;
237
230
flex-direction : column;
238
- padding : 2 % ;
231
+ padding : 5 % ;
239
232
justify-content : center;
240
- text-align : right ;
233
+ text-align : left ;
241
234
transition : var (--quick-transition );
242
235
}
243
236
.right h3 {
244
237
font-size : 3vw ;
245
238
margin : 0 ;
246
239
}
247
240
.right p {
248
- font-size : 1.5vw ;
249
- font-style : italic;
241
+ font-size : calc (16px + 0.75vw );
250
242
font-family : 'Open Sans Condensed' , sans-serif;
251
243
}
252
244
.swap .right {
253
245
order : 0 ;
254
- text-align : left ;
246
+ text-align : right ;
255
247
}
256
248
257
249
/*Webpage footer*/
258
- # footer {
250
+ . footer {
259
251
color : # fff ;
260
252
display : flex;
261
- width : 100 % ;
253
+ width : 95 % ;
262
254
height : auto;
263
- font-size : 1 vw ;
255
+ font-size : calc ( 16 px + 0.75 vw ) ;
264
256
text-align : center;
265
257
align-items : center;
266
258
overflow : hidden;
267
259
align-content : space-around;
268
- padding : 2% 0 ;
260
+ padding : 2% 2.5 % ;
269
261
background-color : var (--dark-gray );
270
262
}
271
- # footer a {
263
+ . footer a {
272
264
color : var (--red );
273
265
text-decoration : none;
274
266
padding : 0 0.5vw ;
275
267
}
276
- # footer-r , # footer-r a {
277
- font-size : 1 .5vw ;
268
+ . footer-r , . footer-r a {
269
+ font-size : calc ( 16 px + 0 .5vw ) ;
278
270
padding : 0 ;
279
271
font-style : italic;
280
272
}
@@ -292,35 +284,38 @@ html {
292
284
opacity : 0 ;
293
285
display : none;
294
286
}
295
- # links-header a {
296
- font-size : 3 vw ;
287
+ . links-header a {
288
+ font-size : calc ( 16 + 1 vw ) ;
297
289
}
298
- .header , # links-header , # links-header a , # logo-header img {
290
+ .header , . links-header , . links-header a , . logo-header img {
299
291
height : var (--mobile-height );
300
292
line-height : var (--mobile-height );
301
293
}
302
294
.header : hover {
303
- background-color : var (--header-transparency );
295
+ background-color : var (--dark-gray );
304
296
height : var (--mobile-height );
305
297
}
306
- .header : hover > # links-header a {
298
+ .header : hover > . links-header a {
307
299
line-height : var (--mobile-height );
308
- font-size : 3 vw ;
300
+ font-size : inherit ;
309
301
}
310
302
311
303
/*Banner settings*/
312
- # banner {
304
+ . banner {
313
305
font-size : 4vw ;
314
306
height : 300px ;
315
307
}
316
- # banner img {
308
+ . banner img {
317
309
width : 20vw ;
318
310
}
319
311
320
312
/*Category settings*/
321
313
.category {
322
314
flex-wrap : wrap;
323
- margin : 2vw 0 ;
315
+ margin : 3vh 0 ;
316
+ width : 100% ;
317
+ background-color : var (--gray );
318
+ box-shadow : 0px 10px 10px 5px rgba (0 , 0 , 0 , 1 );
324
319
}
325
320
.category img {
326
321
width : 30% ;
@@ -336,6 +331,7 @@ html {
336
331
}
337
332
.left {
338
333
min-width : 200px ;
334
+ background-color : # 5551 ;
339
335
}
340
336
.swap .right {
341
337
order : 1 ;
@@ -346,10 +342,10 @@ html {
346
342
text-align : center;
347
343
}
348
344
.right h3 {
349
- font-size : 6 vw ;
345
+ font-size : calc ( 16 px + 3 vw ) ;
350
346
}
351
347
.right p {
352
- font-size : 3 vw ;
348
+ font-size : calc ( 16 px + 1 vw ) ;
353
349
margin : 0 ;
354
350
}
355
351
@@ -358,43 +354,40 @@ html {
358
354
width : 100% ;
359
355
margin : 10px 0 ;
360
356
}
357
+ .text h2 {
358
+ font-size : calc (16px + 7vw );
359
+ line-height : 1.4em ;
360
+ }
361
361
.text-field {
362
- font-size : 3 vw ;
362
+ font-size : calc ( 12 px + 0.75 vw ) ;
363
363
padding : 10px ;
364
364
justify-content : space-between;
365
365
}
366
366
.text-field h3 {
367
- font-size : 4 vw ;
367
+ font-size : calc ( 16 px + 1.2 vw ) ;
368
368
}
369
369
370
370
/*Footer settings*/
371
- # footer {
371
+ . footer {
372
372
width : 90% ;
373
373
padding : 0 5% ;
374
- font-size : 4 vw ;
374
+ font-size : calc ( 16 px + 1.2 vw ) ;
375
375
height : auto;
376
376
flex-flow : wrap;
377
377
}
378
- # footer a {
379
- font-size : 4 vw ;
378
+ . footer a {
379
+ font-size : calc ( 16 px + 1.2 vw ) ;
380
380
padding : 0 7px 0 7px ;
381
381
}
382
- # footer-r , # footer-r a {
383
- font-size : 3 vw ;
382
+ . footer-r , . footer-r a {
383
+ font-size : calc ( 16 px + 0.5 vw ) ;
384
384
padding : 0 ;
385
385
}
386
- # footer-r {
386
+ . footer-r {
387
387
padding : 0 0 10px 0 ;
388
388
}
389
389
}
390
390
391
- /*Fit text to whole screen*/
392
- @media screen and (max-width : 1280px ) {
393
- # text {
394
- width : 100% ;
395
- }
396
- }
397
-
398
391
/*Scrollbar hide*/
399
392
::-webkit-scrollbar {
400
393
width : 0 ;
0 commit comments