From: Paul Hänsch Date: Mon, 16 May 2022 12:26:14 +0000 (+0200) Subject: avoid odd margins in list items X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=b406efc624ccf0a1984d237172bc6d7c7af21b1b;p=cgilite avoid odd margins in list items --- diff --git a/common.css b/common.css index 359f07d..a79230a 100644 --- a/common.css +++ b/common.css @@ -17,6 +17,7 @@ body { } ul, ol, dl, table, p { margin-bottom: .5em; } +p:only-child { margin-bottom: 0; } a { font-style: italic; @@ -44,6 +45,10 @@ ul, ol { margin-left: 1.125em; } dl dt { font-weight: bolder; } table th { font-weight: bold; } +li p + ul, li p + ol { + margin-top: -.25em; +} + hr { border-bottom: 1pt solid; } h1, h2, h3 {