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: Handle plaintext documents with lines of 80ch #5098

Merged
merged 1 commit into from
Feb 7, 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
22 changes: 20 additions & 2 deletions ietf/static/css/document_html.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,30 @@ $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.
pre {
width: 72ch;
width: 80ch;
white-space: pre-wrap;
}

@media screen {
@include media-breakpoint-only(xs) {
font-size: min(6.75pt, var(--doc-ptsize-max));
}

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

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

// Rest of font sizes is inherited from above.
}

h1,
h2,
h3,
Expand Down