Skip to content

Commit e138758

Browse files
committed
Fallback to monospace for code
Certain configurations of Firefox allow disabling custom web fonts. In those instances the code samples are using a sans-serif font (if `Roboto Mono` is not otherwise available).
1 parent aa1bcc0 commit e138758

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_sass/_base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pre {
196196

197197
code {
198198
font-weight: bold;
199-
font-family: "Roboto Mono";
199+
font-family: "Roboto Mono", monospace;
200200
font-size: 0.9em;
201201
}
202202

_sass/_layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ ul.contact {
277277
padding: 15px;
278278
margin: 0;
279279
line-height: 50px;
280-
font-family: Cantarell;
280+
font-family: Cantarell, sans-serif;
281281
font-weight: bold;
282282
font-size: 1.2em;
283283
color: $text-color;

0 commit comments

Comments
 (0)