inventory dashboard setup

This commit is contained in:
Zach Harding
2026-03-25 08:42:17 -04:00
parent db12844dea
commit 9975db20cb
6 changed files with 1657 additions and 191 deletions

View File

@@ -278,6 +278,40 @@ $tiers: (
}
}
// ── Inventory form condition buttons ──────────────────────────────────────
// Reuses $tiers map so colors stay in sync with nav tabs and price-row
$cond-text: (
nm: rgba(156, 204, 102, 1),
lp: rgba(211, 225, 86, 1),
mp: rgba(255, 238, 87, 1),
hp: rgba(255, 201, 41, 1),
dmg: rgba(255, 167, 36, 1),
);
@each $name, $color in $tiers {
@if map-has-key($cond-text, $name) {
.btn-check:checked + .btn-cond-#{$name} {
background-color: $color;
border-color: $color;
color: rgba(0, 0, 0, 0.94);
}
.btn-cond-#{$name} {
border-color: rgba($color, 0.4);
color: var(--bs-body-color);
background: transparent;
font-weight: 600;
transition: background-color 0.1s, border-color 0.1s;
}
.btn-check:not(:checked) + .btn-cond-#{$name}:hover {
background-color: rgba($color, 0.67);
border-color: transparent;
}
}
}
/* --------------------------------------------------
Misc UI
-------------------------------------------------- */
@@ -430,12 +464,6 @@ $tiers: (
color: #fff;
}
#inventoryForm .btn-check:checked + .nav-link {
outline: 2px solid rgba(0, 0, 0, 0.4);
outline-offset: -2px;
}
#inventoryForm .nav-link { cursor: pointer; }
.fs-7 {
font-size: 0.9rem !important;
}