From fb3504cec8a4df3cd2b71b764b6f3ab861d031c4 Mon Sep 17 00:00:00 2001 From: Bissbert <43237892+Bissbert@users.noreply.github.com> Date: Thu, 16 Jul 2026 17:54:11 +0200 Subject: [PATCH] fix(learn): render dropped subsection content + list-badge, reference-link & citation-flash polish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - subsections now render comparison/callout/crystal fields (subsectionSchema + Subsection interface + render branches were missing them) — restores 10 silently-dropped content blocks across 6 articles incl. crystallography-advanced's Open-vs-Closed comparison and 3 CDL-example demos, plus a dev-mode warning for unhandled subsection keys - fixes a secondary crystal-subsection misroute into CrystalSystemCard - fixes ordered-list counter-badge overlap under prose-lg (replicated custom ol/li/::before rules into typography.lg — regression from PR #55) - reference DOI/URL links now visible (crystal-700 + underline) in light mode for WCAG 1.4.1 - citation :target flash lengthened to ~2.6s hold-then-fade - learn hub intro broken into a scannable value-line + 3-item feature list - 502 tests, browser-verified both themes --- src/components/learn/References.astro | 36 +++++++++--- src/components/learn/SectionRenderer.astro | 67 +++++++++++++++++++++- src/content/config.ts | 19 ++++++ src/pages/learn/index.astro | 30 ++++++---- tailwind.config.mjs | 55 ++++++++++++++++++ 5 files changed, 186 insertions(+), 21 deletions(-) diff --git a/src/components/learn/References.astro b/src/components/learn/References.astro index 341edd8..a28f8fb 100644 --- a/src/components/learn/References.astro +++ b/src/components/learn/References.astro @@ -57,10 +57,25 @@ const citations = [...citationIndex.values()].sort((a, b) => a.n - b.n); )}