Fix sidebar scrollbar well visible when not hovering
Set scrollbar width to 0 when not hovering so the track area doesn't create a visible gutter. On hover, width expands to 8px with the track/thumb colors. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -178,13 +178,19 @@
|
|||||||
background: oklch(0.5 0 0);
|
background: oklch(0.5 0 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Auto-hide scrollbar: fully invisible by default, visible on container hover */
|
/* Auto-hide scrollbar: completely hidden by default, visible on container hover */
|
||||||
|
.scrollbar-auto-hide::-webkit-scrollbar {
|
||||||
|
width: 0 !important;
|
||||||
|
background: transparent !important;
|
||||||
|
}
|
||||||
.scrollbar-auto-hide::-webkit-scrollbar-track {
|
.scrollbar-auto-hide::-webkit-scrollbar-track {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
}
|
}
|
||||||
.scrollbar-auto-hide::-webkit-scrollbar-thumb {
|
.scrollbar-auto-hide::-webkit-scrollbar-thumb {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
transition: background 150ms ease;
|
}
|
||||||
|
.scrollbar-auto-hide:hover::-webkit-scrollbar {
|
||||||
|
width: 8px !important;
|
||||||
}
|
}
|
||||||
.scrollbar-auto-hide:hover::-webkit-scrollbar-track {
|
.scrollbar-auto-hide:hover::-webkit-scrollbar-track {
|
||||||
background: oklch(0.205 0 0) !important;
|
background: oklch(0.205 0 0) !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user