6
6
color: var(--color-info);
7
7
background-color: rgb(27, 42, 56);
8
8
} */
9
- : root {
9
+ : root , . defaultTheme {
10
10
--color-primary : # 0b192e ;
11
11
--color-secondary : # 182b45 ;
12
12
--color-tertiary : # 0b3341 ;
13
+ --color-quaternary : # 1c3250 ;
13
14
--color-accent : # 0cc9ab ;
14
15
15
16
--color-black : # 202121 ;
28
29
--color-info : # 177edc ;
29
30
}
30
31
32
+ @layer base {
33
+ html [data-theme = "accessibility" ], .accessibilityTheme {
34
+ --color-primary : # fff ;
35
+ --color-secondary : # f1f5f9 ;
36
+ --color-tertiary : # e2e8f0 ;
37
+ --color-quaternary : # cbd5e1 ;
38
+ --color-accent : # 055E4F ; /* 7.04:1 contrast to #f1f5f9 */
39
+
40
+ --color-black : # fff ;
41
+ --color-dark : # 000 ;
42
+ /*--color-transparent: #fff;*/
43
+ --color-light : lime;
44
+ --color-white : # 000 ;
45
+ /* text*/
46
+ --color-heading : # 777 ;
47
+ --color-subheading : # 333 ;
48
+ --color-body : # 555 ;
49
+ /*
50
+ --color-error: #ff0000;
51
+ --color-success: ;
52
+ --color-info: ;
53
+ --color-warning: ;
54
+ */
55
+
56
+
57
+ * {
58
+ font-family : "Lexend" !important ;
59
+ /* font-size: clamp(20px, 1em, 100px) !important; */
60
+ line-height : 1.6 !important ;
61
+ letter-spacing : 2.5px !important ;
62
+ }
63
+ p , a , label , h1 , h2 , h3 , h4 , h5 , h6 {
64
+ color : # 000 ;
65
+ }
66
+ /*
67
+ .text-heading-4, .text-body-1, .text-body-2, .text-subheading, .text-subheading-1, p, a, button {
68
+ font-size: 20px !important;
69
+ }
70
+ */
71
+ : focus {
72
+ outline : none;
73
+ box-shadow : 0 0 0 5px # FFD700 ;
74
+ }
75
+ }
76
+ }
77
+
31
78
/* ======================================================= Fonts */
32
79
@font-face {
33
80
font-family : "Ubuntu Mono" ;
51
98
U+FEFF, U+FFFD;
52
99
}
53
100
101
+ @font-face {
102
+ font-family : "Lexend" ;
103
+ src : url(~ / public/fonts/Lexend/Lexend-Regular.ttf) for mat("truetype" );
104
+ unicode-range : U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
105
+ U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
106
+ U+FEFF, U+FFFD;
107
+ }
108
+
54
109
/* ======================================================= Transitions */
55
110
.slide-up-enter-active ,
56
111
.slide-up-leave-active {
102
157
/*** iPhone and iOS Form Input Zoom Fixes ***/
103
158
/* Fix Input Zoom on devices older than iPhone 5: */
104
159
@media screen and (device-aspect-ratio : 2 / 3 ) {
160
+
105
161
select ,
106
162
textarea ,
107
163
input [type = "text" ],
121
177
122
178
/* Fix Input Zoom on iPhone 5, 5C, 5S, iPod Touch 5g */
123
179
@media screen and (device-aspect-ratio : 40 / 71 ) {
180
+
124
181
select ,
125
182
textarea ,
126
183
input [type = "text" ],
140
197
141
198
/* Fix Input Zoom on iPhone 6, iPhone 6s, iPhone 7 */
142
199
@media screen and (device-aspect-ratio : 375 / 667 ) {
200
+
143
201
select ,
144
202
textarea ,
145
203
input [type = "text" ],
160
218
161
219
/* Fix Input Zoom on iPhone 6 Plus, iPhone 6s Plus, iPhone 7 Plus, iPhone 8, iPhone X, XS, XS Max */
162
220
@media screen and (device-aspect-ratio : 9 / 16 ) {
221
+
163
222
select ,
164
223
textarea ,
165
224
input [type = "text" ],
184
243
}
185
244
}
186
245
187
- @media (resolution > 1.5dppx) and (resolution <= 2dppx) {
188
- html {
189
- }
246
+ @media (resolution > 1.5dppx) and (resolution <= 2dppx) {
247
+ html {}
190
248
}
191
249
192
- @media (resolution > 1dppx) and (resolution <= 1.5dppx) and (min-height : 550px ) {
250
+ @media (resolution > 1dppx) and (resolution <= 1.5dppx) and (min-height : 550px ) {
193
251
html {
194
252
font-size : 12px ;
195
253
}
196
254
}
197
255
198
- @media (resolution <= 1dppx) {
256
+ @media (resolution <= 1dppx) {
199
257
body {
200
258
/* @apply bg-warning; */
201
259
}
206
264
html {
207
265
scroll-behavior : smooth;
208
266
}
267
+
209
268
body {
210
269
overflow-x : hidden;
211
270
width : 100vw ;
250
309
-webkit-appearance : none;
251
310
margin : 0 ;
252
311
}
312
+
253
313
input ::-webkit-outer-spin-button ,
254
314
input ::-webkit-inner-spin-button {
255
315
-webkit-appearance : none;
263
323
* ::-webkit-scrollbar {
264
324
width : 5px ;
265
325
}
326
+
266
327
* ::-webkit-scrollbar-thumb {
267
328
background : var (--color-transparent );
268
329
}
330
+
269
331
* : hover ::-webkit-scrollbar-thumb {
270
332
background : var (--color-accent );
271
333
opacity : 0.6 ;
272
334
border-radius : 20px ;
273
335
}
336
+
274
337
body : hover ::-webkit-scrollbar-thumb {
275
338
background : var (--color-tertiary );
276
339
}
340
+
277
341
* : hover {
278
342
-ms-overflow-style : var (--color-accent ) !important ;
279
343
scrollbar-width : 5px !important ;
280
344
scrollbar-color : var (--color-accent );
281
345
}
346
+
282
347
body : hover {
283
348
-ms-overflow-style : var (--color-tertiary ) !important ;
284
349
scrollbar-color : var (--color-tertiary );
289
354
.markdown h1 {
290
355
@apply text-heading-1;
291
356
}
357
+
292
358
.markdown h2 {
293
359
@apply text-heading-2;
294
360
}
361
+
295
362
.markdown h3 {
296
363
@apply text-heading-3;
297
364
}
365
+
298
366
.markdown h4 {
299
367
@apply text-heading-4;
300
368
}
369
+
301
370
.markdown h5 {
302
371
@apply text-heading-5;
303
372
}
326
395
@apply py-1 px-2 rounded w-fit bg-[# 0d1117 ] text-white;
327
396
}
328
397
329
- .markdown pre > code {
398
+ .markdown pre > code {
330
399
@apply py-0 px-0 rounded-none w-fit bg-transparent;
331
400
}
332
401
337
406
.form-submitting * {
338
407
@apply opacity-70 pointer-events-none;
339
408
}
409
+
340
410
.underline-link {
341
411
@apply pb-2 relative cursor-pointer;
342
412
}
413
+
343
414
.underline-link ::after {
344
415
content : "" ;
345
416
position : absolute;
349
420
bottom : 0 ;
350
421
left : 0 ;
351
422
}
423
+
352
424
.clamp {
353
425
--n-lines : 1 ;
354
426
margin : 0 ;
357
429
text-overflow : ellipsis;
358
430
display : -webkit-box;
359
431
-webkit-box-orient : vertical;
360
- -webkit-line-clamp : var (--n-lines ); /* number of lines to show */
432
+ -webkit-line-clamp : var (--n-lines );
433
+ /* number of lines to show */
361
434
line-clamp : var (--n-lines );
362
435
}
436
+
363
437
.clamp .line-1 {
364
438
--n-lines : 1 ;
365
439
}
440
+
366
441
.clamp .line-2 {
367
442
--n-lines : 2 ;
368
443
}
444
+
369
445
.clamp .line-3 {
370
446
--n-lines : 3 ;
371
447
}
448
+
372
449
.clamp .line-4 {
373
450
--n-lines : 4 ;
374
451
}
452
+
375
453
.h-screen-main {
376
454
--bar-language-height : 28px ;
377
455
--bar-navigation-height : 79px ;
378
456
--total : calc (var (--bar-language-height ) + var (--bar-navigation-height ));
379
457
--screen-height : calc (100vh - var (--total ));
380
458
height : var (--screen-height );
381
459
}
460
+
382
461
.h-screen-main .min {
383
462
height : 100% ;
384
463
min-height : var (--screen-height );
385
464
}
465
+
386
466
.h-screen-main .max {
387
467
height : fit-content;
388
468
max-height : var (--screen-height );
389
469
}
470
+
390
471
.mt-main {
391
472
@apply mt-2 md:mt-4 lg:mt-6 xl:mt-8;
392
473
}
474
+
393
475
.mb-main {
394
476
@apply mb-6 sm:mb-10 md:mb-12 xl:mb-14;
395
477
}
401
483
--screen-height : calc (100vh - var (--total ));
402
484
height : var (--screen-height );
403
485
}
486
+
404
487
.h-screen-inner .min {
405
488
height : fit-content;
406
489
min-height : var (--screen-height );
407
490
}
491
+
408
492
.h-screen-inner .max {
409
493
height : fit-content;
410
494
max-height : var (--screen-height );
417
501
418
502
/* Hide scrollbar for IE, Edge and Firefox */
419
503
.hide-scrollbar {
420
- -ms-overflow-style : none !important ; /* IE and Edge */
421
- scrollbar-width : none !important ; /* Firefox */
504
+ -ms-overflow-style : none !important ;
505
+ /* IE and Edge */
506
+ scrollbar-width : none !important ;
507
+ /* Firefox */
422
508
overflow : auto !important ;
423
509
}
510
+
424
511
.modal-width-sm {
425
512
@apply w-full sm:w-2/3 md:w-2/4 lg:w-2/6 xl:w-[28% ];
426
513
}
514
+
427
515
.modal-width-md {
428
516
@apply w-[99% ] md:w-[60% ];
429
517
}
518
+
430
519
.modal-width-lg {
431
- @apply w-[99% ] md:w-[90% ];
520
+ @apply w-[99% ] md:w-[90% ];
432
521
}
522
+
433
523
[data-tooltip ] {
434
524
--triangle-width : 15px ;
435
525
--spacing : 10px ;
463
553
464
554
[data-tooltip ]: hover ::after {
465
555
@apply box style-box bg-info text-white font-body absolute text-xs leading-[1.6 ];
466
- content : attr (data-tooltip); /* magic! */
467
- left : calc (
468
- 100% + var (--spacing ) + var (--triangle-width ) + var (--triangle-width )
469
- );
556
+ content : attr (data-tooltip);
557
+ /* magic! */
558
+ left : calc (100% + var (--spacing ) + var (--triangle-width ) + var (--triangle-width ));
470
559
top : -50% ;
471
560
z-index : 98 ;
472
561
width : var (--tooltip-width );
493
582
[data-tooltip = "" ]::after {
494
583
display : none !important ;
495
584
}
496
- }
585
+ }
0 commit comments