feat: improve scrollbar styles and dark mode compatibility

This commit is contained in:
shuaiplus
2026-05-15 19:12:40 +08:00
parent bbad9d60a7
commit b7878ffe01
3 changed files with 77 additions and 11 deletions
+4 -2
View File
@@ -151,11 +151,13 @@
/* ── dark mode scrollbar ── */
:root[data-theme='dark'] ::-webkit-scrollbar-thumb {
background: color-mix(in srgb, var(--muted) 24%, transparent);
background: color-mix(in srgb, var(--muted) 30%, transparent);
background-clip: content-box;
}
:root[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
background: color-mix(in srgb, var(--muted) 44%, transparent);
background: color-mix(in srgb, var(--primary) 40%, var(--muted) 22%);
background-clip: content-box;
}
/* ── dark mode backdrop-filter ── */