aboutsummaryrefslogtreecommitdiff
path: root/internal/web/templates
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-23 16:13:56 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-23 16:13:56 +0200
commit36d87e27019fce743e63be87222e987510863e6f (patch)
treeb5cffac3c1aa417fa24da79a99b6da85828fceb3 /internal/web/templates
parent90c8dfc6cc3ab4b6b78feec5f738beeb41fb9605 (diff)
downloadlectio-36d87e27019fce743e63be87222e987510863e6f.tar.gz
lectio-36d87e27019fce743e63be87222e987510863e6f.zip
web: remove deus_vult theme; add global monospace toggle (web_mono config + top-bar 'mono')
Diffstat (limited to 'internal/web/templates')
-rw-r--r--internal/web/templates/index.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html
index 03c0078..8c88779 100644
--- a/internal/web/templates/index.html
+++ b/internal/web/templates/index.html
@@ -21,7 +21,7 @@
<link id="theme" rel="stylesheet" href="/theme.css?name={{.Theme}}">
<script src="/static/htmx.min.js"></script>
</head>
-<body>
+<body{{if .Mono}} class="mono"{{end}}>
<div class="page">
<form id="controls" class="controls" hx-get="/readings" hx-target="#pane" hx-trigger="change">
@@ -69,6 +69,9 @@
</select>
</label>
+ <label class="mono-toggle"><input type="checkbox" {{if .Mono}}checked{{end}}
+ onchange="document.body.classList.toggle('mono', this.checked)"> mono</label>
+
<form id="lookup-form" class="controls" hx-get="/lookup" hx-target="#lookup-results" hx-include="#controls">
<input type="text" name="ref" placeholder="np. J 20:1" value="{{.Ref}}">
<button type="submit">szukaj</button>