mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
fix: use appropriate fallback fonts (SethFalco) (#4620)
This commit is contained in:
parent
8bb78c2ae7
commit
ecbc20f316
|
@ -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"] {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue