From c38ed339e37b9b615dd41c63519d573947673f99 Mon Sep 17 00:00:00 2001 From: Christopher Bayliss Date: Wed, 31 Jul 2024 12:00:46 +1000 Subject: [PATCH] fallback to 'monospace' for code font-family 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 --- _sass/components/code.scss | 2 +- _sass/layout/type-md.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_sass/components/code.scss b/_sass/components/code.scss index 4145c7ea5..dd2ce04b7 100755 --- a/_sass/components/code.scss +++ b/_sass/components/code.scss @@ -174,7 +174,7 @@ code { // style that would be injected by hljs when JS is enabled display: block; - font-family: 'Consolas'; + font-family: 'Consolas', monospace; border: none; display: block; overflow-x: auto; diff --git a/_sass/layout/type-md.scss b/_sass/layout/type-md.scss index 6095a112b..2e390b7e5 100755 --- a/_sass/layout/type-md.scss +++ b/_sass/layout/type-md.scss @@ -151,7 +151,7 @@ li, p { code { - font-family: 'Consolas'; + font-family: 'Consolas', monospace; background-color: #fff; color: #859900; @include border-radius($border-radius-medium);