From c99a9631836315a2dafcba2504e512e763e3c6e6 Mon Sep 17 00:00:00 2001 From: Song Feng Date: Thu, 3 Dec 2026 14:37:02 -0600 Subject: [PATCH] Make code blocks readable main.css sets .prose pre to a white background, but the text colour is left at Tailwind Typography's #e5e7eb, which that stylesheet chose to sit on its own dark panel. Near-white on white: the ipSAE listing in the ORF3a report was all but invisible. Set both sides of the pair in site.css, which loads last: a soft panel in the site's greens with ink-coloured text and a green left rule, matching the report's tables and figures. Also switches overflow-x from hidden to auto, so a long line scrolls instead of being clipped. Site-wide rather than scoped to .bj-report, since the bug is in the shared stylesheet and would bite any future code block. Co-Authored-By: Claude Opus 5 --- static/css/site.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/static/css/site.css b/static/css/site.css index 6bc6c28..21097ce 100644 --- a/static/css/site.css +++ b/static/css/site.css @@ -61,3 +61,20 @@ a.bj-card:hover, .bj-card.is-link:hover { transform: translateY(-3px); box-shado @media (max-width: 640px) { .bj-report table { display: block; overflow-x: auto; white-space: nowrap; } } + +/* --- Code blocks ------------------------------------------------------------- + main.css gives .prose pre a white background but leaves Tailwind Typography's + text colour at #e5e7eb, which that stylesheet picked for its own dark panel. + Near-white on white is unreadable, so set both sides of the pair here. */ +.prose pre:not(.mermaid) { + background: #f4f7f5; + color: var(--bj-ink); + border: 1px solid #dde5e0; + border-left: 3px solid var(--bj-green); + box-shadow: none; + overflow-x: auto; + line-height: 1.55; + -moz-tab-size: 4; + tab-size: 4; +} +.prose pre:not(.mermaid) code { color: inherit; font-weight: 400; }