Skip to content

Commit f2c0d36

Browse files
authored
Fix mobile navigation sidebar layout for small screens
Fix mobile navigation sidebar layout for small screens
2 parents 0b41df5 + c053551 commit f2c0d36

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

src/css/custom.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
* - active-sidebar-override.css
174174
*/
175175

176+
176177
/* ================= SECTION 1: BASIC MENU STRUCTURE ================= */
177178

178179
/* Fix menu overflow and ensure proper display */
@@ -2718,3 +2719,21 @@ html[data-theme="dark"] .blog-post-page .markdown h4 {
27182719
margin-top: 15px !important;
27192720
}
27202721

2722+
/* Fix mobile navigation sidebar overlap and layout alignment under 480px */
2723+
@media screen and (max-width: 480px) {
2724+
.theme-doc-sidebar-container {
2725+
width: 100% !important;
2726+
position: fixed !important;
2727+
z-index: 9999 !important;
2728+
padding: 12px !important;
2729+
}
2730+
2731+
.docMainContainer_node_modules-\@docusaurus-theme-classic-lib-theme-DocPage-Layout-Main-styles-module {
2732+
padding-left: 16px !important;
2733+
padding-right: 16px !important;
2734+
}
2735+
}
2736+
2737+
2738+
2739+

0 commit comments

Comments
 (0)