diff --git a/assets/style.css b/assets/style.css index 0d3ceb2..153a2ef 100644 --- a/assets/style.css +++ b/assets/style.css @@ -252,42 +252,6 @@ body.pd-paper { } } -/* --- Layout helpers (theme-owned, semantic tokens only) ----------------- - * Installed .bnp themes live outside the host Tailwind @source globs, so the - * host build does NOT compile grid / aspect-ratio / gap / padding utilities - * that appear only in this theme's own templates. The theme therefore owns - * those layout primitives here as plain CSS: mobile-first, collapsing to a - * single column on small screens, with explicit media queries so the render - * is reliable regardless of the JIT content scan. No colors — layout only. */ -.pd-section { padding-top: 2.75rem; padding-bottom: 2.75rem; } -@media (min-width: 768px) { - .pd-section { padding-top: 4rem; padding-bottom: 4rem; } -} - -.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; } -@media (min-width: 640px) { - .pd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } -} -@media (min-width: 1024px) { - .pd-grid--lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } - .pd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } - .pd-grid--lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } -} - -/* Two-up menu board: one column on phones, two side by side from md. */ -.pd-menu-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 3rem; } -@media (min-width: 768px) { - .pd-menu-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } -} +/* --- Menu list rhythm (complex child-combinator selector) --------------- */ .pd-menu-list { margin-top: 1rem; } .pd-menu-list > li + li { margin-top: 1.25rem; } - -/* Media frames: a fixed aspect box so a photo fills gracefully. The EMPTY - * state is omitted in-template (no ballooning boxes when no photo is set). */ -.pd-media { position: relative; width: 100%; overflow: hidden; aspect-ratio: 4 / 3; } -.pd-media--square { aspect-ratio: 1 / 1; } -.pd-media img { display: block; width: 100%; height: 100%; object-fit: cover; } - -/* Card body padding (host may not emit p-5 for theme templates). */ -.pd-card-body { padding: 1.25rem 1.25rem 1.5rem; } -@media (min-width: 768px) { .pd-card-body { padding: 1.5rem; } } diff --git a/blocks/bakers_note.ninjatpl b/blocks/bakers_note.ninjatpl index 96bf153..ad69330 100644 --- a/blocks/bakers_note.ninjatpl +++ b/blocks/bakers_note.ninjatpl @@ -1,4 +1,4 @@ -
+
diff --git a/blocks/cake_gallery.ninjatpl b/blocks/cake_gallery.ninjatpl index 89a738a..318a6a1 100644 --- a/blocks/cake_gallery.ninjatpl +++ b/blocks/cake_gallery.ninjatpl @@ -1,15 +1,15 @@ -
+
{% if heading %}

{{ heading }}

{% endif %} {% if intro %}

{{ intro }}

{% endif %}
{% if cakes %} -
+
{% for cake in cakes %}
- {% if cake.image %}
{% img cake.image alt=cake.name|default:"Cake" class="h-full w-full object-cover" %}
{% endif %} -
+ {% if cake.image %}
{% img cake.image alt=cake.name|default:"Cake" class="block h-full w-full object-cover" %}
{% endif %} +
{% if cake.name %}

{{ cake.name }}

{% endif %} diff --git a/blocks/order_ribbon.ninjatpl b/blocks/order_ribbon.ninjatpl index f2c2697..bdec333 100644 --- a/blocks/order_ribbon.ninjatpl +++ b/blocks/order_ribbon.ninjatpl @@ -1,4 +1,4 @@ -
+
diff --git a/blocks/seasonal_specials.ninjatpl b/blocks/seasonal_specials.ninjatpl index f64082b..083f583 100644 --- a/blocks/seasonal_specials.ninjatpl +++ b/blocks/seasonal_specials.ninjatpl @@ -1,4 +1,4 @@ -
+
{% if kicker %}

{{ kicker }}

{% endif %} @@ -6,11 +6,11 @@ {% if intro %}

{{ intro }}

{% endif %}
{% if items %} -
+
{% for item in items %}
- {% if item.image %}
{% img item.image alt=item.name|default:"Seasonal special" class="h-full w-full object-cover" %}
{% endif %} -
+ {% if item.image %}
{% img item.image alt=item.name|default:"Seasonal special" class="block h-full w-full object-cover" %}
{% endif %} +

