Skip to content

Commit 69a54d5

Browse files
authored
Merge pull request #70 from KubaO/main
Fix scrollbar colors in the dark mode. Thanks to @woeoio for the contribution.
2 parents adb1358 + a271f12 commit 69a54d5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

docs/_sass/custom/custom.scss

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
11
.site-logo {
22
padding-right: 3rem;
33
}
4+
5+
html.dark-mode {
6+
/*
7+
* SCROLLBAR STYLING
8+
*/
9+
10+
/* LEGACY (-2025) */
11+
::-webkit-scrollbar {
12+
width: 15.5px;
13+
height: 15.5px;
14+
}
15+
16+
::-webkit-scrollbar-track {
17+
background: #1a1a1a;
18+
}
19+
20+
::-webkit-scrollbar-thumb {
21+
background: #404040;
22+
border-radius: 5.5px;
23+
border-left: 3.75px solid #1a1a1a;
24+
border-right: 3.75px solid #1a1a1a;
25+
}
26+
27+
::-webkit-scrollbar-thumb:hover {
28+
background: #909090;
29+
}
30+
31+
::-webkit-scrollbar-corner {
32+
background: #1a1a1a;
33+
}
34+
35+
/* MODERN (2025-) */
36+
@supports(scrollbar-color: #404040 #1a1a1a) {
37+
scrollbar-color: #404040 #1a1a1a;
38+
}
39+
}

0 commit comments

Comments
 (0)