1/* $Id: mandoc.css,v 1.1 2015/11/05 17:47:51 schwarze Exp $ */
2
3/*
4 * This is an example style-sheet provided for mandoc(1) and the -Thtml
5 * or -Txhtml output mode.
6 *
7 * It mimics the appearance of the traditional cvsweb output.
8 *
9 * See mdoc(7) and man(7) for macro explanations.
10 */
11
12html		{ max-width: 880px; margin-left: 1em; }
13body		{ font-size: smaller; font-family: Helvetica,Arial,sans-serif; }
14body > div			{ padding-left: 2em;
15				  padding-top: 1em; }
16body > div.mandoc,
17body > div#mancgi		{ padding-left: 0em;
18				  padding-top: 0em; }
19body > div.results		{ font-size: smaller; }
20#mancgi fieldset		{ text-align: center;
21				  border: thin solid silver;
22				  border-radius: 1em;
23			  	  font-size: small; }
24#mancgi input[name=expr] 	{ width: 25%; }
25.results td.title		{ vertical-align: top;
26				  padding-right: 1em; }
27h1		{ margin-bottom: 1ex; font-size: 110%; margin-left: -4ex; } /* Section header (Sh, SH). */
28h2		{ margin-bottom: 1ex; font-size: 105%; margin-left: -2ex; } /* Sub-section header (Ss, SS). */
29table		{ width: 100%; margin-top: 0ex; margin-bottom: 0ex; } /* All tables. */
30td		{ vertical-align: top; } /* All table cells. */
31p		{ } /* Paragraph: Pp, Lp. */
32blockquote	{ margin-left: 5ex; margin-top: 0ex; margin-bottom: 0ex; } /* D1. */
33div.section	{ margin-bottom: 2ex; margin-left: 5ex; } /* Sections (Sh, SH). */
34div.subsection	{ } /* Sub-sections (Ss, SS). */
35table.synopsis	{ } /* SYNOPSIS section table. */
36div.spacer	{ margin: 1em 0; }
37
38/* Preamble structure. */
39
40table.foot	{ font-size: smaller; margin-top: 1em; border-top: 1px dotted #dddddd; } /* Document footer. */
41td.foot-date	{ width: 50%; } /* Document footer: date. */
42td.foot-os	{ width: 50%; } /* Document footer: OS/source. */
43table.head	{ font-size: smaller; margin-bottom: 1em; border-bottom: 1px dotted #dddddd; } /* Document header. */
44td.head-ltitle	{ width: 10%; } /* Document header: left-title. */
45td.head-vol	{ width: 80%; } /* Document header: volume. */
46td.head-rtitle	{ width: 10%; } /* Document header: right-title. */
47
48/* General font modes. */
49
50i		{ } /* Italic: BI, IB, I, (implicit). */
51.emph		{ font-style: italic; font-weight: normal; } /* Emphasis: Em, Bl -emphasis. */
52b		{ } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */
53.symb		{ font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */
54small		{ } /* Small: SB, SM. */
55.lit		{ font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Ql, Bf -literal, Bl -literal, Bl -unfilled. */
56
57/* Block modes. */
58
59.display	{ } /* Top of all Bd, D1, Dl. */
60.list		{ } /* Top of all Bl. */
61
62/* Context-specific modes. */
63
64i.addr		{ font-weight: normal; } /* Address (Ad). */
65i.arg		{ font-weight: normal; } /* Command argument (Ar). */
66span.author	{ } /* Author name (An). */
67b.cmd		{ font-style: normal; } /* Command (Cm). */
68b.config	{ font-style: normal; } /* Config statement (Cd). */
69span.define	{ } /* Defines (Dv). */
70span.desc	{ } /* Nd.  After em-dash. */
71b.diag		{ font-style: normal; } /* Diagnostic (Bl -diag). */
72span.env	{ } /* Environment variables (Ev). */
73span.errno	{ } /* Error string (Er). */
74i.farg		{ font-weight: normal; } /* Function argument (Fa, Fn). */
75i.file		{ font-weight: normal; } /* File (Pa). */
76b.flag		{ font-style: normal; } /* Flag (Fl, Cm). */
77b.fname		{ font-style: normal; } /* Function name (Fa, Fn, Rv). */
78i.ftype		{ font-weight: normal; } /* Function types (Ft, Fn). */
79b.includes	{ font-style: normal; } /* Header includes (In). */
80span.lib	{ } /* Library (Lb). */
81i.link-sec	{ font-weight: normal; } /* Section links (Sx). */
82b.macro		{ font-style: normal; } /* Macro-ish thing (Fd). */
83b.name		{ font-style: normal; } /* Name of utility (Nm). */
84span.opt	{ } /* Options (Op, Oo/Oc). */
85span.ref	{ } /* Citations (Rs). */
86span.ref-auth	{ } /* Reference author (%A). */
87i.ref-book	{ font-weight: normal; } /* Reference book (%B). */
88span.ref-city	{ } /* Reference city (%C). */
89span.ref-date	{ } /* Reference date (%D). */
90i.ref-issue	{ font-weight: normal; } /* Reference issuer/publisher (%I). */
91i.ref-jrnl	{ font-weight: normal; } /* Reference journal (%J). */
92span.ref-num	{ } /* Reference number (%N). */
93span.ref-opt	{ } /* Reference optionals (%O). */
94span.ref-page	{ } /* Reference page (%P). */
95span.ref-corp	{ } /* Reference corporate/foreign author (%Q). */
96span.ref-rep	{ } /* Reference report (%R). */
97span.ref-title	{ text-decoration: underline; } /* Reference title (%T). */
98span.ref-vol	{ } /* Reference volume (%V). */
99span.type	{ font-style: italic; font-weight: normal; } /* Variable types (Vt). */
100span.unix	{ } /* Unices (Ux, Ox, Nx, Fx, Bx, Bsx, Dx). */
101b.utility	{ font-style: normal; } /* Name of utility (Ex). */
102b.var		{ font-style: normal; } /* Variables (Rv). */
103
104a.link-ext	{ } /* Off-site link (Lk). */
105a.link-includes	{ } /* Include-file link (In). */
106a.link-mail	{ } /* Mailto links (Mt). */
107a.link-man	{ } /* Manual links (Xr). */
108a.link-ref	{ } /* Reference section links (%Q). */
109a.link-sec	{ } /* Section links (Sx). */
110
111/* Formatting for lists.  See mdoc(7). */
112
113dl.list-diag	{ }
114dt.list-diag	{ }
115dd.list-diag	{ }
116
117dl.list-hang	{ }
118dt.list-hang	{ }
119dd.list-hang	{ }
120
121dl.list-inset	{ }
122dt.list-inset	{ }
123dd.list-inset	{ }
124
125dl.list-ohang	{ }
126dt.list-ohang	{ }
127dd.list-ohang	{ margin-left: 0ex; }
128
129dl.list-tag	{ }
130dt.list-tag	{ }
131dd.list-tag	{ }
132
133table.list-col	{ }
134tr.list-col	{ }
135td.list-col	{ }
136
137ul.list-bul	{ list-style-type: disc; padding-left: 1em; }
138li.list-bul	{ }
139
140ul.list-dash	{ list-style-type: none; padding-left: 0em; }
141li.list-dash:before { content: "\2014  "; }
142
143ul.list-hyph	{ list-style-type: none; padding-left: 0em; }
144li.list-hyph:before { content: "\2013  "; }
145
146ul.list-item	{ list-style-type: none; padding-left: 0em; }
147li.list-item	{ }
148
149ol.list-enum	{ padding-left: 2em; }
150li.list-enum	{ }
151
152/* Equation modes.  See eqn(7). */
153
154span.eqn	{ }
155
156/* Table modes.  See tbl(7). */
157
158table.tbl	{ }
159