Code fall back to sans-serif if no monospace font

This commit is contained in:
Paulus Schoutsen 2015-10-29 09:08:21 -07:00
parent b2ed9abae9
commit 766b0814d6
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ pre{
* 4. Give the code form by forcing the `code` to honour white-space. * 4. Give the code form by forcing the `code` to honour white-space.
*/ */
.line-numbers{ .line-numbers{
font-family:monospace, serif; /* [1] */ font-family:monospace, sans-serif; /* [1] */
list-style:decimal-leading-zero inside; /* [2] */ list-style:decimal-leading-zero inside; /* [2] */
white-space:nowrap; /* [3] */ white-space:nowrap; /* [3] */
overflow:auto; /* [3] */ overflow:auto; /* [3] */

View File

@ -163,7 +163,7 @@ code,
kbd, kbd,
pre, pre,
samp { samp {
font-family: monospace, serif; font-family: monospace, sans-serif;
font-size: 1em; font-size: 1em;
} }