From def29b6e9c26c50f17576d6428765690e548ba54 Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Sun, 5 Jul 2026 17:54:25 +0800 Subject: [PATCH] refactor: replace hand-rolled utility CSS with Tailwind classes (host build now scans theme templates) --- assets/style.css | 10 ---------- blocks/private_dining.ninjatpl | 2 +- manifest.yaml | 10 ---------- templates/overrides/art-deco/hero.ninjatpl | 2 +- 4 files changed, 2 insertions(+), 22 deletions(-) diff --git a/assets/style.css b/assets/style.css index cb351f4..9cfaf75 100644 --- a/assets/style.css +++ b/assets/style.css @@ -17,16 +17,6 @@ margin: 0; } - /* deco-hero-compact — image-less hero: comfortable padding, no viewport-height balloon. */ - .deco-hero-compact { padding-top: 4rem; padding-bottom: 4rem; } - @media (min-width: 768px) { - .deco-hero-compact { padding-top: 6rem; padding-bottom: 6rem; } - } - - /* deco-stats — capacity/minimum figure row: guaranteed column gap so values never collide. */ - .deco-stats { display: flex; flex-wrap: wrap; gap: 0.75rem 3rem; } - .deco-stats-center { justify-content: center; } - /* deco-frame — stepped ziggurat frame, layered borders + clipped corners. */ .deco-frame { position: relative; diff --git a/blocks/private_dining.ninjatpl b/blocks/private_dining.ninjatpl index 70a45aa..3fd67a6 100644 --- a/blocks/private_dining.ninjatpl +++ b/blocks/private_dining.ninjatpl @@ -7,7 +7,7 @@ {% if eyebrow %}
{{ eyebrow }}{% if not hasImage %}{% endif %}
{% endif %} {% if title %}

{{ title }}

{% endif %} {% if description %}
{{ description|safe }}
{% endif %} - {% if seats or minimum %}
{% if seats %}
Capacity
{{ seats }}
{% endif %}{% if minimum %}
Minimum
{{ minimum }}
{% endif %}
{% endif %} + {% if seats or minimum %}
{% if seats %}
Capacity
{{ seats }}
{% endif %}{% if minimum %}
Minimum
{{ minimum }}
{% endif %}
{% endif %} {% if enquireUrl %}{{ enquireLabel|default:"Enquire" }}{% endif %} diff --git a/manifest.yaml b/manifest.yaml index 8700749..97c3db4 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -128,16 +128,6 @@ css: margin: 0; } - /* deco-hero-compact — image-less hero: comfortable padding, no viewport-height balloon. */ - .deco-hero-compact { padding-top: 4rem; padding-bottom: 4rem; } - @media (min-width: 768px) { - .deco-hero-compact { padding-top: 6rem; padding-bottom: 6rem; } - } - - /* deco-stats — capacity/minimum figure row: guaranteed column gap so values never collide. */ - .deco-stats { display: flex; flex-wrap: wrap; gap: 0.75rem 3rem; } - .deco-stats-center { justify-content: center; } - /* deco-frame — stepped ziggurat frame, layered borders + clipped corners. */ .deco-frame { position: relative; diff --git a/templates/overrides/art-deco/hero.ninjatpl b/templates/overrides/art-deco/hero.ninjatpl index 63d0ec2..2710637 100644 --- a/templates/overrides/art-deco/hero.ninjatpl +++ b/templates/overrides/art-deco/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 %}
{{ herocontent(align) }}