Skip to content

Commit a57b4a5

Browse files
Tim Bannistertamilselvan1102
andcommitted
Prepare site main page for dark mode
Co-authored-by: Tamilselvan Thangamony <[email protected]>
1 parent 2c82605 commit a57b4a5

File tree

2 files changed

+81
-29
lines changed

2 files changed

+81
-29
lines changed

assets/scss/_custom.scss

Lines changed: 74 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -471,41 +471,87 @@ footer {
471471

472472
// Home page dark-mode
473473
@media (prefers-color-scheme: dark) {
474-
.cid-home main {
475-
background-color: $dark-bg-color-2;
476-
color:$dark-text-color-1;
477-
}
474+
body.cid-home {
475+
main {
476+
background-color: $dark-bg-color-2;
477+
color:$dark-text-color-1;
478+
479+
section:not(#video):not(#cncf) {
480+
background-color: $dark-bg-color-1;
481+
color:$dark-text-color-1;
482+
}
478483

479-
.cid-home main section:not(#video):not(#cncf) {
480-
background-color: $dark-bg-color-1;
481-
color:$dark-text-color-1;
482-
}
484+
section#video #desktopShowVideoButton {
485+
background-color: $dark-bg-color-1;
486+
}
483487

484-
.cid-home .feature-box div {
485-
background-color: $dark-bg-color-2;
486-
color:$dark-text-color-1;
487-
}
488+
section#video #desktopShowVideoButton {
489+
color: $white;
490+
background-color: $primary;
488491

489-
.cid-home main section:is(#video) #desktopShowVideoButton {
490-
background-color: $dark-bg-color-1;
491-
}
492+
&:hover {
493+
color: $primary;
494+
background-color: $white;
495+
}
492496

493-
.cid-home main section:is(#video) #desktopShowVideoButton:hover {
494-
color: $dark-text-color-2;
495-
}
497+
&::before {
498+
border-color: transparent transparent transparent $white;
499+
}
496500

497-
.cid-home main section:is(#video) #desktopKCButton:hover {
498-
background-color: $dark-bg-color-1;
499-
}
501+
&:hover::before {
502+
border-color: transparent transparent transparent $primary;
503+
}
504+
}
500505

501-
.cid-home main section:is(#talkToUs) img {
502-
filter: invert(100%);
503-
-webkit-filter: invert(100%);
504-
}
506+
section#video #desktopKCButton:hover {
507+
background-color: $dark-bg-color-1;
508+
}
509+
510+
section#cncf {
511+
background-color: $dark-bg-color-2;
512+
}
505513

506-
.cid-home main section:is(#cncf) {
507-
background-color: $dark-bg-color-2;
508-
background-image: url(/images/cncf-white.png);
514+
section.features-container .k8s-features-heading {
515+
color: $white;
516+
background-color: $dark-bg-color-1;
517+
}
518+
519+
section.features-container > div > .feature-box {
520+
background-color: $dark-bg-color-2;
521+
color:$dark-text-color-1;
522+
523+
h3 a, h4 a, h5 a {
524+
color: $white;
525+
background: transparent;
526+
}
527+
528+
h3 a:hover, h4 a:hover, h5 a:hover {
529+
text-decoration: underline;
530+
}
531+
}
532+
533+
.search-bar {
534+
background-color: #d3d3d3;
535+
color: #ffffff;
536+
> * {
537+
color: #ffffff;
538+
}
539+
}
540+
541+
input.search-input, input.email {
542+
background-color: #D3D3D3 !important;
543+
color: #000 !important;
544+
}
545+
546+
input.search-input::placeholder, input.email::placeholder{
547+
color: #000;
548+
}
549+
550+
#mc_embed_signup_scroll input.email {
551+
color: #ffffff !important;
552+
background-color: #a9a9a9 !important;
553+
}
554+
}
509555
}
510556
}
511557

layouts/case-studies/list.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ <h4>"{{ .Params.quote | html }}"</h4>
3939
<h3>{{ .Title }}</h3>
4040
<div id="usersGrid">
4141
{{ range $pages.ByTitle }}
42-
{{ $logo := .Resources.GetMatch "**{feature,logo}*.svg" }}
42+
{{ $logo := .Resources.GetMatch "**_featured_logo.svg" }}
43+
{{ if not $logo }}
44+
{{ $logo = .Resources.GetMatch "**_featured_logo.png" }}
45+
{{ end }}
46+
{{ if not $logo }}
47+
{{ $logo = .Resources.GetMatch "**logo*.svg" }}
48+
{{ end }}
4349
{{ if not $logo }}
4450
{{ $logo = .Resources.GetMatch "**logo*.png" }}
4551
{{ end }}

0 commit comments

Comments
 (0)