Skip to content

Commit 71af997

Browse files
authored
Merge pull request #39 from AnalyticAce/copilot/fix-38
Fix dark mode icon visibility in documentation header
2 parents e507a60 + 7a50831 commit 71af997

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/stylesheets/extra.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,24 @@
8787
.md-search-result__teaser mark {
8888
background-color: var(--md-accent-fg-color);
8989
color: #000000;
90+
}
91+
92+
/* Dark mode: Fix invisible icons by ensuring proper contrast */
93+
[data-md-color-scheme="slate"] .md-header svg {
94+
color: #000000 !important;
95+
fill: #000000 !important;
96+
}
97+
98+
[data-md-color-scheme="slate"] .md-header__button img {
99+
filter: brightness(0) !important;
100+
}
101+
102+
[data-md-color-scheme="slate"] .md-source__icon svg {
103+
color: #000000 !important;
104+
fill: #000000 !important;
105+
}
106+
107+
[data-md-color-scheme="slate"] .md-header__option svg {
108+
color: #000000 !important;
109+
fill: #000000 !important;
90110
}

0 commit comments

Comments
 (0)