Skip to content

Commit 800da44

Browse files
authored
fix: Restore responsive font sizes for rfc2html renderings (ietf-tools#5136)
1 parent 1ffe661 commit 800da44

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

ietf/static/css/document_html.scss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ $tooltip-margin: inherit !default;
165165
}
166166

167167
.rfcmarkup {
168+
168169
// A lot of plaintext documents seem to have line lengths >72ch.
169170
// To handle that, we calculate with 80ch here and adjust some of the
170171
// font sizes down accordingly.
@@ -186,7 +187,18 @@ $tooltip-margin: inherit !default;
186187
font-size: min(8.75pt, var(--doc-ptsize-max));
187188
}
188189

189-
// Rest of font sizes is inherited from above.
190+
// Rest of font sizes is the same as above.
191+
@include media-breakpoint-up(lg) {
192+
font-size: min(11pt, var(--doc-ptsize-max));
193+
}
194+
195+
@include media-breakpoint-up(xl) {
196+
font-size: min(13pt, var(--doc-ptsize-max));
197+
}
198+
199+
@include media-breakpoint-up(xxl) {
200+
font-size: min(16pt, var(--doc-ptsize-max));
201+
}
190202
}
191203

192204
h1,

0 commit comments

Comments
 (0)