@@ -3,15 +3,18 @@ li.md-tabs__item:hover {
33 box-shadow : inset 0 -3px 0 0 rgb (123 , 178 , 162 );
44}
55
6- /* Hide most icons, except clipboard */
6+ /* Hide most icons, except clipboard and header buttons (hamburger, search toggle) */
77.md-icon {
88 visibility : hidden;
99}
1010
11- .md-clipboard .md-icon {
11+ .md-clipboard .md-icon ,
12+ .md-header__button .md-icon ,
13+ .md-source__icon .md-icon {
1214 visibility : visible !important ;
1315}
1416
17+
1518/* Active nav link color */
1619.md-nav__item .md-nav__link--active {
1720 color : black;
@@ -121,10 +124,110 @@ li.md-tabs__item:hover {
121124 gap : 0.5rem ;
122125}
123126
124- .md-search__form ,
125- .md-source {
127+ .md-search__form {
126128 height : 2rem ;
127129 border-radius : 999px ;
128130 display : flex;
129131 align-items : center;
130132}
133+
134+ /* GitHub source — never shrink, always show fully */
135+ .md-header__source {
136+ flex-shrink : 0 ;
137+ }
138+
139+ .md-source {
140+ height : 2rem ;
141+ display : flex;
142+ align-items : center;
143+ white-space : nowrap;
144+ }
145+
146+ .md-source__repository {
147+ overflow : visible;
148+ max-width : none;
149+ }
150+
151+ /* Below ~960px: collapse GitHub to icon only */
152+ @media screen and (max-width : 60em ) {
153+ .md-source__repository {
154+ display : none !important ;
155+ }
156+ }
157+
158+
159+ /* Show back-arrows and expand chevrons inside the mobile drawer */
160+ .md-nav--primary .md-nav__icon {
161+ visibility : visible !important ;
162+ }
163+
164+ /* Keep GitHub button in the header on mobile, remove it from the drawer */
165+ @media screen and (max-width : 76.1875em ) {
166+ .md-header__source {
167+ display : flex !important ;
168+ }
169+ .md-nav--primary .md-source {
170+ display : none !important ;
171+ }
172+ }
173+
174+ /* ── Mobile drawer back button fix ── */
175+ @media screen and (max-width : 76.1875em ) {
176+ /* Reveal the "< Section Name" back button in sub-navs */
177+ .md-nav__item--nested > .md-nav > .md-nav__title {
178+ display : block !important ;
179+ }
180+
181+ /* Reveal the left-arrow icon inside the back button */
182+ .md-nav--primary .md-nav__title .md-nav__icon {
183+ display : block !important ;
184+ visibility : visible !important ;
185+ }
186+ }
187+ /* Hide duplicate active-page TOC label in mobile drawer */
188+ @media screen and (max-width : 76.1875em ) {
189+ .md-nav--primary .md-nav__item--active > label .md-nav__link--active {
190+ display : none !important ;
191+ }
192+ .md-nav--primary .md-nav--secondary {
193+ display : none !important ;
194+ }
195+ }
196+
197+ @media screen and (max-width : 60em ) {
198+ .md-source__repository {
199+ display : none !important ;
200+ }
201+
202+ .md-source {
203+ min-width : 0 ;
204+ padding : 0 0.4rem ;
205+ }
206+
207+ .md-source__icon {
208+ margin : 0 ;
209+ }
210+ }
211+
212+ /* Tighten gap between search icon and GitHub icon */
213+ [dir = ltr ] .md-header__source {
214+ margin-left : 0.5rem !important ;
215+ }
216+
217+ /* Use more of the page width */
218+ .md-grid {
219+ max-width : 80rem !important ;
220+ }
221+
222+ /* Collapse the search form container on mobile so it doesn't gap search icon from GitHub */
223+ @media screen and (max-width : 76.1875em ) {
224+ .md-search {
225+ width : 0 ;
226+ overflow : visible;
227+ }
228+ }
229+
230+ /* Search back arrow (shown when search is active) */
231+ .md-search__icon .md-icon {
232+ visibility : visible !important ;
233+ }
0 commit comments