Skip to content

Commit abc0c9b

Browse files
committed
Fix width at lower MQs on some pages - Tighter control of torchlight content busting out of containers and affecting the layout width
1 parent 0eaf9fc commit abc0c9b

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

resources/css/torchlight.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@
2121
:is(h1,h2,h3,h4,h5,h6) + & {
2222
margin-block-start: 0;
2323
}
24-
/* --mq-grid-after to custom */
25-
@media (width >= 1000px) and (width < 1350px) {
26-
/* Only affect the width of direct descendants of pre on the entry content, not nested pre tags e.g. >> /ui-components/badge, where it should be 100% of the container */
27-
.c-entry-content > &,
28-
.c-doc-tabs & {
29-
/* Prevent the chance of the width of pre affecting the grid layout e.g. >> /quick-start-guide, /fieldtypes/dictionary */
30-
max-width: 46rem;
31-
}
24+
}
25+
26+
/* --mq-grid-after to custom */
27+
@media (width >= 1000px) and (width < 1430px) {
28+
/* Only affect the width of direct descendants of pre on the entry content, not nested pre tags e.g. >> /ui-components/badge, where it should be 100% of the container */
29+
.c-entry-content > pre,
30+
.c-doc-tabs pre,
31+
.tab-content {
32+
/* Prevent the chance of the width of pre affecting the grid layout e.g. >> /quick-start-guide, /fieldtypes/dictionary, /tags/glide */
33+
max-width: 53vw;
3234
}
3335
}
3436

0 commit comments

Comments
 (0)