style(ui): polish brew form and stepper buttons

- Hide native number input spin buttons across browsers
- Fix brew time field width to match sibling fields
- Restyle .btn-adjust with accent-subtle fill instead of border
- Remove (M:SS) hint from brew time label
This commit is contained in:
Jon Seager 2026-02-07 11:29:51 +00:00
parent 4eed3658f2
commit cc4f9068d9
No known key found for this signature in database
2 changed files with 26 additions and 15 deletions

View file

@ -111,6 +111,16 @@ a {
transition: border-color 150ms ease, box-shadow 150ms ease; transition: border-color 150ms ease, box-shadow 150ms ease;
} }
input.input-field[type="number"]::-webkit-inner-spin-button,
input.input-field[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input.input-field[type="number"] {
-moz-appearance: textfield;
}
.input-field:focus { .input-field:focus {
outline: none; outline: none;
border-color: var(--accent); border-color: var(--accent);
@ -124,17 +134,16 @@ a {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 0.375rem; border-radius: 0.375rem;
border: 1px solid var(--border); border: none;
background-color: transparent; background-color: var(--accent-subtle);
color: var(--text-secondary); color: var(--accent);
font-weight: 700; font-weight: 700;
transition: background-color 150ms ease, border-color 150ms ease; transition: background-color 150ms ease, color 150ms ease;
} }
.btn-adjust:hover { .btn-adjust:hover {
background-color: var(--surface-alt); background-color: var(--accent);
border-color: var(--accent); color: var(--accent-text);
color: var(--accent);
} }
/* ── Pills ─────────────────────────────────────────────────────── */ /* ── Pills ─────────────────────────────────────────────────────── */

View file

@ -353,8 +353,9 @@
<!-- Brew Time --> <!-- Brew Time -->
<div> <div>
<h4 class="text-xs font-semibold text-text-muted uppercase tracking-wide mb-3">Brew Time</h4> <h4 class="text-xs font-semibold text-text-muted uppercase tracking-wide mb-3">Brew Time</h4>
<div class="flex flex-col gap-1 text-sm" style="max-width: 16rem"> <div class="grid gap-4 sm:grid-cols-2">
<span class="text-text">Time (M:SS)</span> <div class="flex flex-col gap-1 text-sm">
<span class="text-text">Time</span>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<button type="button" class="btn-adjust" data-on:click="$_brewTime = Math.max(5, $_brewTime - 5)">-</button> <button type="button" class="btn-adjust" data-on:click="$_brewTime = Math.max(5, $_brewTime - 5)">-</button>
<input type="hidden" name="brew_time" data-attr:value="$_brewTime" /> <input type="hidden" name="brew_time" data-attr:value="$_brewTime" />
@ -364,6 +365,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<!-- Quick Notes --> <!-- Quick Notes -->
<div> <div>
<h4 class="text-xs font-semibold text-text-muted uppercase tracking-wide mb-3">Quick Notes</h4> <h4 class="text-xs font-semibold text-text-muted uppercase tracking-wide mb-3">Quick Notes</h4>