style(ui): add theme-matching scrollbars across the frontend
This commit is contained in:
parent
7f27b5e823
commit
b024bcf2da
1 changed files with 30 additions and 0 deletions
|
|
@ -301,4 +301,34 @@
|
|||
.locker-search-highlight {
|
||||
animation: locker-search-pulse 1.1s ease-in-out infinite;
|
||||
box-shadow: 0 0 0 3px rgb(251 191 36 / 0.9);
|
||||
}
|
||||
|
||||
/* Scrollbars — styled to match the dark frontend theme */
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: color-mix(in oklch, var(--foreground) 20%, transparent) transparent;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-thumb {
|
||||
background-color: color-mix(in oklch, var(--foreground) 20%, transparent);
|
||||
border-radius: 9999px;
|
||||
border: 2px solid transparent;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-thumb:hover {
|
||||
background-color: color-mix(in oklch, var(--foreground) 32%, transparent);
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
Loading…
Reference in a new issue