aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitb7bb50b52763fb6212e5896c4f48f67e7e24944a (patch)
tree583c64d0cb3bdbe36623d41735307a67c32571fc /mandoc.css
parent222d77f1d5049da7ae7750ce19f63c21c231c567 (diff)
downloadmandoc-b7bb50b52763fb6212e5896c4f48f67e7e24944a.tar.gz
mandoc-b7bb50b52763fb6212e5896c4f48f67e7e24944a.tar.zst
mandoc-b7bb50b52763fb6212e5896c4f48f67e7e24944a.zip
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.css22
1 files changed, 14 insertions, 8 deletions
diff --git a/mandoc.css b/mandoc.css
index 8e9a32cb..20348694 100644
--- a/mandoc.css
+++ b/mandoc.css
@@ -1,4 +1,4 @@
-/* $Id: mandoc.css,v 1.4 2017/01/19 14:29:53 schwarze Exp $ */
+/* $Id: mandoc.css,v 1.5 2017/01/19 15:27:34 schwarze Exp $ */
/*
* Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
*/
@@ -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. */