css: factor out fonts to css variables.

This commit is contained in:
evazion
2020-08-16 15:01:28 -05:00
parent 4a111705a2
commit 44cbce9855
5 changed files with 13 additions and 26 deletions

View File

@@ -57,12 +57,14 @@ div.prose {
list-style-type: disc;
}
code, pre {
font: var(--monospace-font);
background: var(--dtext-code-background);
}
pre {
font-family: monospace;
font-size: 1.2em;
margin: 0.5em 0;
padding: 0.5em 1em;
background: var(--dtext-code-background);
white-space: pre-wrap;
}
@@ -73,11 +75,6 @@ div.prose {
background: var(--dtext-blockquote-background);
}
code {
font-family: monospace;
background: var(--dtext-code-background);
}
.tn {
font-size: 0.8em;
color: var(--muted-text-color);

View File

@@ -1,10 +1,8 @@
@import "../base/000_vars.scss";
.ui-widget {
font-family: $base_font_family;
font-family: var(--body-font);
input, select, textarea, button {
font-family: $base_font_family;
font-family: var(--body-font);
}
}