Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0e22dfc

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /