refactor(layout): remove --c-nav-active CSS token

The nav active state moves from a background pill to a bottom-border
underline, so the rgba purple tint variable is no longer needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-03-30 21:55:48 +02:00
parent ebeb0cf865
commit fd2a7a8e96
2 changed files with 4 additions and 13 deletions

View File

@@ -43,7 +43,7 @@ function handleOverlayKeydown(event: KeyboardEvent) {
href="/"
class="inline-flex items-center px-3 py-1.5 font-sans text-xs font-bold tracking-widest uppercase transition-colors
{page.url.pathname === '/' || page.url.pathname.startsWith('/documents')
? 'rounded bg-nav-active text-ink'
? 'bg-nav-active rounded text-ink'
: 'rounded text-ink-2 hover:bg-muted hover:text-ink'}"
>
{m.nav_documents()}
@@ -53,7 +53,7 @@ function handleOverlayKeydown(event: KeyboardEvent) {
href="/persons"
class="inline-flex items-center px-3 py-1.5 font-sans text-xs font-bold tracking-widest uppercase transition-colors
{page.url.pathname.startsWith('/persons')
? 'rounded bg-nav-active text-ink'
? 'bg-nav-active rounded text-ink'
: 'rounded text-ink-2 hover:bg-muted hover:text-ink'}"
>
{m.nav_persons()}
@@ -63,7 +63,7 @@ function handleOverlayKeydown(event: KeyboardEvent) {
href="/korrespondenz"
class="inline-flex items-center px-3 py-1.5 font-sans text-xs font-bold tracking-widest uppercase transition-colors
{page.url.pathname.startsWith('/korrespondenz')
? 'rounded bg-nav-active text-ink'
? 'bg-nav-active rounded text-ink'
: 'rounded text-ink-2 hover:bg-muted hover:text-ink'}"
>
{m.nav_conversations()}
@@ -73,7 +73,7 @@ function handleOverlayKeydown(event: KeyboardEvent) {
href="/admin"
class="inline-flex items-center px-3 py-1.5 font-sans text-xs font-bold tracking-widest uppercase transition-colors
{page.url.pathname.startsWith('/admin')
? 'rounded bg-nav-active text-ink'
? 'bg-nav-active rounded text-ink'
: 'rounded text-ink-2 hover:bg-muted hover:text-ink'}"
>
{m.nav_admin()}