Skip to content

Commit ba319c8

Browse files
committed
Enhance mobile sidebar styles for better visibility and usability
1 parent 584e5ec commit ba319c8

1 file changed

Lines changed: 42 additions & 1 deletion

File tree

‎quartz/styles/custom.scss‎

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,47 @@ body[data-slug="notes/craft"] {
112112
}
113113
}
114114

115+
@media all and ($mobile) {
116+
.page > #quartz-body .sidebar.left:has(.explorer) {
117+
background-color: transparent;
118+
overflow: visible;
119+
z-index: 200;
120+
}
121+
122+
.sidebar.left .explorer {
123+
overflow: visible;
124+
}
125+
126+
.sidebar.left .explorer .mobile-explorer {
127+
position: relative;
128+
z-index: 1001;
129+
}
130+
131+
.sidebar.left .explorer .explorer-content {
132+
-webkit-backdrop-filter: blur(10px);
133+
backdrop-filter: blur(10px);
134+
background-color: color-mix(in srgb, var(--light) 88%, transparent);
135+
inset: 0;
136+
overflow: hidden;
137+
padding-left: 1rem;
138+
padding-right: 1rem;
139+
position: fixed;
140+
z-index: 1000;
141+
}
142+
143+
.sidebar.left .explorer .explorer-content > .explorer-ul {
144+
box-sizing: border-box;
145+
max-height: 100%;
146+
overflow-y: auto;
147+
padding-right: 0.25rem;
148+
}
149+
150+
html.mobile-no-scroll,
151+
html.mobile-no-scroll body {
152+
overflow: hidden;
153+
}
154+
}
155+
115156
hr {
116157
overflow: visible;
117158
padding: 0;
@@ -946,4 +987,4 @@ body.animation-ready #quartz-body {
946987
.hovered {
947988
filter: brightness(0.6);
948989
}
949-
}
990+
}

0 commit comments

Comments
 (0)