summaryrefslogtreecommitdiffstats
path: root/mandoc.css
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-19 15:27:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-19 15:27:34 +0000
commit580c890d3b3950c00bf3f40566df511d65a316d6 (patch)
tree570221a66b828c7609ec2bc92ababbfb8df38c41 /mandoc.css
parent17fa3ce7264c77c2352e413e73bd23e6f8bc7c47 (diff)
downloadmandoc-580c890d3b3950c00bf3f40566df511d65a316d6.tar.gz
Clean up CSS rules for sections and paragraphs.
Start using real macro names for CSS classes.
Diffstat (limited to 'mandoc.css')
-rw-r--r--mandoc.css20
1 files changed, 13 insertions, 7 deletions
diff --git a/mandoc.css b/mandoc.css
index a0bfc839..0db9b118 100644
--- a/mandoc.css
+++ b/mandoc.css
@@ -40,17 +40,23 @@ td.foot-date { width: 50%; }
td.foot-os { width: 50%;
text-align: right; }
+/* Sections and paragraphs. */
+
+div.manual-text {
+ margin-left: 5ex; }
+h1.Sh { margin-top: 2ex;
+ margin-bottom: 1ex;
+ margin-left: -4ex;
+ font-size: 110%; }
+h2.Ss { margin-top: 2ex;
+ margin-bottom: 1ex;
+ margin-left: -2ex;
+ font-size: 105%; }
+div.Pp { margin: 1ex 0ex; }
-h1 { margin-bottom: 1ex; font-size: 110% }
-div.section > h1 { margin-left: -4ex; } /* Section header (Sh, SH). */
-h2 { margin-bottom: 1ex; font-size: 105%; margin-left: -2ex; } /* Sub-section header (Ss, SS). */
-p { } /* Paragraph: Pp, Lp. */
blockquote { margin-left: 5ex; margin-top: 0ex; margin-bottom: 0ex; } /* D1. */
-div.section { margin-bottom: 2ex; margin-left: 5ex; } /* Sections (Sh, SH). */
-div.subsection { } /* Sub-sections (Ss, SS). */
table.synopsis { } /* SYNOPSIS section table. */
-div.spacer { margin: 1em 0; }
/* General font modes. */