From 86be3034c8a997c6759761ac5ea2d88021003c63 Mon Sep 17 00:00:00 2001 From: Joren de Graaf Date: Sun, 4 Oct 2026 01:50:36 +0200 Subject: [PATCH] prepping for inventory logging --- main/food/static/food/food.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main/food/static/food/food.css b/main/food/static/food/food.css index 2518256..2e91e0f 100644 --- a/main/food/static/food/food.css +++ b/main/food/static/food/food.css @@ -20,3 +20,13 @@ body[data-theme="dark"]{--food-surface:#202923;--food-border:#3b473f;--food-ink: .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)} body[data-theme="dark"] .food-tabs a[aria-current=page]{color:#102317} + +/* Keep the three macro summaries on one compact row on phones. */ +@media(max-width:760px){ + .food-macros{grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem} + .food-macro{display:flex;flex-direction:column;align-items:center;gap:.35rem;min-width:0;padding:.55rem .25rem;text-align:center} + .food-ring{width:48px;height:48px;margin:0} + .food-ring span{width:38px;height:38px;font-size:.7rem} + .food-macro h3{font-size:.8rem;line-height:1.15;margin:0;overflow-wrap:anywhere} + .food-macro p{font-size:.7rem;line-height:1.2;margin:.1rem 0;overflow-wrap:anywhere} +}