Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Restore responsive font sizes for rfc2html renderings #5136

Merged
merged 2 commits into from
Feb 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion ietf/static/css/document_html.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ $tooltip-margin: inherit !default;
}

.rfcmarkup {

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

// Rest of font sizes is inherited from above.
// Rest of font sizes is the same as above.
@include media-breakpoint-up(lg) {
font-size: min(11pt, var(--doc-ptsize-max));
}

@include media-breakpoint-up(xl) {
font-size: min(13pt, var(--doc-ptsize-max));
}

@include media-breakpoint-up(xxl) {
font-size: min(16pt, var(--doc-ptsize-max));
}
}

h1,
Expand Down