From e0bacc9b30340297097f2bda754b6cdfd8eec9db Mon Sep 17 00:00:00 2001 From: mozhutang Date: Sun, 30 Jun 2024 04:44:14 -0700 Subject: [PATCH] fix(css): Ensure back-to-top button does not block other elements - Added pointer-events: none to .back-to-top-wrapper to make it transparent to click events. - Enabled pointer-events for .back-to-top-button within the wrapper to ensure functionality. - Ensured the back-to-top button remains functional and does not interfere with other clickable elements. --- source/css/_partial/back-to-top.styl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/css/_partial/back-to-top.styl b/source/css/_partial/back-to-top.styl index 593ecfc..49df19e 100644 --- a/source/css/_partial/back-to-top.styl +++ b/source/css/_partial/back-to-top.styl @@ -4,6 +4,7 @@ position: absolute right: 0 top: 0 + pointer-events: none; @media mq-mobile display: none @media mq-tablet @@ -21,6 +22,7 @@ opacity: 1 transition: background trans-style, opacity trans-style, transform trans-style cursor: pointer + pointer-events: auto; transform: translate(80px) i font-size: 24px