@@ -1029,6 +1029,77 @@ html {
10291029 }
10301030}
10311031
1032+ /* Mobile-only visibility & spacing fixes for Tutorials icons (320–768px) */
1033+ @media screen and (max-width : 768px ) {
1034+ /* Ensure the label + icons row inside Docs dropdown uses the full width */
1035+ .navbar-sidebar .grid ,
1036+ .navbar-sidebar .dropdown__menu .grid ,
1037+ .navbar-sidebar .dropdown-content .grid {
1038+ width : 100% !important ;
1039+ column-gap : 0.5rem !important ;
1040+ row-gap : 0.6rem !important ;
1041+ align-items : center !important ; /* align titles with icons vertically */
1042+ }
1043+
1044+ /* So the icon column doesn't get clipped in the 3-col layout */
1045+ .navbar-sidebar .grid > .col-span-2 {
1046+ min-width : 0 !important ;
1047+ }
1048+
1049+ /* Tighten label space and drop the border on very small screens */
1050+ .navbar-sidebar .grid > .border-r .col-span-1 {
1051+ border-right : 0 !important ;
1052+ padding-right : 0.25rem !important ;
1053+ font-weight : 600 ;
1054+ display : flex !important ; /* center the title block */
1055+ align-items : center !important ; /* vertically center with icons */
1056+ line-height : 1.1 !important ; /* avoid baseline drift */
1057+ }
1058+
1059+ /* The inner icon group for Tutorials/Courses only (have grid-cols-4) */
1060+ .navbar-sidebar .grid .grid .grid-cols-4 ,
1061+ .navbar-sidebar .dropdown__menu .grid .grid .grid-cols-4 ,
1062+ .navbar-sidebar .dropdown-content .grid .grid .grid-cols-4 {
1063+ display : grid !important ;
1064+ grid-template-columns : repeat (4 , minmax (0 , 1fr )) !important ;
1065+ column-gap : 0.5rem !important ; /* keep columns tight */
1066+ row-gap : 1.5rem !important ;
1067+ overflow : visible !important ;
1068+ }
1069+
1070+ /* Make each Tutorial/Course icon compact while readable */
1071+ .navbar-sidebar .grid .grid .grid-cols-4 .nav__icons {
1072+ padding : 0 !important ;
1073+ margin : 0.4rem 0 !important ; /* even more vertical breathing room */
1074+ }
1075+ .navbar-sidebar .grid .grid .grid-cols-4 .nav__icons img {
1076+ width : 30px !important ;
1077+ height : 30px !important ;
1078+ }
1079+
1080+ /* Keep Interview Prep text links comfortable and not cramped */
1081+ .navbar-sidebar .grid .grid .grid-cols-1 .nav__icons {
1082+ display : inline-flex !important ;
1083+ align-items : center !important ;
1084+ padding : 0.25rem 0.1rem !important ;
1085+ font-size : 0.95rem !important ;
1086+ }
1087+
1088+ /* Add vertical space between Tutorials, Courses, Interview Prep blocks */
1089+ .navbar-sidebar .dropdown__menu > .grid {
1090+ padding : 1rem 0 !important ;
1091+ margin : 1rem 0 !important ;
1092+ }
1093+
1094+ /* Dark mode: ensure GitHub/Next.js icons are visible in Tutorials on mobile */
1095+ [data-theme = "dark" ] .navbar-sidebar .nav__icons img [alt = "GitHub" ],
1096+ [data-theme = "dark" ] .navbar-sidebar .nav__icons img [alt = "Nextjs" ],
1097+ [data-theme = "dark" ] .navbar-sidebar img [src $= "/icons/github.svg" ],
1098+ [data-theme = "dark" ] .navbar-sidebar img [src $= "/icons/nextjs.svg" ] {
1099+ filter : invert (1 ) brightness (1.1 ) contrast (1.05 ) !important ;
1100+ }
1101+ }
1102+
10321103/* STAR section border fixes for dark mode */
10331104[data-theme = "dark" ] .star-border-red {
10341105 border-color : # ef4444 !important ;
0 commit comments