Skip to content

Commit bac98a9

Browse files
Araxeussetchy
andauthored
feat: using custom scrollbar css for dark mode (#1253)
Co-authored-by: Adam Setch <[email protected]>
1 parent b3b9b9c commit bac98a9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

index.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,38 @@
2525
-webkit-user-select: none;
2626
}
2727

28+
html::-webkit-scrollbar,
29+
div.flex-grow::-webkit-scrollbar {
30+
width: 10px;
31+
}
32+
33+
html::-webkit-scrollbar-thumb,
34+
div.flex-grow::-webkit-scrollbar-thumb {
35+
background-color: #c1c1c1;
36+
border-radius: 10px;
37+
}
38+
39+
html::-webkit-scrollbar-thumb:hover,
40+
div.flex-grow::-webkit-scrollbar-thumb:hover {
41+
background-color: #a8a8a8;
42+
border-radius: 10px;
43+
}
44+
45+
html.dark::-webkit-scrollbar-track,
46+
html.dark div.flex-grow::-webkit-scrollbar-track {
47+
background-color: #090E15;
48+
}
49+
50+
html.dark::-webkit-scrollbar-thumb,
51+
html.dark div.flex-grow::-webkit-scrollbar-thumb {
52+
background-color: #24292e;
53+
}
54+
55+
html.dark::-webkit-scrollbar-thumb:hover,
56+
html.dark div.flex-grow::-webkit-scrollbar-thumb:hover {
57+
background-color: #3a3f44;
58+
}
59+
2860
body {
2961
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
3062
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",

0 commit comments

Comments
 (0)