Skip to content

Commit 32a4184

Browse files
Tim Bannistertamilselvan1102
andcommitted
Home page enable dark mode
Co-Authored-By: Tamilselvan Thangamony <[email protected]>
1 parent 4762f58 commit 32a4184

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

assets/scss/_custom.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,35 @@ footer {
469469
}
470470
}
471471

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+
}
472501

473502
/* COMMUNITY */
474503

assets/scss/_variables_project.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ $tooltip-font-size: 1rem;
2020
$tooltip-padding: 5px 8px;
2121
$tooltip-border-radius: 6px;
2222
$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;

0 commit comments

Comments
 (0)