food diary bug fix, blocking calorie count

This commit is contained in:
Joren de Graaf
2026-10-18 00:03:47 +02:00
parent e3b14d6823
commit a8418cdba7
8 changed files with 150 additions and 41 deletions
+3
View File
@@ -24,6 +24,8 @@ body[data-theme="dark"]{--food-surface:#202923;--food-border:#3b473f;--food-ink:
.food-export-actions a{color:var(--food-ink);border-color:var(--food-border)}
.food-export-actions a:hover,.food-export-actions a:focus-visible{background:var(--food-progress-track)}
.food-macro p,.food-product-list small{color:var(--food-muted)}
.food-warning-mark{display:inline-grid;place-items:center;width:1.25em;height:1.25em;border-radius:50%;background:#a15a12;color:#fff;font-size:.85em;font-weight:800;vertical-align:middle}
.food-incomplete-warning{border-color:#b98b45}.food-incomplete-warning h2{font-size:1.1rem}.food-incomplete-warning p{line-height:1.45}.food-incomplete-warning details{margin-top:.65rem}.food-incomplete-warning summary{cursor:pointer;font-weight:700}.food-incomplete-warning ul{padding-left:1.25rem;margin:.6rem 0 0}.food-incomplete-warning li{margin:.4rem 0;overflow-wrap:anywhere}.food-partial-note{line-height:1.4}
body[data-theme="dark"] .food-tabs a[aria-current=page]{color:#102317}
/* Four goals fit the existing nutrition sidebar in a compact two-column grid. */
@@ -47,6 +49,7 @@ body[data-theme="dark"] .food-tabs a[aria-current=page]{color:#102317}
/* Nutrient guidance sits above the card content and stays within the viewport. */
.food-macro{position:relative;padding-top:2.8rem}
@media(max-width:460px){.food-macros{grid-template-columns:1fr}.food-macro{flex-direction:row;align-items:center;text-align:left;gap:1rem;padding:.85rem 3rem .85rem .85rem}.food-macro h3{font-size:1rem;white-space:normal}.food-macro p{font-size:.88rem;line-height:1.35}.food-ring{flex:none}}
.food-help-trigger{position:absolute;top:.25rem;right:.25rem;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--food-ink);cursor:pointer}
.food-help-trigger span{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--food-muted);border-radius:50%;font:700 .85rem/1 inherit}
.food-help-trigger:hover span,.food-help-trigger[aria-expanded="true"] span{background:var(--food-progress-track)}