style(web): refine scrollbar styling
This commit is contained in:
parent
34c90dd5e1
commit
3949a252db
1 changed files with 20 additions and 0 deletions
|
|
@ -5,6 +5,26 @@
|
||||||
@layer base {
|
@layer base {
|
||||||
* {
|
* {
|
||||||
@apply border-border outline-none ring-0;
|
@apply border-border outline-none ring-0;
|
||||||
|
scrollbar-color: color-mix(in oklch, var(--muted-foreground) 55%, transparent) transparent;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-track {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb {
|
||||||
|
background-color: color-mix(in oklch, var(--muted-foreground) 45%, transparent);
|
||||||
|
border-radius: 999px;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb:hover {
|
||||||
|
background-color: color-mix(in oklch, var(--muted-foreground) 65%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue