We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d44d0c1 commit 7aa2035Copy full SHA for 7aa2035
1 file changed
src/components/control/BackToTop.astro
@@ -34,6 +34,7 @@ import { Icon } from "astro-icon/components";
34
transform: translateX(5rem)
35
pointer-events: auto
36
transition: box-shadow 1s ease-in-out
37
+ box-shadow: 0 0 12px color-mix(var(--primary) 60%, transparent)
38
39
i
40
font-size: 1.75rem
@@ -42,14 +43,11 @@ import { Icon } from "astro-icon/components";
42
43
transform: translateX(5rem) scale(0.9)
44
opacity: 0
45
pointer-events: none
46
+ box-shadow: none
47
48
&:active
49
50
- @media (max-width: 1920px)
- .back-to-top-btn
51
- box-shadow: none
52
-
53
// 手机端隐藏返回顶部按钮
54
@media (max-width: 768px)
55
.back-to-top-wrapper
0 commit comments