From 5867c80654ba1a24aaaf0e7ff471626c98794171 Mon Sep 17 00:00:00 2001 From: Anuj Sharma Date: Fri, 25 Sep 2026 21:34:38 +0530 Subject: [PATCH] fix: sidebar overlapping the navbar --- src/css/custom.css | 2 +- src/theme/DocSidebar/Desktop/styles.module.css | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/css/custom.css b/src/css/custom.css index 9f101944..18383d28 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -2998,7 +2998,7 @@ main[class*='docMainContainer_'] { .theme-doc-sidebar-container, .menu--responsive, div[class*='sidebarViewport_'] { - z-index: 9999 !important; + z-index: 99 !important; } .mobile-social-item { diff --git a/src/theme/DocSidebar/Desktop/styles.module.css b/src/theme/DocSidebar/Desktop/styles.module.css index 3763fabd..fda5a859 100644 --- a/src/theme/DocSidebar/Desktop/styles.module.css +++ b/src/theme/DocSidebar/Desktop/styles.module.css @@ -17,6 +17,7 @@ rgba(255, 255, 255, 0.05) 0%, rgba(240, 242, 245, 0.05) 100% ); + margin-top: 5px; } .sidebarWithHideableNavbar { @@ -45,13 +46,13 @@ display: flex; flex-direction: column; height: 100%; - padding-top: 1rem; /* Add top padding to give space for the first item */ + padding-top: 3.5rem; /* Add top padding to give space for the first item */ overflow: visible; /* Ensure content isn't cut off */ } .menu { padding: 1.25rem 0.5rem; - padding-top: 2.5rem; /* Significantly increase top padding to move GitHub down */ + padding-top: 0rem; /* Significantly increase top padding to move GitHub down */ padding-bottom: 3rem; /* Add extra padding at bottom to prevent items from being cut off */ flex: 1; overflow-y: auto;