Skip to content

Commit c915219

Browse files
Optimize mobile navigation sidebar responsiveness
Added media query for mobile navigation sidebar optimization.
1 parent 0f57b4f commit c915219

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/css/custom.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,6 +2734,21 @@ html[data-theme="dark"] .blog-post-page .markdown h4 {
27342734
}
27352735
}
27362736

2737+
/* Fix: Optimize mobile navigation sidebar responsiveness (#1752) */
2738+
@media screen and (max-width: 480px) {
2739+
.sidebar_src-theme-Navbar-ResponsiveSidebar-styles-module,
2740+
.navbar-sidebar,
2741+
.menu {
2742+
position: fixed !important;
2743+
width: 270px !important;
2744+
max-width: 85vw !important;
2745+
z-index: 1000 !important;
2746+
}
2747+
.menu__link {
2748+
padding: 10px 16px !important;
2749+
margin: 2px 0 !important;
2750+
}
2751+
}
27372752

27382753

27392754

0 commit comments

Comments
 (0)