From ad46ab7efef36e05e858461994ff5f21e4f2440a Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Wed, 1 Jan 2025 11:39:51 +1300 Subject: [PATCH] lists in post bodies --- app/static/styles.css | 6 ++++++ app/static/styles.scss | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/app/static/styles.css b/app/static/styles.css index 01a2e55f..7cfda5ad 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -1493,6 +1493,12 @@ fieldset legend { width: 100%; overflow-x: auto; } +.post_body ol li, .post_body ul li, .comment_body ol li, .comment_body ul li { + margin-bottom: 7px; +} +.post_body ol li > p, .post_body ul li > p, .comment_body ol li > p, .comment_body ul li > p { + margin-bottom: 0; +} .skip-link:focus { top: 0; diff --git a/app/static/styles.scss b/app/static/styles.scss index 9fa0df6d..2c21b058 100644 --- a/app/static/styles.scss +++ b/app/static/styles.scss @@ -1163,6 +1163,16 @@ fieldset { width: 100%; overflow-x: auto; } + + ol, ul { + li { + margin-bottom: 7px; + + > p { + margin-bottom: 0; + } + } + } } .skip-link:focus {