mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-13 09:57:30 -05:00
Add back to top button
This commit is contained in:
@ -245,6 +245,17 @@ footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#back-to-top {
|
||||
position: fixed;
|
||||
float: right;
|
||||
bottom: 25px;
|
||||
right: 25px;
|
||||
background-color: var(--background-3);
|
||||
border-radius: 100%;
|
||||
padding: 12px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Navbar formatting */
|
||||
@ -319,6 +330,16 @@ footer {
|
||||
|
||||
|
||||
/* Basic elements */
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
@media screen and (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--background);
|
||||
color: var(--text-normal);
|
||||
|
Reference in New Issue
Block a user