{{ item.name }}

{% if item.price %}{% if currency %}{{ currency }}{% endif %}{{ item.price }}{% endif %} diff --git a/manifest.yaml b/manifest.yaml index 2f8ec41..9c62cdc 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -361,42 +361,6 @@ css: } } - /* --- Layout helpers (theme-owned, semantic tokens only) ----------------- - * Installed .bnp themes live outside the host Tailwind @source globs, so the - * host build does NOT compile grid / aspect-ratio / gap / padding utilities - * that appear only in this theme's own templates. The theme therefore owns - * those layout primitives here as plain CSS: mobile-first, collapsing to a - * single column on small screens, with explicit media queries so the render - * is reliable regardless of the JIT content scan. No colors — layout only. */ - .pd-section { padding-top: 2.75rem; padding-bottom: 2.75rem; } - @media (min-width: 768px) { - .pd-section { padding-top: 4rem; padding-bottom: 4rem; } - } - - .pd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; } - @media (min-width: 640px) { - .pd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } - } - @media (min-width: 1024px) { - .pd-grid--lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } - .pd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } - .pd-grid--lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } - } - - /* Two-up menu board: one column on phones, two side by side from md. */ - .pd-menu-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 3rem; } - @media (min-width: 768px) { - .pd-menu-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } - } + /* --- Menu list rhythm (complex child-combinator selector) --------------- */ .pd-menu-list { margin-top: 1rem; } .pd-menu-list > li + li { margin-top: 1.25rem; } - - /* Media frames: a fixed aspect box so a photo fills gracefully. The EMPTY - * state is omitted in-template (no ballooning boxes when no photo is set). */ - .pd-media { position: relative; width: 100%; overflow: hidden; aspect-ratio: 4 / 3; } - .pd-media--square { aspect-ratio: 1 / 1; } - .pd-media img { display: block; width: 100%; height: 100%; object-fit: cover; } - - /* Card body padding (host may not emit p-5 for theme templates). */ - .pd-card-body { padding: 1.25rem 1.25rem 1.5rem; } - @media (min-width: 768px) { .pd-card-body { padding: 1.5rem; } } diff --git a/templates/overrides/pastel-dream/cta.ninjatpl b/templates/overrides/pastel-dream/cta.ninjatpl index 9606489..8104b21 100644 --- a/templates/overrides/pastel-dream/cta.ninjatpl +++ b/templates/overrides/pastel-dream/cta.ninjatpl @@ -1,4 +1,4 @@ -
+
diff --git a/templates/overrides/pastel-dream/feature-grid.ninjatpl b/templates/overrides/pastel-dream/feature-grid.ninjatpl index 16ce693..650aea4 100644 --- a/templates/overrides/pastel-dream/feature-grid.ninjatpl +++ b/templates/overrides/pastel-dream/feature-grid.ninjatpl @@ -3,7 +3,7 @@ {% if eyebrow %}

{{ eyebrow }}

{% endif %} {% if heading %}

{{ heading }}

{% endif %} {% if intro %}

{{ intro }}

{% endif %} -
+
{% for item in items %}
{% if item.icon %}
{% endif %} diff --git a/templates/overrides/pastel-dream/hours-location.ninjatpl b/templates/overrides/pastel-dream/hours-location.ninjatpl index 016f1aa..3d59494 100644 --- a/templates/overrides/pastel-dream/hours-location.ninjatpl +++ b/templates/overrides/pastel-dream/hours-location.ninjatpl @@ -1,7 +1,7 @@ -
+
{% if heading %}

{{ heading }}

{% endif %} -
+
{% if hours %} diff --git a/templates/overrides/pastel-dream/menu-list.ninjatpl b/templates/overrides/pastel-dream/menu-list.ninjatpl index e96a758..eaf09d4 100644 --- a/templates/overrides/pastel-dream/menu-list.ninjatpl +++ b/templates/overrides/pastel-dream/menu-list.ninjatpl @@ -1,9 +1,9 @@ -
+
{% if heading %}

{{ heading }}

{% endif %} {% if intro %}

{{ intro }}

{% endif %}
-
+
{% for section in sections %}