From 2066c9933766f5176a79ecf4ce5acc3a5fd339f1 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 5 Nov 2026 11:16:10 +0100 Subject: fix: code block alignment and backticks around inline code The line number column took a share of the spare table width, pushing the code to the right. Typography's literal backticks showed around inline code, which already has its own box. Co-Authored-By: Claude Opus 5.5 --- assets/css/chroma-custom.css | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'assets/css/chroma-custom.css') diff --git a/assets/css/chroma-custom.css b/assets/css/chroma-custom.css index d632e09..b4a8c49 100644 --- a/assets/css/chroma-custom.css +++ b/assets/css/chroma-custom.css @@ -140,6 +140,11 @@ vertical-align: top; } +/* The line numbers take only the width they need, the code gets the rest. */ +.highlight .lntd:first-child { + width: 1%; +} + /* Line number column — not selectable */ /* color: --ctp-overlay0 (#6e738d) on --ctp-surface0 (#363a4f) = ~3.5:1 */ .highlight .lnt, -- cgit v1.2.3