summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2010-06-18 18:53:30 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2010-06-22 11:55:47 +0100
commit6781973b02413beb15f0b3ee167292689f604770 (patch)
tree4bca794f3cc0d71058e5b99bd2682e325a37f8da /doc
parentd20c73a53419cff71a0ed7d61c00c4026da23d30 (diff)
Improve margins around <p>.
Diffstat (limited to 'doc')
-rw-r--r--doc/templates/style.css19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/templates/style.css b/doc/templates/style.css
index 043f4d1d..93a1f349 100644
--- a/doc/templates/style.css
+++ b/doc/templates/style.css
@@ -229,3 +229,22 @@ div.inset span.permalink {
li.chapter span.permalink {
font-weight: normal;
}
+
+/* These rules make putting <p/> into <dd/> not leave ugly whitespace at the
+ * top and bottom of the <dd>, which looks particularly stupid when some <dd>s
+ * have <p>s in them and some just have text.
+ */
+p {
+ margin: 0.5em 0 0 0;
+}
+
+dd p:first-child {
+ margin-top: 0;
+}
+
+/* And since we use <pre>s pretty much only for paragraphs of code, we should
+ * style it the same.
+ */
+pre {
+ margin: 0.5em 0 0 0;
+}