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; }