mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 21:28:12 +08:00
Update the color of scrollbars to match the latest design
This commit is contained in:
@@ -261,42 +261,8 @@
|
|||||||
.scrollable-x,
|
.scrollable-x,
|
||||||
.scrollable-y {
|
.scrollable-y {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
// Not supported in Safari
|
scrollbar-color: var(--color-4-dimgray) transparent;
|
||||||
scrollbar-color: var(--color-5-dullgray) transparent;
|
|
||||||
|
|
||||||
// Safari (more capable, removed from recent versions of Chromium, possibly still supported in Safari but not tested)
|
|
||||||
&::-webkit-scrollbar {
|
|
||||||
width: calc(2px + 6px + 2px);
|
|
||||||
height: calc(2px + 6px + 2px);
|
|
||||||
}
|
|
||||||
|
|
||||||
&::-webkit-scrollbar-track {
|
|
||||||
box-shadow: inset 0 0 0 1px var(--color-5-dullgray);
|
|
||||||
border: 2px solid transparent;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover::-webkit-scrollbar-track {
|
|
||||||
box-shadow: inset 0 0 0 1px var(--color-6-lowergray);
|
|
||||||
}
|
|
||||||
|
|
||||||
&::-webkit-scrollbar-thumb {
|
|
||||||
background-clip: padding-box;
|
|
||||||
background-color: var(--color-5-dullgray);
|
|
||||||
border: 2px solid transparent;
|
|
||||||
border-radius: 10px;
|
|
||||||
margin: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover::-webkit-scrollbar-thumb {
|
|
||||||
background-color: var(--color-6-lowergray);
|
|
||||||
}
|
|
||||||
|
|
||||||
&::-webkit-scrollbar-corner {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.scrollable-x.scrollable-y {
|
.scrollable-x.scrollable-y {
|
||||||
@@ -304,6 +270,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.scrollable-x:not(.scrollable-y) {
|
.scrollable-x:not(.scrollable-y) {
|
||||||
|
scrollbar-width: none;
|
||||||
overflow: auto hidden;
|
overflow: auto hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -284,7 +284,7 @@
|
|||||||
.scroll-thumb {
|
.scroll-thumb {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background: var(--color-5-dullgray);
|
background: var(--color-4-dimgray);
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&.dragging {
|
&.dragging {
|
||||||
|
|||||||
Reference in New Issue
Block a user