feat: replace smooth scroll js with css scroll-behavior

This commit is contained in:
Dillon
2022-05-12 04:03:44 +08:00
parent 0960a266c7
commit 5e9c5f6417
14 changed files with 9 additions and 48 deletions

View File

@@ -5,6 +5,12 @@ html {
font-size: $global-font-size;
line-height: $global-line-height;
width:100%;
scroll-behavior: smooth;
main [id] {
scroll-margin-top: $header-height + .5rem;
}
}
/* scrollbar, only support webkit */