From 768f83f63a69714932f382637cba6988e6a9fd9e Mon Sep 17 00:00:00 2001 From: Darek Date: Sun, 12 Apr 2026 22:55:23 -0500 Subject: [PATCH] Add dark mode, simplify nav, and UI polish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Dark mode via prefers-color-scheme: pure CSS, no JS, follows OS setting - CSS custom properties for all colors; dark palette redefines variables - Nav: brand is now a home link, Dashboard link removed, nowrap keeps it single-line on mobile; compact padding at 640px breakpoint - Battery health % uses CSS classes (health-good/warn/bad) instead of inline Jinja colors — readable in both light and dark modes - Stat card counts use CSS color variables for dark mode support - Fix duplicate display:none on bulk toolbar - input[type=date] added to themed input selector --- templates/assign.html | 2 +- templates/base.html | 205 ++++++++++++++++++++++++++++------ templates/battery_detail.html | 8 +- templates/dashboard.html | 8 +- 4 files changed, 180 insertions(+), 43 deletions(-) diff --git a/templates/assign.html b/templates/assign.html index 9da72e9..e0470ad 100644 --- a/templates/assign.html +++ b/templates/assign.html @@ -13,7 +13,7 @@ {% for device in devices %} {% set full = device.installed_count() >= device.battery_slots %} {% set mix = device.installed_brands() and battery.brand not in device.installed_brands() %} -