Skip to content

Commit 8ea5690

Browse files
authored
fallback to 'monospace' for code font-family (#1674)
Some people like myself disable custom fonts on the web. The reasons are often related to accesibility. In my case it is dyslexia, but there are probably other vision related reasons too. Signed-off-by: Christopher Bayliss <cjbdev@icloud.com>
1 parent 2e7741e commit 8ea5690

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_sass/components/code.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
code {
175175
// style that would be injected by hljs when JS is enabled
176176
display: block;
177-
font-family: 'Consolas';
177+
font-family: 'Consolas', monospace;
178178
border: none;
179179
display: block;
180180
overflow-x: auto;

_sass/layout/type-md.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
li,
152152
p {
153153
code {
154-
font-family: 'Consolas';
154+
font-family: 'Consolas', monospace;
155155
background-color: #fff;
156156
color: #859900;
157157
@include border-radius($border-radius-medium);

0 commit comments

Comments
 (0)