Skip to content

Commit 7497d21

Browse files
committed
Fix mobile sidebar height and layout
1 parent b11e0bd commit 7497d21

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/css/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,14 @@ html[data-theme='dark'] .markdown table tr:nth-child(even) {
324324

325325
@media screen and (max-width: 996px) {
326326
.navbar-sidebar {
327+
position: fixed;
328+
inset: 0 auto 0 0;
329+
display: flex;
330+
flex-direction: column;
327331
width: min(83vw, 26rem);
328332
max-width: 26rem;
333+
height: 100dvh;
334+
max-height: 100dvh;
329335
background: rgba(238, 246, 255, 0.92);
330336
backdrop-filter: blur(18px);
331337
}
@@ -356,6 +362,8 @@ html[data-theme='dark'] .markdown table tr:nth-child(even) {
356362
}
357363

358364
.navbar-sidebar__items {
365+
flex: 1 1 auto;
366+
min-height: 0;
359367
height: calc(100vh - var(--ifm-navbar-height));
360368
padding: 0;
361369
background: transparent;

0 commit comments

Comments
 (0)