@@ -377,3 +377,67 @@ aside,
377377.dark .nextra-callout [class *= 'border-orange' ] svg {
378378 color : rgba (253 , 186 , 116 , 0.92 ) !important ;
379379}
380+
381+ /* Sidebar Compactness Overrides */
382+
383+ /* Reduce vertical padding for sidebar links */
384+ .nextra-sidebar ul li a ,
385+ .nextra-sidebar ul li button ,
386+ .nextra-mobile-nav ul li a ,
387+ .nextra-mobile-nav ul li button {
388+ padding-top : 0.1rem !important ;
389+ padding-bottom : 0.1rem !important ;
390+ padding-left : 0.45rem !important ;
391+ padding-right : 0.2rem !important ;
392+ }
393+
394+ /* Reduce vertical spacing for section separators/headers */
395+ .nextra-sidebar-separator {
396+ margin-top : 1rem !important ;
397+ margin-bottom : 0.5rem !important ;
398+ }
399+
400+ /* Reduce general spacing in the sidebar */
401+ .nextra-sidebar ul {
402+ gap : 0.25rem ;
403+ }
404+
405+ .nextra-sidebar .nextra-scrollbar ,
406+ .nextra-mobile-nav .nextra-scrollbar {
407+ padding-left : 0.75rem !important ;
408+ padding-right : 0.2rem !important ;
409+ }
410+
411+ @media (min-width : 768px ) {
412+ .nextra-sidebar [class *= 'x:w-64' ] {
413+ width : var (--sei-docs-sidebar-width , 13rem ) !important ;
414+ min-width : var (--sei-docs-sidebar-width , 13rem ) !important ;
415+ max-width : var (--sei-docs-sidebar-width , 13rem ) !important ;
416+ flex-basis : var (--sei-docs-sidebar-width , 13rem ) !important ;
417+ }
418+
419+ .nextra-sidebar [class *= 'x:w-20' ] {
420+ width : var (--sei-docs-sidebar-width-collapsed , 4.5rem ) !important ;
421+ min-width : var (--sei-docs-sidebar-width-collapsed , 4.5rem ) !important ;
422+ max-width : var (--sei-docs-sidebar-width-collapsed , 4.5rem ) !important ;
423+ flex-basis : var (--sei-docs-sidebar-width-collapsed , 4.5rem ) !important ;
424+ }
425+
426+ .nextra-sidebar ~ article {
427+ padding-left : 1.5rem !important ;
428+ padding-right : 1.5rem !important ;
429+ }
430+ }
431+
432+ @media (max-width : 767px ) {
433+ .nextra-mobile-nav {
434+ inset : 0 auto 0 0 !important ;
435+ width : var (--sei-docs-mobile-nav-width , min (86vw , 20rem )) !important ;
436+ max-width : 20rem !important ;
437+ border-right : 1px solid rgba (0 , 0 , 0 , 0.08 );
438+ }
439+
440+ .dark .nextra-mobile-nav {
441+ border-right-color : rgba (255 , 255 , 255 , 0.08 );
442+ }
443+ }
0 commit comments