Skip to content

Commit 03f37e1

Browse files
Add global scrollbar styling
Addeding styling to the scroll bar so its not "out of place" from everything else. Open to changes to the style. Anything is better then what it was. Maybe remove the hover color?
1 parent 364b645 commit 03f37e1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

resources/styles/components/miscellaneous.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,39 @@ code.clean {
2727
@apply .mt-4;
2828
}
2929
}
30+
31+
::-webkit-scrollbar {
32+
background: none;
33+
width: 16px;
34+
height: 16px;
35+
}
36+
37+
::-webkit-scrollbar-thumb {
38+
border: solid 0 rgb(0 0 0 / 0%);
39+
border-right-width: 4px;
40+
border-left-width: 4px;
41+
-webkit-border-radius: 9px 4px;
42+
-webkit-box-shadow: inset 0 0 0 1px hsl(211, 10%, 53%), inset 0 0 0 4px hsl(209deg 18% 30%);
43+
}
44+
45+
::-webkit-scrollbar-track-piece {
46+
margin: 4px 0;
47+
}
48+
49+
::-webkit-scrollbar-thumb:horizontal {
50+
border-right-width: 0;
51+
border-left-width: 0;
52+
border-top-width: 4px;
53+
border-bottom-width: 4px;
54+
-webkit-border-radius: 4px 9px;
55+
}
56+
57+
::-webkit-scrollbar-thumb:hover {
58+
-webkit-box-shadow:
59+
inset 0 0 0 1px hsl(212, 92%, 43%),
60+
inset 0 0 0 4px hsl(212, 92%, 43%);
61+
}
62+
63+
::-webkit-scrollbar-corner {
64+
background: transparent;
65+
}

0 commit comments

Comments
 (0)