Root cause: featured_pour's empty-media placeholder used an external <use> SVG (svg class=h-24 w-24 + use href=/icons/lucide.svg#coffee) sized ONLY by Tailwind utilities. The host Tailwind JIT does not reliably emit utility classes used solely in a theme block template, so h-24/w-24 could be dropped from the generated stylesheet; the SVG (no viewBox, no intrinsic size) then ballooned to fill its aspect-square parent (~350-500px cup silhouettes over the hero/blog cards). Fix pins width/height geometry attributes on every <use> icon SVG so size is CSS-independent and deterministic. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
14 lines
1.4 KiB
Plaintext
14 lines
1.4 KiB
Plaintext
<section class="py-16 md:py-24 {% if background == "muted" %}bg-muted text-foreground{% elif background == "card" %}bg-card text-card-foreground{% else %}bg-background text-foreground{% endif %}{% if class %} {{ class }}{% endif %}">
|
|
<div class="mx-auto grid max-w-6xl items-center gap-10 px-4 md:grid-cols-2 md:gap-16">
|
|
<div class="{% if mediaPosition == "left" %}md:order-2{% else %}md:order-1{% endif %}">
|
|
{% if eyebrow %}<p class="coffee-hand text-2xl text-accent">{{ eyebrow }}</p>{% endif %}
|
|
{% if heading %}<h2 class="coffee-display mt-1 text-3xl text-primary md:text-4xl"><span class="coffee-doodle-underline">{{ heading }}</span></h2>{% endif %}
|
|
{% if body %}<div class="coffee-body mt-4 space-y-4 text-lg text-muted-foreground [&_a]:text-accent [&_a]:underline [&_a]:decoration-dashed [&_strong]:text-primary">{{ body|safe }}</div>{% endif %}
|
|
{% if ctaUrl and ctaLabel %}<a href="{{ ctaUrl }}" class="kraft-tag mt-6 text-base px-5 py-3">{{ ctaLabel }}<svg width="16" height="16" class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %}
|
|
</div>
|
|
<div class="{% if mediaPosition == "left" %}md:order-1{% else %}md:order-2{% endif %}">
|
|
{% if media %}<div class="coffee-frame coffee-torn-bottom overflow-hidden rounded-sm p-2">{% img media alt=mediaAlt class="h-auto w-full rounded-sm object-cover" %}</div>{% endif %}
|
|
</div>
|
|
</div>
|
|
</section>
|