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:
parent
fa4f3ea818
commit
ab2bd9db26
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue