fix: use appropriate fallback fonts (SethFalco) (#4620)

This commit is contained in:
Seth Falco 2023-09-11 16:09:34 +01:00 committed by GitHub
parent 8bb78c2ae7
commit ecbc20f316
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@
}
body {
font-family: "Roboto Mono", sans-serif;
font-family: "Roboto Mono", monospace;
margin: 0;
padding: 0;
background: var(--bg-color);
@ -62,7 +62,7 @@ body {
cursor: pointer;
font-size: 1rem;
margin-right: 1rem;
font-family: "Roboto Mono";
font-family: "Roboto Mono", monospace;
}
.array-input {
@ -117,7 +117,7 @@ label {
transition: all 0.2s ease-in-out;
font-size: 1rem;
padding: 0.25rem;
font-family: "Roboto Mono";
font-family: "Roboto Mono", monospace;
}
input[type="checkbox"] {

View file

@ -1,6 +1,6 @@
:root {
--roundness: 0.5rem;
--font: "Roboto Mono", "Vazirmatn", sans-serif;
--font: "Roboto Mono", "Vazirmatn", monospace;
// scroll-behavior: smooth;
scroll-padding-top: 2rem;
font-weight: 400;

View file

@ -185,7 +185,7 @@
position: relative;
font-size: 2rem;
line-height: 2rem;
font-family: "Lexend Deca";
font-family: "Lexend Deca", sans-serif;
transition: color 0.25s;
font-weight: unset;
margin-block-start: unset;

View file

@ -1248,7 +1248,7 @@ export function setFontFamily(font: string, nosave?: boolean): boolean {
config.fontFamily = font;
document.documentElement.style.setProperty(
"--font",
`"${font.replace(/_/g, " ")}", "Roboto Mono", "Vazirmatn"`
`"${font.replace(/_/g, " ")}", "Roboto Mono", "Vazirmatn", monospace`
);
saveToLocalStorage("fontFamily", nosave);
ConfigEvent.dispatch("fontFamily", config.fontFamily);