Skip to content

Commit

Permalink
perf: better click-to-top button
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Aug 26, 2023
1 parent 300f0cb commit bb1e308
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions _sass/misc/click-to-top.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.click-to-top {
transition: 0.3s;
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -15,22 +14,16 @@
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
font-size: 24px;
user-select: none;
transition: 0.3s;
z-index: 10;

@include media-query(1024px) {
@include media-query($on-laptop) {
width: 48px;
height: 48px;
border-radius: 24px;
right: 35px;
font-size: 20px;
}

@include media-query($on-palm) {
width: 36px;
height: 36px;
border-radius: 18px;
right: 20px;
font-size: 16px;
}
}

.click-to-top.show {
Expand Down

0 comments on commit bb1e308

Please sign in to comment.