Skip to content

Commit 52190ca

Browse files
committed
Show "On this page" for more sizes
1 parent 8d420fa commit 52190ca

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

app/assets/styles.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,3 +413,30 @@ table td {
413413
text-align: center;
414414
}
415415
}
416+
417+
/* Overriding ember-styleguide because the on-this-page
418+
is used for index lists of methods and properties and
419+
is vital information for the api guides.
420+
Ideally we'd also switch to the mobile left nav at
421+
around < 1000px but that requires upstream changes.
422+
*/
423+
@media (max-width: 80em) {
424+
.content-wrapper {
425+
gap: 2em;
426+
grid-template-columns: minmax(20ch, 80ch) 10em;
427+
}
428+
429+
.on-this-page-wrapper {
430+
display: block;
431+
}
432+
}
433+
434+
@media (max-width: 500px) {
435+
.content-wrapper {
436+
grid-template-columns: minmax(20ch, 80ch);
437+
}
438+
439+
.on-this-page-wrapper {
440+
display: block;
441+
}
442+
}

0 commit comments

Comments
 (0)