Skip to content

Commit

Permalink
Style: Scroll code blocks instead of wrapping them (#2463)
Browse files Browse the repository at this point in the history
  • Loading branch information
CAM-Gerlach authored Mar 24, 2022
1 parent d286a46 commit 55bed7d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pep_sphinx_extensions/pep_theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 55bed7d

Please sign in to comment.