Skip to content

Commit

Permalink
Improve dark mode handling (main page only)
Browse files Browse the repository at this point in the history
Co-authored-by: Tamilselvan Thangamony <[email protected]>
  • Loading branch information
sftim and tamilselvan1102 committed Jan 28, 2025
1 parent 1cc9887 commit 65fcbcc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions assets/scss/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,10 @@ footer {
@media (prefers-color-scheme: dark) {
.cid-home main {
background-color: $dark-bg-color-2;
color:$dark-text-color-1;
color:$dark-text-color-1;
}

.cid-home main section:not(#video) {
.cid-home main section:not(#video):not(#cncf) {
background-color: $dark-bg-color-1;
color:$dark-text-color-1;
}
Expand All @@ -441,6 +441,16 @@ footer {
.cid-home main section:is(#video) #desktopKCButton:hover {
background-color: $dark-bg-color-1;
}

.cid-home main section:is(#talkToUs) img {
filter: invert(100%);
-webkit-filter: invert(100%);
}

.cid-home main section:is(#cncf) {
background-color: $dark-bg-color-2;
background-image: url(/images/cncf-white.png);
}
}

/* COMMUNITY */
Expand Down
Binary file added static/images/cncf-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 65fcbcc

Please sign in to comment.