Track age and weight

This commit is contained in:
Alexander Heldt
2026-07-04 09:20:31 +00:00
parent 709a051afb
commit f14a749169
6 changed files with 540 additions and 17 deletions
+44 -1
View File
@@ -9,7 +9,9 @@
--eat: #ff9b3d;
--pee: #ffd23f;
--poo: #8a5a3b;
--weight: #2bb3a3;
--danger: #d64545;
--gain: #2e9e5b;
--border: #e9e6f5;
--radius: 12px;
--shadow: 0 1px 2px rgba(20, 14, 60, 0.05), 0 4px 16px rgba(20, 14, 60, 0.05);
@@ -57,6 +59,32 @@ h1 {
margin: 0;
}
.title {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.puppy-age {
font-size: 0.8rem;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.header-actions {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.icon-btn {
padding: 6px 10px;
font-size: 1.1rem;
line-height: 1;
}
h2 {
font-size: 1rem;
text-transform: uppercase;
@@ -156,6 +184,7 @@ button.action.sleep { background: var(--sleep); }
button.action.eat { background: var(--eat); }
button.action.pee { background: var(--pee); color: #2b240a; }
button.action.poo { background: var(--poo); }
button.action.weight { background: var(--weight); }
button.ghost {
background: transparent;
@@ -227,7 +256,7 @@ button.danger { background: var(--danger); }
.history-controls label { color: var(--muted); font-size: 0.85rem; }
input[type="date"], input[type="datetime-local"], textarea {
input[type="date"], input[type="datetime-local"], input[type="text"], input[type="number"], textarea {
font: inherit;
background: var(--bg);
color: var(--text);
@@ -313,6 +342,7 @@ textarea { resize: vertical; }
.event[data-type="eat"] .dot { background: var(--eat); }
.event[data-type="pee"] .dot { background: var(--pee); }
.event[data-type="poo"] .dot { background: var(--poo); }
.event[data-type="weight"] .dot { background: var(--weight); }
.event .time { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 60px; }
.event .label { font-weight: 600; min-width: 110px; }
@@ -459,6 +489,19 @@ dialog menu {
.chart-svg .bar-pee { fill: var(--pee); }
.chart-svg .bar-poo { fill: var(--poo); }
.chart-svg .bar-eat { fill: var(--eat); }
.chart-svg .weight-line { stroke: var(--weight); stroke-width: 2; fill: none; }
.chart-svg .weight-dot { fill: var(--weight); }
.weight-summary {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
margin-bottom: 16px;
}
.weight-summary .stat-value.up { color: var(--gain); }
.weight-summary .stat-value.down { color: var(--danger); }
.ww.weight-ww { cursor: pointer; }
.ww.weight-ww .ww-dur { text-align: right; }
.legend {
display: flex;