Skip to content

Commit cda2cfd

Browse files
authored
fix: Handle plaintext documents with lines of 80ch (ietf-tools#5098)
1 parent 35d1241 commit cda2cfd

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

ietf/static/css/document_html.scss

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,30 @@ $tooltip-margin: inherit !default;
165165
}
166166

167167
.rfcmarkup {
168-
168+
// A lot of plaintext documents seem to have line lengths >72ch.
169+
// To handle that, we calculate with 80ch here and adjust some of the
170+
// font sizes down accordingly.
169171
pre {
170-
width: 72ch;
172+
width: 80ch;
171173
white-space: pre-wrap;
172174
}
173175

176+
@media screen {
177+
@include media-breakpoint-only(xs) {
178+
font-size: min(6.75pt, var(--doc-ptsize-max));
179+
}
180+
181+
@include media-breakpoint-up(sm) {
182+
font-size: min(8.75pt, var(--doc-ptsize-max));
183+
}
184+
185+
@include media-breakpoint-up(md) {
186+
font-size: min(8.75pt, var(--doc-ptsize-max));
187+
}
188+
189+
// Rest of font sizes is inherited from above.
190+
}
191+
174192
h1,
175193
h2,
176194
h3,

0 commit comments

Comments
 (0)