From fe0c2988c21e9c519b85087ba74ab74c3d05893c Mon Sep 17 00:00:00 2001 From: jay Date: Fri, 26 Jun 2026 21:25:22 -0400 Subject: [PATCH] /onthisday: lower "IN HISTORY" to the visible top of "2013" (cap-offset fix) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per Codex: top clamp(4px,0.7vw,6px) → clamp(9px,1.5vw,12px). Label is absolutely positioned, so this only moves it down ~6px to meet the numerals' visible cap — the year/date baseline and the rest of the row are untouched. Co-Authored-By: Claude Opus 4.8 --- frontend/src/routes/onthisday/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/onthisday/+page.svelte b/frontend/src/routes/onthisday/+page.svelte index 8ec3399..c8fe0f9 100644 --- a/frontend/src/routes/onthisday/+page.svelte +++ b/frontend/src/routes/onthisday/+page.svelte @@ -133,7 +133,7 @@ "IN HISTORY" is absolutely positioned in the reserved start-padding so raising it can never drag that baseline (Codex's structure). Both green so the line ties in the Read-more button. */ .year-block { --ys: clamp(34px, 5.5vw, 46px); position: relative; display: inline-block; padding-inline-start: 90px; line-height: 1; flex: none; } - .yb-label { position: absolute; inset-inline-start: 0; top: clamp(4px, 0.7vw, 6px); line-height: 1; font-family: 'Hanken Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #367653; } + .yb-label { position: absolute; inset-inline-start: 0; top: clamp(9px, 1.5vw, 12px); line-height: 1; font-family: 'Hanken Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #367653; } .yb-year { position: static; display: inline-block; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: var(--ys); line-height: 1; color: #2c5d44; } /* the full line can't fit cleanly on a narrow phone — wrap it deliberately: year lockup on its