aboutsummaryrefslogtreecommitdiff
path: root/internal/web/static/base.css
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/static/base.css')
-rw-r--r--internal/web/static/base.css8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/web/static/base.css b/internal/web/static/base.css
index 776c934..59c67aa 100644
--- a/internal/web/static/base.css
+++ b/internal/web/static/base.css
@@ -13,6 +13,7 @@
* (the ONE sanctioned type override; base.css still owns sizing/spacing). */
--font-reading: var(--theme-font, Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif);
--font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
+ --font-mono: ui-monospace, "Cascadia Code", "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
--measure: 42rem;
--space-1: 0.5rem;
--space-2: 1rem;
@@ -39,6 +40,13 @@ body {
color: var(--fg);
}
+/* Global monospace reading toggle (config web_mono / the "mono" top-bar
+ * checkbox): forces the reading face to mono over whatever the theme uses,
+ * for any theme. UI chrome (--font-ui) is untouched. */
+body.mono {
+ --font-reading: var(--font-mono);
+}
+
.page {
max-width: 64rem;
margin: 0 auto;