From 2acdec323fe37c4d3675ada7d14832fe9d90954b Mon Sep 17 00:00:00 2001
From: Stephen Tse <Stephen-X@users.noreply.github.com>
Date: Sat, 26 Apr 2025 18:13:56 +0000
Subject: [PATCH] fix(explorer): Prevent html from being scrollable when mobile explorer is open (#1895)
---
quartz/components/styles/explorer.scss | 20 +++-----------------
1 files changed, 3 insertions(+), 17 deletions(-)
diff --git a/quartz/components/styles/explorer.scss b/quartz/components/styles/explorer.scss
index 55c4372..002b086 100644
--- a/quartz/components/styles/explorer.scss
+++ b/quartz/components/styles/explorer.scss
@@ -263,22 +263,8 @@
}
}
-.no-scroll {
- opacity: 0;
- overflow: hidden;
-}
-
-html:has(.no-scroll) {
- overflow: hidden;
-}
-
-@media all and not ($mobile) {
- .no-scroll {
- opacity: 1 !important;
- overflow: auto !important;
- }
-
- html:has(.no-scroll) {
- overflow: auto !important;
+.mobile-no-scroll {
+ @media all and ($mobile) {
+ overflow: hidden;
}
}
--
Gitblit v1.10.0