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