From e54e851f6116508590ea24b2dfb61fbfc27e5f66 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 14 Sep 2023 16:11:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=20ios=E8=8F=9C=E5=8D=95=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=B8=A4=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/@core/scss/base/_mixins.scss | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/@core/scss/base/_mixins.scss b/src/@core/scss/base/_mixins.scss index 279dea2a..7c59f14c 100644 --- a/src/@core/scss/base/_mixins.scss +++ b/src/@core/scss/base/_mixins.scss @@ -8,17 +8,18 @@ // ℹ️ This mixin is inspired from vuetify for adding hover styles via before pseudo element @mixin before-pseudo() { position: relative; - - &::before { - position: absolute; - border-radius: inherit; - background: currentcolor; - block-size: 100%; - content: ""; - inline-size: 100%; - inset: 0; - opacity: 0; - pointer-events: none; + @media (hover) { + &::before { + position: absolute; + border-radius: inherit; + background: currentcolor; + block-size: 100%; + content: ""; + inline-size: 100%; + inset: 0; + opacity: 0; + pointer-events: none; + } } }