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/5] 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/5] 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; } From edb5a0f85643099511eec7041bb31b3678f16351 Mon Sep 17 00:00:00 2001 From: mntn <85877297+mntn-xyz@users.noreply.github.com> Date: Mon, 9 Aug 2021 10:24:55 -0400 Subject: [PATCH 3/5] Fix table margins, padding, and overflow This sets up a simple unstyled table with spacing that matches other elements. --- static/css/typography.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/static/css/typography.css b/static/css/typography.css index acd00e2..0005d56 100644 --- a/static/css/typography.css +++ b/static/css/typography.css @@ -163,3 +163,20 @@ sup, sub { sub { top: 0.25rem; } + +/* Tables */ +table { + border-spacing: 0; + margin: 0 0 1.5rem 0; + overflow-wrap: anywhere; +} +th, td { + padding: 0 .75rem; + vertical-align: top; +} +th:first-child, td:first-child { + padding-left: 0; +} +th { + text-align: inherit; +} From 3ca826bfc1fe4e7863484f051612aa9a040adf23 Mon Sep 17 00:00:00 2001 From: mntn <85877297+mntn-xyz@users.noreply.github.com> Date: Mon, 9 Aug 2021 12:31:21 -0400 Subject: [PATCH 4/5] Fix blockquote top/bottom margin Make top and bottom consistent with other elements --- 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 acd00e2..5b0abd6 100644 --- a/static/css/typography.css +++ b/static/css/typography.css @@ -104,7 +104,7 @@ ol li::marker { /* Blockquotes */ blockquote { position: relative; - margin-left: 1.5rem; + margin: 0 0 1.5rem 1.5rem; } blockquote::before { From 082509291b14e27277db58189310d4ab49708ec6 Mon Sep 17 00:00:00 2001 From: bedefaced Date: Mon, 23 Aug 2021 16:20:19 +0300 Subject: [PATCH 5/5] Fix unexpected whitespace --- layouts/partials/about.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/layouts/partials/about.html b/layouts/partials/about.html index 3c23950..6c6e1bc 100644 --- a/layouts/partials/about.html +++ b/layouts/partials/about.html @@ -9,10 +9,7 @@