Skip to content

Commit a9e40f7

Browse files
Tim Bannistertamilselvan1102
andcommitted
Improve dark mode handling (main page only)
Co-authored-by: Tamilselvan Thangamony <[email protected]>
1 parent 32a4184 commit a9e40f7

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

assets/scss/_custom.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,10 @@ footer {
473473
@media (prefers-color-scheme: dark) {
474474
.cid-home main {
475475
background-color: $dark-bg-color-2;
476-
color:$dark-text-color-1;
476+
color:$dark-text-color-1;
477477
}
478478

479-
.cid-home main section:not(#video) {
479+
.cid-home main section:not(#video):not(#cncf) {
480480
background-color: $dark-bg-color-1;
481481
color:$dark-text-color-1;
482482
}
@@ -497,6 +497,16 @@ footer {
497497
.cid-home main section:is(#video) #desktopKCButton:hover {
498498
background-color: $dark-bg-color-1;
499499
}
500+
501+
.cid-home main section:is(#talkToUs) img {
502+
filter: invert(100%);
503+
-webkit-filter: invert(100%);
504+
}
505+
506+
.cid-home main section:is(#cncf) {
507+
background-color: $dark-bg-color-2;
508+
background-image: url(/images/cncf-white.png);
509+
}
500510
}
501511

502512
/* COMMUNITY */

static/images/cncf-white.png

22.3 KB
Loading

0 commit comments

Comments
 (0)