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