File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -469,6 +469,35 @@ footer {
469
469
}
470
470
}
471
471
472
+ // Home page dark-mode
473
+ @media (prefers-color-scheme : dark ) {
474
+ .cid-home main {
475
+ background-color : $dark-bg-color-2 ;
476
+ color :$dark-text-color-1 ;
477
+ }
478
+
479
+ .cid-home main section :not (#video ) {
480
+ background-color : $dark-bg-color-1 ;
481
+ color :$dark-text-color-1 ;
482
+ }
483
+
484
+ .cid-home .feature-box div {
485
+ background-color : $dark-bg-color-2 ;
486
+ color :$dark-text-color-1 ;
487
+ }
488
+
489
+ .cid-home main section :is (#video ) #desktopShowVideoButton {
490
+ background-color : $dark-bg-color-1 ;
491
+ }
492
+
493
+ .cid-home main section :is(#video ) #desktopShowVideoButton :hover {
494
+ color : $dark-text-color-2 ;
495
+ }
496
+
497
+ .cid-home main section :is(#video ) #desktopKCButton :hover {
498
+ background-color : $dark-bg-color-1 ;
499
+ }
500
+ }
472
501
473
502
/* COMMUNITY */
474
503
Original file line number Diff line number Diff line change @@ -20,3 +20,9 @@ $tooltip-font-size: 1rem;
20
20
$tooltip-padding : 5px 8px ;
21
21
$tooltip-border-radius : 6px ;
22
22
$tooltip-font-weight : 400 ;
23
+
24
+ // light / dark mode support
25
+ $dark-bg-color-1 : #303030 ;
26
+ $dark-bg-color-2 : #4f4f4f ;
27
+ $dark-text-color-1 : #ffffff ;
28
+ $dark-text-color-2 : #3371e3 ;
You can’t perform that action at this time.
0 commit comments