Fix desync state + better contrast (#4553)

* Improve toggle contrast in monochrome mode

* Fix monochrome toggle contrast

* Dim disabled toggle in dark mode
This commit is contained in:
Zenith Rifle
2026-01-06 23:49:50 +08:00
committed by GitHub
parent dd4b15d4c0
commit 2721c780c0
4 changed files with 116 additions and 32 deletions

View File

@@ -88,6 +88,31 @@
img:not(.VPImage) {
filter: grayscale(100%);
}
.switch,
.switch * {
filter: none;
}
.switch {
background-color: #000;
border-color: #5a5a5a;
}
.switch .thumb {
background-color: #fff !important;
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25), var(--vp-shadow-1);
}
.switch.enabled {
background-color: #fff;
border-color: #5a5a5a;
}
.switch.enabled .thumb {
background-color: #000 !important;
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25), var(--vp-shadow-1);
}
}
.vp-doc a {