Import mdocml-1.12.1
[dragonfly.git] / contrib / mdocml / style.css
CommitLineData
36342e81 1/* $Id: style.css,v 1.25 2011/08/26 09:03:17 kristaps Exp $ */
a4c7eb57
SW
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
36342e81 12html { max-width: 880px; margin-left: 1em; }
a4c7eb57
SW
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. */
36342e81 19blockquote { margin-left: 5ex; margin-top: 0ex; margin-bottom: 0ex; } /* D1. */
a4c7eb57
SW
20div.section { margin-bottom: 2ex; margin-left: 5ex; } /* Sections (Sh, SH). */
21div.subsection { } /* Sub-sections (Ss, SS). */
22table.synopsis { } /* SYNOPSIS section table. */
80387638
SW
23
24/* Preamble structure. */
25
a4c7eb57 26table.foot { font-size: smaller; margin-top: 1em; border-top: 1px dotted #dddddd; } /* Document footer. */
80387638
SW
27td.foot-date { width: 50%; } /* Document footer: date. */
28td.foot-os { width: 50%; text-align: right; } /* Document footer: OS/source. */
a4c7eb57 29table.head { font-size: smaller; margin-bottom: 1em; border-bottom: 1px dotted #dddddd; } /* Document header. */
80387638
SW
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
80387638
SW
34/* General font modes. */
35
a4c7eb57 36i { } /* Italic: BI, IB, I, (implicit). */
80387638 37.emph { font-style: italic; font-weight: normal; } /* Emphasis: Em, Bl -emphasis. */
a4c7eb57 38b { } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */
80387638 39.symb { font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */
a4c7eb57 40small { } /* Small: SB, SM. */
36342e81 41.lit { font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Ql, Bf -literal, Bl -literal, Bl -unfilled. */
80387638
SW
42
43/* Block modes. */
44
a4c7eb57 45.display { } /* Top of all Bd, D1, Dl. */
80387638
SW
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). */
60e1e752 67i.link-sec { font-weight: normal; } /* Section links (Sx). */
80387638 68b.macro { font-style: normal; } /* Macro-ish thing (Fd). */
a4c7eb57 69b.name { font-style: normal; } /* Name of utility (Nm). */
80387638
SW
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
a4c7eb57 90a.link-ext { } /* Off-site link (Lk). */
80387638 91a.link-includes { } /* Include-file link (In). */
a4c7eb57 92a.link-mail { } /* Mailto links (Mt). */
80387638
SW
93a.link-man { } /* Manual links (Xr). */
94a.link-ref { } /* Reference section links (%Q). */
a4c7eb57 95a.link-sec { } /* Section links (Sx). */
80387638 96
a4c7eb57 97/* Formatting for lists. See mdoc(7). */
80387638
SW
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 { }
a4c7eb57 113dd.list-ohang { margin-left: 0ex; }
80387638
SW
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 { }
60e1e752
SW
137
138/* Equation modes. See eqn(7). */
139
140span.eqn { }
141
142/* Table modes. See tbl(7). */
143
144table.tbl { }