From 6b8367377b773233b86594664185e46940e95edf Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Sun, 5 Jul 2026 17:53:54 +0800 Subject: [PATCH] refactor: replace hand-rolled utility CSS with Tailwind classes (host build now scans theme templates) Co-Authored-By: Claude Opus 4.8 --- blocks/membership_tiers.ninjatpl | 2 +- manifest.yaml | 12 ------------ templates/overrides/gotham/hero.ninjatpl | 2 +- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/blocks/membership_tiers.ninjatpl b/blocks/membership_tiers.ninjatpl index 2fb7190..62e315a 100644 --- a/blocks/membership_tiers.ninjatpl +++ b/blocks/membership_tiers.ninjatpl @@ -7,7 +7,7 @@ {% if intro %}

{{ intro }}

{% endif %} {% if tiers %} -
+
{% for tier in tiers %}
diff --git a/manifest.yaml b/manifest.yaml index f7e0333..99f7b0e 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -227,16 +227,4 @@ css: /* Raw CSS (outside @layer, JIT-scan-independent) — layout guarantees the * host Tailwind scan may not reliably emit from theme .ninjatpl files. * Imageless hero: a compact letterboxed text plate, never a 75vh void. */ - .gotham-hero-plate { min-height: 520px; } @media (max-width: 640px) { .gotham-hero-plate { min-height: 380px; } } - - /* Mobile collapse safety net — guarantee persona/override grids fall to a - * single column at ~<=640px even if the responsive prefix classes are not - * compiled from the theme templates. Base is already 1-col in the markup; - * this hard-forces it so a dropped sm:/md:/lg: prefix can never strand a - * wide multi-column grid on a phone (no horizontal overflow). */ - @media (max-width: 640px) { - [data-block="gotham:events_marquee"] ul > li { grid-template-columns: 1fr !important; } - [data-block="gotham:membership_tiers"] .grid, - [data-block-override="gotham:feature-grid"] .grid { grid-template-columns: 1fr !important; } - } diff --git a/templates/overrides/gotham/hero.ninjatpl b/templates/overrides/gotham/hero.ninjatpl index 2159768..9408b0e 100644 --- a/templates/overrides/gotham/hero.ninjatpl +++ b/templates/overrides/gotham/hero.ninjatpl @@ -32,7 +32,7 @@ {% else %} {% set align = "center" %} {% if variant == "left-aligned" %}{% set align = "left" %}{% endif %} -
+
{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}
{% endif %}
{% endif %}