reduce gap for paragraphs followed by lists

This commit is contained in:
John Bowdre 2024-05-26 16:49:40 -05:00
parent 214b7691f4
commit 053f098546
2 changed files with 13 additions and 1 deletions

View file

@ -9,4 +9,5 @@ timeless: true
--- ---
**2024-05-26:** **2024-05-26:**
- Begin changelog - Begin changelog
- Simplify logic for displaying kudos and post reply buttons - Simplify logic for displaying kudos and post reply buttons
- Reduce gap for paragraphs followed by lists

View file

@ -391,3 +391,14 @@ a.tinylytics_webring {
hr { hr {
margin-top: 1.5rem; 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;
}