mirror of
https://github.com/fmhy/edit.git
synced 2026-01-13 15:31:07 +11:00
Fix monochrome toggle contrast
This commit is contained in:
parent
87f17bcf61
commit
b5fccb0812
2 changed files with 17 additions and 12 deletions
|
|
@ -94,19 +94,24 @@
|
|||
filter: none;
|
||||
}
|
||||
|
||||
.switch .thumb {
|
||||
background-color: #000 !important;
|
||||
.switch {
|
||||
background-color: #000;
|
||||
border-color: #5a5a5a;
|
||||
}
|
||||
|
||||
/* Keep sidebar toggles legible in monochrome mode */
|
||||
.switch,
|
||||
.switch * {
|
||||
filter: none;
|
||||
.switch .thumb {
|
||||
background-color: #fff !important;
|
||||
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25), var(--vp-shadow-1);
|
||||
}
|
||||
|
||||
/* Ensure toggle thumb stays black in grayscale */
|
||||
.switch .thumb {
|
||||
.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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue