Improve toggle contrast in monochrome mode

This commit is contained in:
Eason Li 2026-01-06 10:15:37 +08:00
parent ad14fc0dd6
commit 87f17bcf61
4 changed files with 113 additions and 34 deletions

View file

@ -88,6 +88,26 @@
img:not(.VPImage) {
filter: grayscale(100%);
}
.switch,
.switch * {
filter: none;
}
.switch .thumb {
background-color: #000 !important;
}
/* Keep sidebar toggles legible in monochrome mode */
.switch,
.switch * {
filter: none;
}
/* Ensure toggle thumb stays black in grayscale */
.switch .thumb {
background-color: #000 !important;
}
}
.vp-doc a {