This commit is contained in:
2023-01-22 20:01:33 -06:00
parent ac580e1995
commit 4d1a0d6be2
6 changed files with 218 additions and 13 deletions

View File

@ -119,18 +119,38 @@
/* Fonts */
@font-face {
/*font-family: Jost;*/
font-family: sans-serif;
font-family: Jost;
font-display: swap;
font-style: normal;
src: url("/font/jost/Jost-VariableFont_wght.woff2") format("woff2");
}
@font-face {
/*font-family: JetBrainsMono;*/
font-family: monospace;
font-family: "Open Sans";
font-display: swap;
font-style: normal;
src: url("/font/opensans/OpenSans-VariableFont_wdth,wght.woff2") format("woff2");
}
@font-face {
font-family: JetBrainsMono;
font-display: swap;
src: url("/font/jetbrainsmono/JetBrainsMono_wght.woff2") format("woff2");
}
:root {
--font-sans: Jost, "Open Sans", "Noto Sans", sans-serif;
--font-mono: JetBrainsMono, monospace;
}
html {
font-family: var(--font-sans);
}
pre, code, kbd, samp {
font-family: var(--font-mono);
font-size: 0.75em;
}
pre > code {
/* otherwise it ends up being 0.75^2 em */
font-size: unset;
}
@ -587,9 +607,6 @@ html {
body {
background-color: var(--background-0);
color: var(--text-0);
/*font-family: "Jost", "Open Sans", "Noto Sans", sans-serif;*/
font-family: sans-serif;
font-size: 16px;
margin: 20px;
max-width: 720px;
overflow-wrap: break-word;
@ -762,11 +779,6 @@ table.markdown {
}
.code-block > .code-header > .code-type,
pre,
code {
/*font-family: JetBrainsMono;*/
font-size: 12px;
}
code {
border-radius: 5px;
}