From 18cf02a684755a83930a6fd7dc374ddb1aff1976 Mon Sep 17 00:00:00 2001 From: sunnavy Date: Fri, 5 Apr 2024 11:06:41 -0400 Subject: [PATCH] Do not use Inter font for monospace Inter doesn't have monospace fonts. Previously
 content font wrongly
used Inter and sometimes broke formats badly.
---
 devel/third-party/bootstrap-4.6.1/bootstrap.scss | 1 -
 share/static/css/elevator-light/bootstrap.css    | 6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/devel/third-party/bootstrap-4.6.1/bootstrap.scss b/devel/third-party/bootstrap-4.6.1/bootstrap.scss
index df6f96ea7a5..bf56838ca41 100644
--- a/devel/third-party/bootstrap-4.6.1/bootstrap.scss
+++ b/devel/third-party/bootstrap-4.6.1/bootstrap.scss
@@ -1,5 +1,4 @@
 $font-family-sans-serif: 'Inter', sans-serif;
-$font-family-monospace: 'Inter', monospace;
 
 $input-border-color: #c0c7d1;
 $input-border-width: 1px;
diff --git a/share/static/css/elevator-light/bootstrap.css b/share/static/css/elevator-light/bootstrap.css
index 1b5cf1e3622..59128a71a81 100644
--- a/share/static/css/elevator-light/bootstrap.css
+++ b/share/static/css/elevator-light/bootstrap.css
@@ -35,7 +35,7 @@
   --breakpoint-lg: 992px;
   --breakpoint-xl: 1200px;
   --font-family-sans-serif: "Inter", sans-serif;
-  --font-family-monospace: "Inter", monospace;
+  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
 }
 
 *,
@@ -180,7 +180,7 @@ pre,
 code,
 kbd,
 samp {
-  font-family: "Inter", monospace;
+  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
   font-size: 1em;
 }
 
@@ -10010,7 +10010,7 @@ button.bg-dark:focus {
 }
 
 .text-monospace {
-  font-family: "Inter", monospace !important;
+  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
 }
 
 .text-justify {