From 129b1eff04950acaca55aa71b34d1d94ac61ebd9 Mon Sep 17 00:00:00 2001 From: Darek Date: Sun, 21 Jun 2026 13:20:17 -0500 Subject: [PATCH] Nav active highlighting; reorder add battery form; export/import icons --- static/style.css | 2 ++ templates/base.html | 9 +++++---- templates/battery_add.html | 26 +++++++++++++------------- templates/home.html | 4 ++-- 4 files changed, 22 insertions(+), 19 deletions(-) diff --git a/static/style.css b/static/style.css index 8c36f89..654c4d6 100644 --- a/static/style.css +++ b/static/style.css @@ -116,6 +116,7 @@ nav .brand:hover { text-decoration: none; opacity: 0.9; } nav a { color: #bfdbfe; font-size: 0.9rem; padding: 0.25rem 0.5rem; border-radius: 4px; white-space: nowrap; } nav a:hover { background: #1d4ed8; color: #fff; text-decoration: none; } + nav a.active { background: #1d4ed8; color: #fff; } /* Layout */ .container { max-width: 960px; margin: 1.5rem auto; padding: 0 1rem; } @@ -196,6 +197,7 @@ nav { background: #0c1a3b; } nav a { color: #93c5fd; } nav a:hover { background: #1e3a8a; color: #fff; } + nav a.active { background: #1e3a8a; color: #fff; } nav .brand { color: #e2e8f0; } #bulk-toolbar { background: var(--bg-toolbar) !important; } diff --git a/templates/base.html b/templates/base.html index 5e723e7..e6bedbf 100644 --- a/templates/base.html +++ b/templates/base.html @@ -17,9 +17,10 @@
@@ -52,13 +53,13 @@ Home - + Batteries - + diff --git a/templates/battery_add.html b/templates/battery_add.html index 9a07d1a..360407b 100644 --- a/templates/battery_add.html +++ b/templates/battery_add.html @@ -23,6 +23,19 @@ style="display:none;margin-top:0.4rem;">
+
+ + + +
+
@@ -42,19 +55,6 @@ value="" placeholder="e.g. 2000 — optional">
-
- - - -
-