From e39ce0dbca66c95c225c4e4ec5307cae53b7033d Mon Sep 17 00:00:00 2001 From: mehbark Date: Wed, 18 Feb 2026 23:36:50 -0500 Subject: [PATCH] fix pre widths to avoid overflow and ugliness --- site-src/res/main.css | 8 +++----- site-src/res/syntax-highlighting.css | 14 -------------- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/site-src/res/main.css b/site-src/res/main.css index 6f6d527..160482d 100644 --- a/site-src/res/main.css +++ b/site-src/res/main.css @@ -123,9 +123,11 @@ pre { /* yeah what the heck let's do 100 (for rust's sake) */ /* reducing the font-size a touch makes this more than reasonable methinks */ /* nvm */ - /* width: min(80.5ch, 95vw); */ + width: min(80.5ch, 95%); margin-inline: auto; font-size: 1rem; + padding: 0.5rem; + overflow: auto; } .anchor { @@ -166,10 +168,6 @@ pre { margin-block: 0 8pt; } -pre { - overflow: auto; -} - code, pre { /* kde default i think; looks nice, so i want to keep it consistent */ diff --git a/site-src/res/syntax-highlighting.css b/site-src/res/syntax-highlighting.css index 395f3cf..2f7b6a2 100644 --- a/site-src/res/syntax-highlighting.css +++ b/site-src/res/syntax-highlighting.css @@ -49,13 +49,6 @@ background: #7c6f64; /* bg4 */ } - /* Code blocks */ - pre[class*="language-"] { - padding: 1em; - margin: 0.5em 0; - overflow: auto; - } - /* :not(pre) > code[class*="language-"], pre[class*="language-"] { background: #1d2021; /* bg0_h @@ -195,13 +188,6 @@ background: #a89984; /* bg4 */ } - /* Code blocks */ - pre[class*="language-"] { - padding: 1em; - margin: 0.5em 0; - overflow: auto; - } - /* :not(pre) > code[class*="language-"], pre[class*="language-"] { background: #f9f5d7; /* bg0_h