style(ui): add modern thin scrollbar styling
This commit is contained in:
@@ -140,6 +140,40 @@
|
|||||||
|
|
||||||
* {
|
* {
|
||||||
@apply outline-none border-border outline-ring/50;
|
@apply outline-none border-border outline-ring/50;
|
||||||
|
scrollbar-color: color-mix(
|
||||||
|
in oklab,
|
||||||
|
var(--muted-foreground) 45%,
|
||||||
|
transparent
|
||||||
|
)
|
||||||
|
transparent;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar {
|
||||||
|
width: 6px;
|
||||||
|
height: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-track,
|
||||||
|
*::-webkit-scrollbar-corner {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb {
|
||||||
|
border-radius: 9999px;
|
||||||
|
background-color: color-mix(
|
||||||
|
in oklab,
|
||||||
|
var(--muted-foreground) 45%,
|
||||||
|
transparent
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb:hover {
|
||||||
|
background-color: color-mix(
|
||||||
|
in oklab,
|
||||||
|
var(--muted-foreground) 70%,
|
||||||
|
transparent
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|||||||
Reference in New Issue
Block a user