header: add colored icon fills for active nav links, cospend icons

Active nav icons now fill with per-link colors (recipes, faith, cospend).
Cospend gets Lucide icons with background shape fills for Wallet and
RefreshCw. Shrink profile picture and use solid grey for inactive nav text.
This commit is contained in:
2026-03-01 20:41:36 +01:00
parent fdbbca3942
commit e8cb8f8232
5 changed files with 52 additions and 17 deletions
+37 -3
View File
@@ -60,7 +60,7 @@ nav {
view-transition-name: site-header;
/* token defaults (dark bar) */
--nav-text: rgba(255,255,255,0.65);
--nav-text: #999;
--nav-text-hover: white;
--nav-text-active: white;
--nav-hover-bg: rgba(255,255,255,0.1);
@@ -86,7 +86,7 @@ nav {
--nav-bg: rgba(255, 255, 255, 0.82);
--nav-border: rgba(0,0,0,0.08);
--nav-shadow: rgba(0,0,0,0.1);
--nav-text: rgba(0,0,0,0.55);
--nav-text: #888;
--nav-text-hover: var(--nord0);
--nav-text-active: var(--nord0);
--nav-hover-bg: rgba(0,0,0,0.06);
@@ -101,7 +101,7 @@ nav {
--nav-bg: rgba(255, 255, 255, 0.82);
--nav-border: rgba(0,0,0,0.08);
--nav-shadow: rgba(0,0,0,0.1);
--nav-text: rgba(0,0,0,0.55);
--nav-text: #888;
--nav-text-hover: var(--nord0);
--nav-text-active: var(--nord0);
--nav-hover-bg: rgba(0,0,0,0.06);
@@ -188,6 +188,40 @@ nav {
color: var(--nav-text-active) !important;
background: var(--nav-active-bg);
}
:global(.site_header li:has(a.active) > a > .nav-icon) {
fill: var(--active-fill, none);
}
/* For stroke-based icons: colored shape behind the icon */
:global(.site_header li:has(a.active) .nav-icon-wrap) {
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
:global(.site_header li:has(a.active) .nav-icon-wrap::before) {
content: '';
position: absolute;
inset: 2px;
background: var(--active-fill);
clip-path: var(--active-shape, inset(0 round 3px));
z-index: -1;
}
/* Wallet: two rectangles — main body + top flap */
:global(.site_header li:has(a.active) .nav-icon-wallet::before) {
inset: 4px 2px 2px 2px;
clip-path: inset(0 round 2px);
}
:global(.site_header li:has(a.active) .nav-icon-wallet::after) {
content: '';
position: absolute;
top: 2px;
left: 2px;
right: 18%;
height: 3px;
background: var(--active-fill);
border-radius: 1.5px;
z-index: -1;
}
/* ═══════════════════════════════════════════
DIVIDER & RIGHT SIDE
+3 -3
View File
@@ -83,12 +83,12 @@
button{
--margin-right: 1rem;
--margin-right: 0;
position: relative;
background-color: transparent;
border: none;
width: 2.5rem;
height: 2.5rem;
width: 1.8rem;
height: 1.8rem;
border-radius: 50%;
margin-right: var(--margin-right);
background-color: var(--nord4);