Style: Scroll code blocks instead of wrapping them (#2463)
This commit is contained in:
parent
d286a46470
commit
55bed7dca5
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue