tweaks to pre/code css styles

Follows Apple’s example.

• `code` within normal text is sized to 1em
• `code` within `pre` is sized slightly smaller and the letter-spacing is tightened
This commit is contained in:
Stuart Breckenridge 2021-03-06 10:45:58 +08:00
parent fa4f3ea818
commit ab2bd9db26
No known key found for this signature in database
GPG Key ID: ED2F112EEA9EF8A5
1 changed files with 7 additions and 2 deletions

View File

@ -137,7 +137,6 @@ pre {
margin: 0;
overflow: auto;
overflow-y: hidden;
word-wrap: normal;
word-break: normal;
}
@ -145,12 +144,18 @@ pre {
pre {
line-height: 1.4286em;
}
code, pre {
font-family: "SF Mono", Menlo, "Courier New", Courier, monospace;
font-size: .8235em;
font-size: 1em;
-webkit-hyphens: none;
}
pre code {
letter-spacing: -.027em;
font-size: 0.9375em;
}
.nnw-overflow {
overflow-x: auto;
}