Dim disabled toggle in dark mode

This commit is contained in:
Eason Li 2026-01-06 11:03:35 +08:00
parent b5fccb0812
commit b4bce8640d

View file

@ -43,10 +43,10 @@ const emit = defineEmits<{
} }
.switch.disabled { .switch.disabled {
opacity: 1; opacity: 0.5;
pointer-events: none; pointer-events: none;
background-color: #2f2f2f; background-color: var(--vp-c-bg-soft, #2f2f2f);
border-color: #666; border-color: var(--vp-c-divider, #666);
} }
.switch.disabled .thumb { .switch.disabled .thumb {