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:
@@ -304,11 +304,18 @@
|
|||||||
background: var(--card);
|
background: var(--card);
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
box-shadow: var(--shadow-md);
|
box-shadow: var(--shadow-sm);
|
||||||
padding: var(--card-pad);
|
padding: var(--card-pad);
|
||||||
|
transition: box-shadow 0.2s ease;
|
||||||
|
}
|
||||||
|
.module:hover {
|
||||||
|
box-shadow: var(--shadow-md);
|
||||||
}
|
}
|
||||||
.module.primary {
|
.module.primary {
|
||||||
padding: var(--card-pad-primary);
|
padding: var(--card-pad-primary);
|
||||||
|
box-shadow: var(--shadow-md);
|
||||||
|
}
|
||||||
|
.module.primary:hover {
|
||||||
box-shadow: var(--shadow-lg);
|
box-shadow: var(--shadow-lg);
|
||||||
}
|
}
|
||||||
.module.flush { padding: 0; }
|
.module.flush { padding: 0; }
|
||||||
@@ -389,7 +396,7 @@
|
|||||||
gap: var(--sp-1.5);
|
gap: var(--sp-1.5);
|
||||||
}
|
}
|
||||||
.tab:hover { color: var(--text-1); background: var(--card-hover); }
|
.tab:hover { color: var(--text-1); background: var(--card-hover); }
|
||||||
.tab.active { color: var(--text-1); background: var(--card); box-shadow: var(--shadow-xs); }
|
.tab.active { color: var(--accent); background: var(--accent-dim); font-weight: 600; }
|
||||||
|
|
||||||
.tab-badge {
|
.tab-badge {
|
||||||
font-size: var(--text-xs);
|
font-size: var(--text-xs);
|
||||||
@@ -417,6 +424,13 @@
|
|||||||
.page { padding: var(--sp-8) 0 var(--sp-20); }
|
.page { padding: var(--sp-8) 0 var(--sp-20); }
|
||||||
.page-header { margin-bottom: var(--section-gap); }
|
.page-header { margin-bottom: var(--section-gap); }
|
||||||
.page-title {
|
.page-title {
|
||||||
|
font-size: var(--text-xl);
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-1);
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
line-height: var(--leading-tight);
|
||||||
|
}
|
||||||
|
.page-subtitle {
|
||||||
font-size: var(--text-sm);
|
font-size: var(--text-sm);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--text-3);
|
color: var(--text-3);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
} = $props();
|
} = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a {href} class="action-card {size}">
|
<a {href} class="action-card {size} {variant}">
|
||||||
<div class="action-card-left">
|
<div class="action-card-left">
|
||||||
<div class="action-card-icon {variant}">
|
<div class="action-card-icon {variant}">
|
||||||
{#if variant === 'budget'}
|
{#if variant === 'budget'}
|
||||||
@@ -44,14 +44,18 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: var(--sp-5) var(--sp-5);
|
padding: var(--sp-5) var(--sp-5);
|
||||||
border-radius: var(--radius-lg);
|
border-radius: var(--radius);
|
||||||
background: var(--card);
|
background: var(--card);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
box-shadow: var(--shadow-md);
|
border-left: 3px solid var(--border);
|
||||||
transition: all var(--transition);
|
box-shadow: var(--shadow-sm);
|
||||||
|
transition: all 0.2s ease;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: none;
|
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 {
|
.action-card:hover {
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
|
|||||||
@@ -97,13 +97,13 @@
|
|||||||
-webkit-backdrop-filter: blur(16px);
|
-webkit-backdrop-filter: blur(16px);
|
||||||
}
|
}
|
||||||
.navbar-inner {
|
.navbar-inner {
|
||||||
max-width: 1200px;
|
max-width: 1400px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 56px;
|
height: 52px;
|
||||||
padding: 0 var(--sp-6);
|
padding: 0 var(--sp-6);
|
||||||
gap: var(--sp-6);
|
gap: var(--sp-5);
|
||||||
}
|
}
|
||||||
.navbar-logo {
|
.navbar-logo {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -123,19 +123,24 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
.navbar-link {
|
.navbar-link {
|
||||||
padding: 6px var(--sp-3);
|
padding: 5px var(--sp-3);
|
||||||
border-radius: var(--radius-sm);
|
border-radius: var(--radius-md);
|
||||||
font-size: var(--text-base);
|
font-size: var(--text-sm);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--text-3);
|
color: var(--text-3);
|
||||||
transition: all var(--transition);
|
transition: all 0.15s ease;
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-decoration: none;
|
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 { position: relative; }
|
||||||
.nav-dropdown-menu {
|
.nav-dropdown-menu {
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
</aside>
|
</aside>
|
||||||
<div class="app-surface">
|
<div class="app-surface">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<div class="page-title">Dashboard</div>
|
<div class="page-subtitle">Dashboard</div>
|
||||||
<div class="page-greeting">Good to see you, <strong>{userName}</strong></div>
|
<div class="page-greeting">Good to see you, <strong>{userName}</strong></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user