Improving callout lists in HTML (CSS)

Warren Block wblock at wonkity.com
Mon Feb 3 04:58:28 UTC 2014


The attached patch, created with the help of Allan Jude, tightens up the 
spacing in HTML callout lists, making them easier to read.

After applying it, I did not see any problems with the callout lists in 
the Handbook.

Unless problems are reported, I'll commit it in a day or two.
-------------- next part --------------
Index: share/misc/docbook.css
===================================================================
--- share/misc/docbook.css	(revision 43727)
+++ share/misc/docbook.css	(working copy)
@@ -139,6 +139,17 @@
 	margin-bottom: 1ex;
 }
 
+body .calloutlist td {
+	padding-right: 0.5em;
+	width: auto;
+}
+
+body .calloutlist td p {
+	line-height: 1.2;
+	margin-top: 4px;
+	margin-bottom: 4px;
+}
+
 body form {
 	margin: .6em 0;
 }


More information about the freebsd-doc mailing list