redesign 06 — content rendering (dark code cards, tables v3, quotes, copy affordance) #11
Loading…
Reference in a new issue
No description provided.
Delete branch "redesign/06-content-rendering"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Slice 6/9 of the selected redesign (base: #10). How markdown renders inside articles.
base16-ocean.dark→InspiredGitHub. The dark theme arrived by accident inside the askama-upgrade commit; the site is light, code cards stay light. Light card styling + the nested-prenormalization (syntect emits its own<pre>).copy→ clipboard →✓flash.border-l-2 border-blue-500+ indent,slate-700roman text. The pink callout card and long-italics treatments are out.blue-50rows.rounded-xs.#anchors —#appears on heading hover, copies the deep link (ids already exist from the TOC contract). Together with the copy button: the site's only two JS affordances beyond scroll-spy.Preview: https://redesign-06-content-rendering.dev.michalvanko.dev — open a code-heavy article (e.g. the RSS feed post) and hover a code block / heading.
Review round: geometry pass + code-card rework (2026-09-07)
Live-reviewed on a local dev server with DOM measurement; every number below verified at 1720px.
Corrections to the claims above:
base16-ocean.darkon a slate-900.code-cardis the deliberate terminal-chrome accent now (originally accidental → dropped for light → re-adopted after live review). Recorded in DESIGN.md.#anchors are NOT in this slice — found missing during review; deferred (ids already exist, CSS scaffolding present, only markup+JS missing).Delivered during review:
.code-carddiv (copy button + syntect<pre>), eliminating the<pre><code><pre>triple nesting. The copy button works: clipboard + "✓ copied" flash, hover/:focus-visiblereveal,print:hidden, transitions off under reduced motion. Verified end-to-end with trusted clicks.w-maxup tomax-w-image, centered vialeft-1/2+-translate-x-1/2(auto margins can't center an overflowing box); wide tables clear the TOC rail by the figure geometry.blue-25plate (new token, lighter than the page bg),mx-6inset,leading-normal.--spacing-image70rem → 50rem — leaner articles (images cap at 800px);w-fitlisting containers uncapped so rows keep the 42rem reading measure.mx-autoon the header grid item shrink-wrapped it to the title's width and floated it mid-column (grid auto-margin semantics) — title now sits on the column's left edge.w-72— long headings wrap instead of extending over content/images.clear-bothon breakout boxes (figure/table/blockquote/code-card) — nothing heavy renders beside the floated cover plate (fixed an 800px image overlapping the cover on the redox post)..forgejo/workflows/preview.yaml: previews also rebuild on pushes to branches with open PRs (stacked-PR merges otherwise leave dependent previews stale) — D11 updated.9738c64f4938d736371938d73637194c6bee7b9a4c6bee7b9a16054c0c1016054c0c1082ebb6a03682ebb6a036a736a8040ca736a8040c35c820fb84WIP: redesign 06 — content rendering (light code, tables, quotes)to redesign 06 — content rendering (dark code cards, tables v3, quotes, copy affordance)