From 053f098546c352ce24a0622fb5924fe3fe7a3b1c Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sun, 26 May 2024 16:49:40 -0500 Subject: [PATCH] reduce gap for paragraphs followed by lists --- content/changelog.md | 3 ++- static/css/custom.css | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/content/changelog.md b/content/changelog.md index 34999fa..cf79664 100644 --- a/content/changelog.md +++ b/content/changelog.md @@ -9,4 +9,5 @@ timeless: true --- **2024-05-26:** - Begin changelog -- Simplify logic for displaying kudos and post reply buttons \ No newline at end of file +- Simplify logic for displaying kudos and post reply buttons +- Reduce gap for paragraphs followed by lists \ No newline at end of file diff --git a/static/css/custom.css b/static/css/custom.css index 8dfb815..bd42e10 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -391,3 +391,14 @@ a.tinylytics_webring { hr { margin-top: 1.5rem; } + +/* no extra space for paragraphs with lists */ +p:not(:has(+ ol)), +p:not(:has(+ ul)) { + margin-bottom: 1.5em; +} + +p:has(+ ol), +p:has(+ ul) { + margin-bottom: 0; +}