Skip to content

Commit

Permalink
Correct fallback font for code snippets (#1803)
Browse files Browse the repository at this point in the history
Updates the fallback font for code snippets from `sans-serif` to
`monospace`.

Co-authored-by: penge <ppenge@gmail.com>
  • Loading branch information
jrodewig and penge authored Apr 9, 2020
1 parent 3582c7d commit 0cee4e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/web/style/code.pcss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#guide {
/* Inline code examples */
code {
font-family: Consolas, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console';
font-family: Consolas, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
padding: 0 3px;
font-size: 0.9em;
display: inline;
Expand Down Expand Up @@ -29,7 +29,7 @@

/* Code blocks with and without prettyprint. */
pre {
font-family: Consolas, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console';
font-family: Consolas, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
font-weight: 400;
color: #888;
font-size: 16px;
Expand All @@ -52,7 +52,7 @@
span {
/* We need to match the element name exactly or the * rule will
* override here. */
font-family: Consolas, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console';
font-family: Consolas, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
}

Expand Down

0 comments on commit 0cee4e4

Please sign in to comment.