Style: Scroll code blocks instead of wrapping them (#2463)

This commit is contained in:
CAM Gerlach 2022-03-24 15:03:39 -05:00 committed by GitHub
parent d286a46470
commit 55bed7dca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -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 */