Change monospace font to Berkeley Mono

This commit is contained in:
Shadowfacts 2023-02-18 20:55:25 -05:00
parent c25100692b
commit 85b89a936f
4 changed files with 17 additions and 3 deletions

13
site/css/fonts.scss Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,5 @@
@import "normalize.scss"; @import "normalize.scss";
@import "fonts.scss";
@import "syntax-highlighting.scss"; @import "syntax-highlighting.scss";
$light-accent-color: #0638d0; $light-accent-color: #0638d0;
@ -62,7 +63,7 @@ $dark-accent-color: #f9c72f;
// Fonts // Fonts
--ui-font: Avenir, Lucida Grande, Arial, sans-serif; --ui-font: Avenir, Lucida Grande, Arial, sans-serif;
--content-font: Charter, Georgia, serif; --content-font: Charter, Georgia, serif;
--monospace-font: SF Mono, monospace; --monospace-font: Berkeley Mono, SF Mono, monospace;
} }
.theme-light { .theme-light {
--accent-color: var(--light-accent-color); --accent-color: var(--light-accent-color);
@ -293,12 +294,12 @@ article {
a { a {
text-decoration: none; text-decoration: none;
&::before { content: "["; } &::before { content: "["; }
&::after { content: "](" attr(data-link) ")"; word-wrap: break-word; } &::after { content: "](" attr(data-link) ")"; }
&::before, &::after { &::before, &::after {
color: var(--secondary-ui-text-color); color: var(--secondary-ui-text-color);
font-family: var(--monospace-font); font-family: var(--monospace-font);
font-size: 0.75em; font-size: 0.75em;
word-break: break-all; word-break: break-word;
} }
} }
a[data-no-link-decoration] { a[data-no-link-decoration] {

Binary file not shown.

Binary file not shown.