From 43feb8c94cca9dedb2633944346e657462a081ae Mon Sep 17 00:00:00 2001 From: mntn <85877297+mntn-xyz@users.noreply.github.com> Date: Sat, 31 Jul 2021 21:34:03 -0400 Subject: [PATCH] Add margin and padding to pre blocks This puts one character's worth of padding inside each pre block, making the text inside easier to read. It also changes the margin to match the spacing of paragraphs, ensuring that everything is aligned "on the line" as if it is displayed in a terminal. --- static/css/typography.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/css/typography.css b/static/css/typography.css index 5901591..b9a241e 100644 --- a/static/css/typography.css +++ b/static/css/typography.css @@ -130,6 +130,11 @@ kbd { color: var(--bright-bg); } +pre { + padding: 1.5rem 0.75rem; + margin: 0 0 1.5rem 0; +} + /* Emphasis */ b, strong {