Skip to content

Commit

Permalink
Do not use Inter font for monospace
Browse files Browse the repository at this point in the history
Inter doesn't have monospace fonts. Previously <pre> content font wrongly
used Inter and sometimes broke formats badly.
  • Loading branch information
sunnavy committed Apr 5, 2024
1 parent 1af5272 commit 18cf02a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion devel/third-party/bootstrap-4.6.1/bootstrap.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
$font-family-sans-serif: 'Inter', sans-serif;
$font-family-monospace: 'Inter', monospace;

$input-border-color: #c0c7d1;
$input-border-width: 1px;
Expand Down
6 changes: 3 additions & 3 deletions share/static/css/elevator-light/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

*,
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 18cf02a

Please sign in to comment.