Skip to content

Commit a271f12

Browse files
committed
style: tweak scrollbar styling to match Chrome's default better
1 parent 4ac18a2 commit a271f12

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

docs/_sass/custom/custom.scss

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
padding-right: 3rem;
33
}
44

5-
/* Dark mode scrollbar styles */
65
html.dark-mode {
7-
/* WebKit browsers (Chrome, Safari, Edge) */
6+
/*
7+
* SCROLLBAR STYLING
8+
*/
9+
10+
/* LEGACY (-2025) */
811
::-webkit-scrollbar {
9-
width: 10px;
10-
height: 10px;
12+
width: 15.5px;
13+
height: 15.5px;
1114
}
1215

1316
::-webkit-scrollbar-track {
@@ -16,23 +19,21 @@ html.dark-mode {
1619

1720
::-webkit-scrollbar-thumb {
1821
background: #404040;
19-
border-radius: 5px;
22+
border-radius: 5.5px;
23+
border-left: 3.75px solid #1a1a1a;
24+
border-right: 3.75px solid #1a1a1a;
2025
}
2126

2227
::-webkit-scrollbar-thumb:hover {
23-
background: #505050;
28+
background: #909090;
2429
}
2530

2631
::-webkit-scrollbar-corner {
2732
background: #1a1a1a;
2833
}
29-
}
3034

31-
/* Firefox scrollbar styles */
32-
@supports (scrollbar-width: thin) {
33-
html.dark-mode {
35+
/* MODERN (2025-) */
36+
@supports(scrollbar-color: #404040 #1a1a1a) {
3437
scrollbar-color: #404040 #1a1a1a;
35-
scrollbar-width: thin;
3638
}
3739
}
38-

0 commit comments

Comments
 (0)