Fix an x overflow with long inline code

Spotted on
https://rust-lang.github.io/rfcs/2603-rust-symbol-name-mangling-v0.html
This commit is contained in:
Jade 2021-07-30 00:13:25 -07:00 committed by Jade Lovelace
parent 0ec4b692f4
commit fde88c22a8
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ code {
font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
}
/* make long inline code not x overflow */
:not(pre) > code {
word-break: break-word;
}
/* Don't change font size in headers. */
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
font-size: unset;