Fix multi-paragraph statements in documentation callouts
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Thu, 17 Dec 2020 21:51:24 +0000 (16:51 -0500)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Thu, 17 Dec 2020 21:51:24 +0000 (16:51 -0500)
Multi-paragraph statements in the warning/caution/note/tip boxes
were being smushed together due to the removal of paragraph
margins. It is still essential to remove the paragraph margin
on the final paragraph, which is accounted for in this change.

Reported by: Peter Geoghegan <pg@bowt.ie>

media/css/main.css

index 378875e1a6fe60ea92ae3fe7472d032422ea163c..aceeaade0962a23e4b6e5046538be554a13fe953 100644 (file)
@@ -958,9 +958,16 @@ code,
   border-color: #FFD7D7;
 }
 
-#docContent table.CAUTION, table.WARNING,
-#docContent blockquote.CAUTION p, #docContent blockquote.NOTE p, #docContent blockquote.TIP p, #docContent blockquote.WARNING p,
-#docContent .caution p, #docContent .note p, #docContent .tip p, #docContent .warning p
+#docContent table.CAUTION,
+#docContent table.WARNING,
+#docContent blockquote.CAUTION p:last-child,
+#docContent blockquote.NOTE p:last-child,
+#docContent blockquote.TIP p:last-child,
+#docContent blockquote.WARNING p:last-child,
+#docContent .caution p:last-child,
+#docContent .note p:last-child,
+#docContent .tip p:last-child,
+#docContent .warning p:last-child
 {
   margin-bottom: 0 !important;
 }