mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
feat: implement back-to-top button in blog post page
Implement back-to-top button under tags in PostDetails page. Update html scroll-behavior to smooth. Closes: #156
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
--color-card-muted: 138, 51, 2;
|
||||
--color-border: 171, 75, 8;
|
||||
}
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
#sun-svg,
|
||||
html[data-theme="dark"] #moon-svg {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user