diff --git a/pep_sphinx_extensions/pep_theme/static/style.css b/pep_sphinx_extensions/pep_theme/static/style.css index 6a169fa5835..ec5083f9d74 100644 --- a/pep_sphinx_extensions/pep_theme/static/style.css +++ b/pep_sphinx_extensions/pep_theme/static/style.css @@ -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 */