@@ -899,6 +899,36 @@ html {
899899
900900/* ===== REMOVE THEME TOGGLE FROM MOBILE SIDEBAR AS THERE IS ONE ON THE NAVBAR ===== */
901901@media (max-width : 1200px ) {
902+ /* Aggressively hide theme toggle in mobile sidebar */
903+ .navbar-sidebar__brand
904+ button : not (.navbar-sidebar__close ): not ([class *= "close" ]),
905+ .navbar-sidebar__brand .colorModeToggle ,
906+ .navbar-sidebar .colorModeToggle ,
907+ .navbar-sidebar__brand button [class *= "colorModeToggle" ],
908+ .navbar-sidebar button [class *= "colorModeToggle" ],
909+ .navbar-sidebar__brand
910+ .clean-btn [class *= "toggle" ]: not (.navbar-sidebar__close ),
911+ .navbar-sidebar .clean-btn [class *= "toggle" ]: not (.navbar-sidebar__close ),
912+ .navbar-sidebar__brand [class *= "toggle_" ]: not (.navbar-sidebar__close ),
913+ .navbar-sidebar [class *= "toggle_" ]: not (.navbar-sidebar__close ),
914+ .navbar-sidebar__brand button [aria-label *= "mode" ],
915+ .navbar-sidebar button [aria-label *= "mode" ],
916+ .navbar-sidebar__brand button [aria-label *= "theme" ],
917+ .navbar-sidebar button [aria-label *= "theme" ],
918+ .navbar-sidebar__brand button [aria-label *= "Switch" ],
919+ .navbar-sidebar button [aria-label *= "Switch" ] {
920+ display : none !important ;
921+ visibility : hidden !important ;
922+ opacity : 0 !important ;
923+ width : 0 !important ;
924+ height : 0 !important ;
925+ margin : 0 !important ;
926+ padding : 0 !important ;
927+ overflow : hidden !important ;
928+ position : absolute !important ;
929+ left : -9999px !important ;
930+ pointer-events : none !important ;
931+ }
902932 /* Ensure close button is always visible */
903933 .navbar-sidebar__brand .navbar-sidebar__close ,
904934 .navbar-sidebar__brand button [class *= "close" ],
0 commit comments