From f6563f22a9a0c9d876f80e8f758b902dcc3bec78 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 6 Oct 2026 00:05:49 +0200 Subject: Restyle to a flat Miniflux-like design - hairline separators instead of bordered rows, square corners, no shadows - white background, system font stack, slimmer headings - pine green accent; amber warn ramp carries the attention marks (due/late/mid) - no hover backgrounds: hover is color/fill-state only - reserve bold nav tab width and the scrollbar gutter so navigation never shifts layout --- src/lib/components/Nav.svelte | 52 ++++++++++++++++++++++++++++++------------- 1 file changed, 37 insertions(+), 15 deletions(-) (limited to 'src/lib/components/Nav.svelte') diff --git a/src/lib/components/Nav.svelte b/src/lib/components/Nav.svelte index aa42ace..c5fcc60 100644 --- a/src/lib/components/Nav.svelte +++ b/src/lib/components/Nav.svelte @@ -1,19 +1,27 @@ - @@ -32,23 +40,37 @@ } .navbar a { - padding: 0.5rem 1rem; - border-radius: 9999px; + height: 100%; + display: inline-grid; + align-content: center; + padding: 0 0.625rem; + font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; - font-size: 0.875rem; - font-weight: 500; - transition: all 0.2s ease; + } + + /* Bold ghost reserves the bold advance width in the same grid cell, so the + active tab's font-weight change never moves its siblings. */ + .navbar a::before { + content: attr(data-label); + grid-area: 1 / 1; + visibility: hidden; + font-weight: 700; + } + + .navbar a span { + grid-area: 1 / 1; } .navbar a:hover { color: var(--text); - background: var(--surface); } .navbar a.active { - background: var(--accent); - color: var(--white); - box-shadow: 0 1px 2px var(--shadow); + color: var(--text); + } + + .navbar a.active span { + font-weight: 700; } -- cgit v1.3