From 43a2e3dce40ca00e2e9fe6680c15091ecc76098a Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Sun, 5 Jul 2026 17:54:30 +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/discography.ninjatpl | 4 ++-- manifest.yaml | 26 -------------------------- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/blocks/discography.ninjatpl b/blocks/discography.ninjatpl index 9868499..9860bc4 100644 --- a/blocks/discography.ninjatpl +++ b/blocks/discography.ninjatpl @@ -3,7 +3,7 @@
{% if heading %}

{{ heading }}

{% endif %} {% if releases %} -
+
{% for release in releases %}
{% else %} -
+
{% if release.link %}{% else %}{% endif %}
{% endif %} diff --git a/manifest.yaml b/manifest.yaml index 23dcaf0..31dbd36 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -358,32 +358,6 @@ css: 0 4px 14px hsl(var(--bevel-dark) / 0.22); } - /* --- Responsive persona grids ----------------------------- */ - /* Explicit media queries so column counts do NOT depend on the host - Tailwind build having scanned these theme templates (persona blocks - use responsive class combos no builtin emits, so the JIT drops them - and the grid collapses to its base count). 1 col on phones. */ - .y2k-grid-records { - display: grid; - gap: 1.5rem; - grid-template-columns: minmax(0, 1fr); - } - @media (min-width: 640px) { - .y2k-grid-records { grid-template-columns: repeat(2, minmax(0, 1fr)); } - } - @media (min-width: 1024px) { - .y2k-grid-records { grid-template-columns: repeat(4, minmax(0, 1fr)); } - } - - /* Compact chrome tile for absent album/track art — a fixed, modest - height so an empty media field never balloons into a blank box. */ - .y2k-media-empty { - display: flex; - align-items: center; - justify-content: center; - height: 11rem; - } - /* --- Marquee ---------------------------------------------- */ .y2k-marquee { overflow: hidden;