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:
satnaing
2023-12-14 11:20:03 +06:30
committed by Sat Naing
parent fb3fa98936
commit c526157118
2 changed files with 26 additions and 4 deletions
+3
View File
@@ -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;