Skip to content

Commit 0e22dfc

Browse files
committed
feat: add smooth scroll behavior
1 parent 769cd2a commit 0e22dfc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/.vitepress/theme/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
html {
2+
scroll-behavior: smooth;
3+
}
4+
15
.vp-doc div[class*='language-'] {
26
margin-left: 0;
37
margin-right: 0;

style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
box-sizing: border-box;
55
}
66

7+
html {
8+
scroll-behavior: smooth;
9+
}
10+
711
body {
812
margin: 0;
913
padding: 0;

0 commit comments

Comments
 (0)