style: theme scrollbars to match the workspace
This commit is contained in:
1 parent
00f727da3f
commit
3e7ce9b38e
2 files changed
+66
No files matched your search
@@ -0,0 +1,65 @@
|
||||
: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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user