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

Style: Scroll code blocks instead of wrapping them #2463

Merged
merged 1 commit into from
Mar 24, 2022
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
Style: Scroll code blocks instead of wrapping them
CAM-Gerlach committed Mar 23, 2022

Unverified

This user has not yet uploaded their public signing key.
commit 6046dac2c916013b88420baf78738806cf92466d
9 changes: 5 additions & 4 deletions pep_sphinx_extensions/pep_theme/static/style.css
Original file line number Diff line number Diff line change
@@ -101,25 +101,26 @@ cite {
}

/* Code rules (code literals and Pygments highlighting blocks) */
pre,
code {
code,
pre {
font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "DejaVu Sans Mono", Consolas, monospace;
font-size: 0.875rem;
white-space: pre-wrap;
-webkit-hyphens: none;
hyphens: none;
}
code {
overflow-wrap: break-word;
overflow-wrap: anywhere;
white-space: pre-wrap;
}
code.literal {
font-size: .8em;
background-color: var(--colour-inline-code);
}
pre {
overflow-x: auto;
padding: .5rem .75rem;
word-break: break-all;
white-space: pre;
}

/* Contents rules */