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 1/2] 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 { From 91fd34e8a2c09152027c33735aaed551200e45fb Mon Sep 17 00:00:00 2001 From: mntn <85877297+mntn-xyz@users.noreply.github.com> Date: Mon, 9 Aug 2021 10:09:48 -0400 Subject: [PATCH 2/2] Change pre padding to 1.5rem all around --- static/css/typography.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/css/typography.css b/static/css/typography.css index b9a241e..119c961 100644 --- a/static/css/typography.css +++ b/static/css/typography.css @@ -131,7 +131,7 @@ kbd { } pre { - padding: 1.5rem 0.75rem; + padding: 1.5rem; margin: 0 0 1.5rem 0; }