mirror of
https://github.com/Xevion/banner.git
synced 2026-01-31 06:23:37 -06:00
feat: integrate OverlayScrollbars with theme-aware styling
This commit is contained in:
@@ -76,6 +76,35 @@ body * {
|
||||
mix-blend-mode: normal;
|
||||
}
|
||||
|
||||
/* OverlayScrollbars — custom handle colors per theme */
|
||||
:root .os-scrollbar {
|
||||
--os-handle-bg: rgba(0, 0, 0, 0.25);
|
||||
--os-handle-bg-hover: rgba(0, 0, 0, 0.35);
|
||||
--os-handle-bg-active: rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
|
||||
.dark .os-scrollbar {
|
||||
--os-handle-bg: rgba(255, 255, 255, 0.35);
|
||||
--os-handle-bg-hover: rgba(255, 255, 255, 0.45);
|
||||
--os-handle-bg-active: rgba(255, 255, 255, 0.55);
|
||||
}
|
||||
|
||||
.os-scrollbar-handle {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Hide native scrollbars on body — OverlayScrollbars takes over */
|
||||
html,
|
||||
body {
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
html::-webkit-scrollbar,
|
||||
body::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%,
|
||||
100% {
|
||||
|
||||
Reference in New Issue
Block a user