Skip to content

Commit c88fc0e

Browse files
committed
support darkmode scrollbar
1 parent 02b5e18 commit c88fc0e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,27 @@
66
background: rgba(0, 0, 0, 0.05);
77
}
88

9+
.dark #sidebar-content::-webkit-scrollbar-track {
10+
background: rgba(255, 255, 255, 0.05);
11+
}
12+
913
#sidebar-content::-webkit-scrollbar-thumb {
1014
background: rgba(0, 0, 0, 0.3);
1115
border-radius: 4px;
1216
}
1317

18+
.dark #sidebar-content::-webkit-scrollbar-thumb {
19+
background: rgba(255, 255, 255, 0.3);
20+
}
21+
1422
#sidebar-content::-webkit-scrollbar-thumb:hover {
1523
background: rgba(0, 0, 0, 0.5);
1624
}
1725

26+
.dark #sidebar-content::-webkit-scrollbar-thumb:hover {
27+
background: rgba(255, 255, 255, 0.5);
28+
}
29+
1830
.nav-logo {
1931
max-width: 160px;
2032
}

0 commit comments

Comments
 (0)