Theme the sidebar scrollbar
CI / verify (push) Successful in 3m48s
CI / publish (push) Has been skipped

This commit is contained in:
2026-08-13 21:17:24 -07:00
parent 9db53cb36f
commit e82d5a90bf
+26
View File
@@ -158,6 +158,32 @@
border-radius: 3px;
}
/* The expanded sidebar owns its vertical scroll rather than the page. Keep
that scrollbar inside the sidebar palette: the browser's native light
track otherwise becomes a bright gutter in dark mode. */
[data-sidebar='content'] {
scrollbar-color: hsl(var(--sidebar-border)) transparent;
scrollbar-width: thin;
}
[data-sidebar='content']::-webkit-scrollbar {
width: 6px;
}
[data-sidebar='content']::-webkit-scrollbar-track,
[data-sidebar='content']::-webkit-scrollbar-corner {
background: transparent;
}
[data-sidebar='content']::-webkit-scrollbar-thumb {
background-color: hsl(var(--sidebar-border));
border-radius: 9999px;
}
[data-sidebar='content']::-webkit-scrollbar-thumb:hover {
background-color: hsl(var(--muted) / 0.55);
}
/* Touch targets. 44px is the documented iOS minimum and the difference
between a usable and a frustrating phone experience. */
.tap {