66 lines
1.2 KiB
CSS
66 lines
1.2 KiB
CSS
:root {
|
|
--scrollbarThumb: #a6b3c9;
|
|
--scrollbarThumbHover: #758cba;
|
|
}
|
|
|
|
:root.dark {
|
|
--scrollbarThumb: #465672;
|
|
--scrollbarThumbHover: #738bb2;
|
|
}
|
|
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--scrollbarThumb) transparent;
|
|
}
|
|
|
|
/* Chromium's pseudo-elements also let the thumb respond to hover and drag. */
|
|
@supports selector(::-webkit-scrollbar) {
|
|
* {
|
|
scrollbar-width: auto;
|
|
scrollbar-color: auto;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track,
|
|
::-webkit-scrollbar-corner {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--scrollbarThumb);
|
|
background-clip: padding-box;
|
|
border: 3px solid transparent;
|
|
border-radius: 999px;
|
|
min-height: 32px;
|
|
min-width: 32px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background-color: var(--scrollbarThumbHover);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:active {
|
|
background-color: var(--blue);
|
|
}
|
|
|
|
::-webkit-scrollbar-button {
|
|
display: none;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
* {
|
|
scrollbar-color: auto;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background-color: CanvasText;
|
|
}
|
|
}
|