From 8df8d5c6efc558bb3dc31f58b5094bae01eb71ab Mon Sep 17 00:00:00 2001
From: Eritque arcus <q1930893235@gmail.com>
Date: Wed, 17 Sep 2025 21:50:12 +0000
Subject: [PATCH] fix: fix CNAME path error (#2096)
---
quartz/components/styles/explorer.scss | 52 ++++++++++++++++++++++------------------------------
1 files changed, 22 insertions(+), 30 deletions(-)
diff --git a/quartz/components/styles/explorer.scss b/quartz/components/styles/explorer.scss
index b769726..8d94100 100644
--- a/quartz/components/styles/explorer.scss
+++ b/quartz/components/styles/explorer.scss
@@ -20,7 +20,7 @@
margin: 0;
}
- .hide-until-loaded ~ #explorer-content {
+ .hide-until-loaded ~ .explorer-content {
display: none;
}
}
@@ -30,6 +30,8 @@
display: flex;
flex-direction: column;
overflow-y: hidden;
+
+ min-height: 1.2rem;
flex: 0 1 auto;
&.collapsed {
flex: 0 1 1.2rem;
@@ -50,22 +52,24 @@
overflow: hidden;
flex-shrink: 0;
align-self: flex-start;
+ margin-top: auto;
+ margin-bottom: auto;
}
- button#mobile-explorer {
+ button.mobile-explorer {
display: none;
}
- button#desktop-explorer {
+ button.desktop-explorer {
display: flex;
}
@media all and ($mobile) {
- button#mobile-explorer {
+ button.mobile-explorer {
display: flex;
}
- button#desktop-explorer {
+ button.desktop-explorer {
display: none;
}
}
@@ -86,8 +90,8 @@
}
}
-button#mobile-explorer,
-button#desktop-explorer {
+button.mobile-explorer,
+button.desktop-explorer {
background-color: transparent;
border: none;
text-align: left;
@@ -104,7 +108,7 @@
}
}
-#explorer-content {
+.explorer-content {
list-style: none;
overflow: hidden;
overflow-y: auto;
@@ -114,6 +118,7 @@
list-style: none;
margin: 0;
padding: 0;
+ overscroll-behavior: contain;
& li > a {
color: var(--dark);
@@ -194,6 +199,7 @@
cursor: pointer;
transition: transform 0.3s ease;
backface-visibility: visible;
+ flex-shrink: 0;
}
li:has(> .folder-outer:not(.open)) > .folder-container > svg {
@@ -209,7 +215,7 @@
&.collapsed {
flex: 0 0 34px;
- & > #explorer-content {
+ & > .explorer-content {
transform: translateX(-100vw);
visibility: hidden;
}
@@ -218,13 +224,13 @@
&:not(.collapsed) {
flex: 0 0 34px;
- & > #explorer-content {
+ & > .explorer-content {
transform: translateX(0);
visibility: visible;
}
}
- #explorer-content {
+ .explorer-content {
box-sizing: border-box;
z-index: 100;
position: absolute;
@@ -233,7 +239,7 @@
margin-top: 0;
background-color: var(--light);
max-width: 100vw;
- width: 100%;
+ width: 100vw;
transform: translateX(-100vw);
transition:
transform 200ms ease,
@@ -245,7 +251,7 @@
visibility: hidden;
}
- #mobile-explorer {
+ .mobile-explorer {
margin: 0;
padding: 5px;
z-index: 101;
@@ -257,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) {
+ overscroll-behavior: none;
}
}
--
Gitblit v1.10.0