From bb1e308bef725f7633909ff494940cfbb7a3f74b Mon Sep 17 00:00:00 2001 From: Jeffrey Tse Date: Sat, 26 Aug 2023 11:15:19 +0800 Subject: [PATCH] perf: better click-to-top button --- _sass/misc/click-to-top.scss | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/_sass/misc/click-to-top.scss b/_sass/misc/click-to-top.scss index 84495aa5330..56b67cf62a1 100644 --- a/_sass/misc/click-to-top.scss +++ b/_sass/misc/click-to-top.scss @@ -1,5 +1,4 @@ .click-to-top { - transition: 0.3s; display: flex; align-items: center; justify-content: center; @@ -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 {