Go to top button (#975)

* go to top button

* refactoring
This commit is contained in:
trean
2024-06-17 18:03:07 +02:00
committed by GitHub
parent 731ce10360
commit 58f04a6781
7 changed files with 51 additions and 0 deletions
@@ -97,6 +97,10 @@
display: block;
position: relative;
margin-bottom: $spacer * 0.5;
// hide native details marker
&::-webkit-details-marker {
display: none;
}
a {
display: flex;
@@ -0,0 +1,19 @@
.go-to-top-button {
position: fixed;
bottom: 20px;
right: 20px;
color: $neutral-30;
background: $neutral-94;
z-index: 10;
transition: background-color 0.3s;
[data-theme="light"] & {
color: $neutral-30;
background: $neutral-94;
}
[data-theme="dark"] & {
color: $neutral-94;
background: $neutral-30;
}
}