From d5620476180443cb1a8869d37ca26410a2e569a5 Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Fri, 20 Feb 2026 11:00:01 +0100 Subject: [PATCH] add bleed to code blocks and images on liveline page Code blocks and chart placeholders now extend 36px beyond the 550px prose column on each side via negative margins (.ll-bleed class). This aligns the code text (after line numbers) flush with the prose left edge. - --ll-bleed: 36px CSS variable (8px div padding + 28px line-number span) - Responsive: bleed disabled below 650px viewport - overflow-x-hidden on page wrapper prevents horizontal scroll --- website/src/routes/liveline.tsx | 6 +++--- website/src/styles/liveline.css | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/website/src/routes/liveline.tsx b/website/src/routes/liveline.tsx index 7f58a5c..a0bd7d8 100644 --- a/website/src/routes/liveline.tsx +++ b/website/src/routes/liveline.tsx @@ -330,7 +330,7 @@ function CodeBlock({ children, lang = "jsx" }: { children: string; lang?: string }, [children]); return ( -
+
+    
:nth-child(8) { animation-delay: 0.35s; } .liveline-article > :nth-child(n + 9) { animation-delay: 0.4s; } +/* ======================================================================== + Bleed — code blocks and images extend beyond the prose column so that + the code text (after line numbers) aligns with the prose left edge. + 36px = 8px div padding-left + 28px line-number span (border-box, includes padding). + ======================================================================== */ + +.ll-bleed { + margin-left: calc(-1 * var(--ll-bleed)); + margin-right: calc(-1 * var(--ll-bleed)); +} + +@media (max-width: 650px) { + .ll-bleed { + margin-left: 0; + margin-right: 0; + } +} + /* ======================================================================== Header fade gradient ======================================================================== */