Skip to content

Commit b86afeb

Browse files
committed
fix: scroll and dark theme support on chrome
1 parent 576d0b0 commit b86afeb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

_sass/_default.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ $mdi-font-path: "/assets/vendor/materialdesignicons/fonts";
33

44
/* =Base */
55
html {
6-
scroll-behavior: smooth;
6+
/* For tocUpdateStatus() to work on chrome, auto is required */
7+
scroll-behavior: auto;
8+
}
9+
10+
:root {
11+
color-scheme: light dark;
712
}
813

914
body {

0 commit comments

Comments
 (0)