fix(ui): hide scrollbar track background when sidebar is not hovered
The scrollbar-auto-hide utility was only hiding the thumb but left the track background visible, creating a visible "well" even when idle. Now both track and thumb are transparent by default, appearing only on container hover. Fixes PAP-374 Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
5d52ce2e5e
commit
825d2b4759
1 changed files with 7 additions and 1 deletions
|
|
@ -178,10 +178,16 @@
|
|||
background: oklch(0.5 0 0);
|
||||
}
|
||||
|
||||
/* Auto-hide scrollbar: transparent by default, visible on container hover */
|
||||
/* Auto-hide scrollbar: fully transparent by default, visible on container hover */
|
||||
.scrollbar-auto-hide::-webkit-scrollbar-track {
|
||||
background: transparent !important;
|
||||
}
|
||||
.scrollbar-auto-hide::-webkit-scrollbar-thumb {
|
||||
background: transparent !important;
|
||||
}
|
||||
.scrollbar-auto-hide:hover::-webkit-scrollbar-track {
|
||||
background: oklch(0.205 0 0) !important;
|
||||
}
|
||||
.scrollbar-auto-hide:hover::-webkit-scrollbar-thumb {
|
||||
background: oklch(0.4 0 0) !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue