style: UI refinements — navbar active state, card shadows, action card borders

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yusuf Suleman
2026-03-30 16:10:06 -05:00
parent 6023ebf9d0
commit 3956140662
4 changed files with 39 additions and 16 deletions

View File

@@ -16,7 +16,7 @@
} = $props();
</script>
<a {href} class="action-card {size}">
<a {href} class="action-card {size} {variant}">
<div class="action-card-left">
<div class="action-card-icon {variant}">
{#if variant === 'budget'}
@@ -44,14 +44,18 @@
align-items: center;
justify-content: space-between;
padding: var(--sp-5) var(--sp-5);
border-radius: var(--radius-lg);
border-radius: var(--radius);
background: var(--card);
border: 1px solid var(--border);
box-shadow: var(--shadow-md);
transition: all var(--transition);
border-left: 3px solid var(--border);
box-shadow: var(--shadow-sm);
transition: all 0.2s ease;
cursor: pointer;
text-decoration: none;
}
.action-card.budget { border-left-color: var(--accent); }
.action-card.inventory { border-left-color: var(--error); }
.action-card.fitness { border-left-color: var(--success); }
.action-card:hover {
transform: translateY(-2px);

View File

@@ -97,13 +97,13 @@
-webkit-backdrop-filter: blur(16px);
}
.navbar-inner {
max-width: 1200px;
max-width: 1400px;
margin: 0 auto;
display: flex;
align-items: center;
height: 56px;
height: 52px;
padding: 0 var(--sp-6);
gap: var(--sp-6);
gap: var(--sp-5);
}
.navbar-logo {
font-weight: 600;
@@ -123,19 +123,24 @@
flex: 1;
}
.navbar-link {
padding: 6px var(--sp-3);
border-radius: var(--radius-sm);
font-size: var(--text-base);
padding: 5px var(--sp-3);
border-radius: var(--radius-md);
font-size: var(--text-sm);
font-weight: 500;
color: var(--text-3);
transition: all var(--transition);
transition: all 0.15s ease;
background: none;
border: none;
position: relative;
text-decoration: none;
letter-spacing: 0.01em;
}
.navbar-link:hover { color: var(--text-1); background: var(--card-hover); }
.navbar-link.active {
color: var(--accent);
background: var(--accent-dim);
font-weight: 600;
}
.navbar-link:hover { color: var(--text-1); background: var(--accent-dim); }
.navbar-link.active { color: var(--text-1); background: var(--accent-dim); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {