From adfbf436e15bfddeae3b47dbce26179b026145ca Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 25 Oct 2025 14:48:59 -0300 Subject: css: content-code precision --- src/static/css/site.css | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/static') diff --git a/src/static/css/site.css b/src/static/css/site.css index 4998b799..bde7e0cc 100644 --- a/src/static/css/site.css +++ b/src/static/css/site.css @@ -1555,19 +1555,25 @@ li:not(:first-child:last-child) .tooltip:where(:not(.cover-artwork .tooltip)), } pre.content-code { - white-space: normal; background: black; color: white; + + white-space: nowrap; + padding: 5px; max-width: calc(100vw - 180px); + + /* Welcome to heck. */ + font-family: inherit; + overflow-x: scroll; border: 1px dashed var(--primary-color); } pre.content-code code { + font-family: "courier new", monospace; + font-weight: 800; font-size: 0.8em; - line-height: 1; - white-space: nowrap; } s.spoiler { -- cgit 1.3.0-6-gf8a5