diff --git a/assets/style.css b/assets/style.css index dd435f8..1f771bb 100644 --- a/assets/style.css +++ b/assets/style.css @@ -182,29 +182,13 @@ body.coffee-paper { } /* --- Layout helpers ------------------------------------------------------ - * Explicit CSS so these layouts never depend on the host Tailwind JIT - * compiling arbitrary/responsive utilities out of THEME templates — it does - * not scan them reliably, so `min-h-[50vh]` / `md:grid-cols-[2fr_3fr]` / - * `md:grid-cols-2` in a theme file can silently vanish. Base is always a - * single column, so grids collapse on mobile regardless of the JIT. */ -.coffee-minh-50 { min-height: 50vh; } -.coffee-minh-75 { min-height: 75vh; } -.coffee-minh-screen { min-height: 100vh; } -.coffee-minh-400 { min-height: 400px; } -.coffee-minh-320 { min-height: 320px; } - -.coffee-split-2 { display: grid; grid-template-columns: 1fr; } + * coffee-pour-grid keeps an explicit md 2fr:3fr split — a non-standard grid + * ratio with no plain Tailwind utility. Single-column base collapses on + * mobile. */ .coffee-pour-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; } -.coffee-menu-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 3rem; } -.coffee-info-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; } @media (min-width: 768px) { .coffee-pour-grid { grid-template-columns: 2fr 3fr; align-items: center; } - .coffee-menu-grid.coffee-menu-grid--2 { grid-template-columns: 1fr 1fr; } - .coffee-info-grid.coffee-info-grid--2 { grid-template-columns: 1fr 1fr; } -} -@media (min-width: 1024px) { - .coffee-split-2 { grid-template-columns: 1fr 1fr; } } /* --- Price + spec chips ------------------------------------------------- */ diff --git a/manifest.yaml b/manifest.yaml index d1f94d3..72344ae 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -290,29 +290,15 @@ css: } /* --- Layout helpers ------------------------------------------------------ - * Explicit CSS so these layouts never depend on the host Tailwind JIT - * compiling arbitrary/responsive utilities out of THEME templates — it does - * not scan them reliably, so `min-h-[50vh]` / `md:grid-cols-[2fr_3fr]` / - * `md:grid-cols-2` in a theme file can silently vanish. Base is always a - * single column, so grids collapse on mobile regardless of the JIT. */ - .coffee-minh-50 { min-height: 50vh; } - .coffee-minh-75 { min-height: 75vh; } - .coffee-minh-screen { min-height: 100vh; } - .coffee-minh-400 { min-height: 400px; } - .coffee-minh-320 { min-height: 320px; } - - .coffee-split-2 { display: grid; grid-template-columns: 1fr; } + * coffee-pour-grid keeps an explicit md 2fr:3fr split — a non-standard grid + * ratio with no plain Tailwind utility. Single-column base collapses on + * mobile. (The min-height + standard-column grid helpers that used to live + * here are now plain Tailwind utilities in the templates, since the host + * build scans theme .ninjatpl files.) */ .coffee-pour-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; } - .coffee-menu-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 3rem; } - .coffee-info-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; } @media (min-width: 768px) { .coffee-pour-grid { grid-template-columns: 2fr 3fr; align-items: center; } - .coffee-menu-grid.coffee-menu-grid--2 { grid-template-columns: 1fr 1fr; } - .coffee-info-grid.coffee-info-grid--2 { grid-template-columns: 1fr 1fr; } - } - @media (min-width: 1024px) { - .coffee-split-2 { grid-template-columns: 1fr 1fr; } } /* --- Price + spec chips ------------------------------------------------- */ diff --git a/templates/overrides/coffee/hero.ninjatpl b/templates/overrides/coffee/hero.ninjatpl index 4fae2af..f306857 100644 --- a/templates/overrides/coffee/hero.ninjatpl +++ b/templates/overrides/coffee/hero.ninjatpl @@ -22,14 +22,14 @@ {% if trustLogos %}
Regulars love