From f1a1532e6c219deec43ee500bea8190759acbd56 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Mon, 23 Nov 2026 12:42:19 +0000 Subject: [PATCH] web: Give form controls one consistent style Selects and text fields kept the browser's own look, so they didn't line up with the buttons or each other. They now share the buttons' padding, border and radius; filter labels sit above their controls and wrap into rows on a phone, and the notification toggle lines up with its text. Co-Authored-By: Claude Opus 5.5 --- src/web/assets/style.css | 55 +++++++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 15 deletions(-) diff --git a/src/web/assets/style.css b/src/web/assets/style.css index 3c39bdb..8d5a28b 100644 --- a/src/web/assets/style.css +++ b/src/web/assets/style.css @@ -168,13 +168,20 @@ pre.log { margin-top: 10px; } -button { +button, +input, +select { font: inherit; - padding: 6px 14px; + line-height: 1.25; + padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); +} + +button { + padding: 6px 14px; cursor: pointer; } @@ -190,7 +197,8 @@ button.deny { } button.quiet { - padding: 2px 10px; + padding: 3px 10px; + font-size: 0.9rem; } table { @@ -217,15 +225,40 @@ code { flex-wrap: wrap; gap: 8px 12px; align-items: end; + margin-bottom: 16px; } +.filters label { + display: flex; + flex-direction: column; + gap: 2px; + flex: 1 1 8rem; + font-size: 0.85rem; + color: var(--muted); +} + +.filters label:has(input) { + flex: 3 1 14rem; +} + +.filters select, .filters input { - font: inherit; - max-width: 100%; + width: 100%; + font-size: 1rem; } -#push { - margin-bottom: 12px; +.filters a { + padding: 6px 4px; + line-height: 1.25; + border: 1px solid transparent; +} + +#push p { + display: flex; + flex-wrap: wrap; + gap: 8px; + align-items: center; + margin: 0 0 12px; color: var(--muted); } @@ -323,11 +356,3 @@ table.log .label { color: var(--muted); font-size: 0.85rem; } - -.filters select { - font: inherit; -} - -.filters { - margin-bottom: 16px; -}