docs/mandoc.css (view raw)
1/* $OpenBSD: mandoc.css,v 1.33 2019/06/02 16:50:46 schwarze Exp $ */
2/*
3 * Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
4 *
5 * Written by Ingo Schwarze <schwarze@openbsd.org>.
6 * I place this file into the public domain.
7 * Permission to use, copy, modify, and distribute it for any purpose
8 * with or without fee is hereby granted, without any conditions.
9 */
10
11/* Global defaults. */
12
13html { max-width: 65em;
14 --bg: #002;
15 --fg: #dde; }
16body { background: var(--bg);
17 color: var(--fg);
18 font-size: 18px;
19 font-family: Helvetica,Arial,sans-serif; }
20a { color: var(--fg); }
21h1 { font-size: 110%; }
22table { margin-top: 0em;
23 margin-bottom: 0em;
24 border-collapse: collapse; }
25/* Some browsers set border-color in a browser style for tbody,
26 * but not for table, resulting in inconsistent border styling. */
27tbody { border-color: inherit; }
28tr { border-color: inherit; }
29td { vertical-align: top;
30 padding-left: 0.2em;
31 padding-right: 0.2em;
32 border-color: inherit; }
33ul, ol, dl { margin-top: 0em;
34 margin-bottom: 0em; }
35li, dt { margin-top: 1em; }
36
37.permalink { border-bottom: thin dotted;
38 color: inherit;
39 font: inherit;
40 text-decoration: inherit; }
41* { clear: both }
42
43/* Search form and search results. */
44
45fieldset { border: thin solid silver;
46 border-radius: 1em;
47 text-align: center; }
48input[name=expr] {
49 width: 25%; }
50
51table.results { margin-top: 1em;
52 margin-left: 2em;
53 font-size: smaller; }
54
55/* Header and footer lines. */
56
57table.head { width: 100%;
58 border-bottom: 1px dotted #808080;
59 margin-bottom: 1em;
60 font-size: smaller; }
61td.head-vol { text-align: center; }
62td.head-rtitle {
63 text-align: right; }
64
65table.foot { width: 100%;
66 border-top: 1px dotted #808080;
67 margin-top: 1em;
68 font-size: smaller; }
69td.foot-os { text-align: right; }
70
71/* Sections and paragraphs. */
72
73.manual-text {
74 margin-left: 3.8em; }
75.Nd { }
76section.Sh { }
77h1.Sh { margin-top: 1.2em;
78 margin-bottom: 0.6em;
79 margin-left: -3.2em; }
80section.Ss { }
81h2.Ss { margin-top: 1.2em;
82 margin-bottom: 0.6em;
83 margin-left: -1.2em;
84 font-size: 105%; }
85.Pp { margin: 0.6em 0em; }
86.Sx { }
87.Xr { }
88
89/* Displays and lists. */
90
91.Bd { }
92.Bd-indent { margin-left: 3.8em; }
93
94.Bl-bullet { list-style-type: disc;
95 padding-left: 1em; }
96.Bl-bullet > li { }
97.Bl-dash { list-style-type: none;
98 padding-left: 0em; }
99.Bl-dash > li:before {
100 content: "\2014 "; }
101.Bl-item { list-style-type: none;
102 padding-left: 0em; }
103.Bl-item > li { }
104.Bl-compact > li {
105 margin-top: 0em; }
106
107.Bl-enum { padding-left: 2em; }
108.Bl-enum > li { }
109.Bl-compact > li {
110 margin-top: 0em; }
111
112.Bl-diag { }
113.Bl-diag > dt {
114 font-style: normal;
115 font-weight: bold; }
116.Bl-diag > dd {
117 margin-left: 0em; }
118.Bl-hang { }
119.Bl-hang > dt { }
120.Bl-hang > dd {
121 margin-left: 5.5em; }
122.Bl-inset { }
123.Bl-inset > dt { }
124.Bl-inset > dd {
125 margin-left: 0em; }
126.Bl-ohang { }
127.Bl-ohang > dt { }
128.Bl-ohang > dd {
129 margin-left: 0em; }
130.Bl-tag { margin-top: 0.6em;
131 margin-left: 5.5em; }
132.Bl-tag > dt {
133 float: left;
134 margin-top: 0em;
135 margin-left: -5.5em;
136 padding-right: 0.5em;
137 vertical-align: top; }
138.Bl-tag > dd {
139 clear: right;
140 width: 100%;
141 margin-top: 0em;
142 margin-left: 0em;
143 margin-bottom: 0.6em;
144 vertical-align: top;
145 overflow: auto; }
146.Bl-compact { margin-top: 0em; }
147.Bl-compact > dd {
148 margin-bottom: 0em; }
149.Bl-compact > dt {
150 margin-top: 0em; }
151
152.Bl-column { }
153.Bl-column > tbody > tr { }
154.Bl-column > tbody > tr > td {
155 margin-top: 1em; }
156.Bl-compact > tbody > tr > td {
157 margin-top: 0em; }
158
159.Rs { font-style: normal;
160 font-weight: normal; }
161.RsA { }
162.RsB { font-style: italic;
163 font-weight: normal; }
164.RsC { }
165.RsD { }
166.RsI { font-style: italic;
167 font-weight: normal; }
168.RsJ { font-style: italic;
169 font-weight: normal; }
170.RsN { }
171.RsO { }
172.RsP { }
173.RsQ { }
174.RsR { }
175.RsT { text-decoration: underline; }
176.RsU { }
177.RsV { }
178
179.eqn { }
180.tbl td { vertical-align: middle; }
181
182.HP { margin-left: 3.8em;
183 text-indent: -3.8em; }
184
185/* Semantic markup for command line utilities. */
186
187table.Nm { }
188code.Nm { font-style: normal;
189 font-weight: bold;
190 font-family: inherit; }
191.Fl { font-style: normal;
192 font-weight: bold;
193 font-family: inherit; }
194.Cm { font-style: normal;
195 font-weight: bold;
196 font-family: inherit; }
197.Ar { font-style: italic;
198 font-weight: normal; }
199.Op { display: inline; }
200.Ic { font-style: normal;
201 font-weight: bold;
202 font-family: inherit; }
203.Ev { font-style: normal;
204 font-weight: normal;
205 font-family: monospace; }
206.Pa { font-style: italic;
207 font-weight: normal; }
208
209/* Semantic markup for function libraries. */
210
211.Lb { }
212code.In { font-style: normal;
213 font-weight: bold;
214 font-family: inherit; }
215a.In { }
216.Fd { font-style: normal;
217 font-weight: bold;
218 font-family: inherit; }
219.Ft { font-style: italic;
220 font-weight: normal; }
221.Fn { font-style: normal;
222 font-weight: bold;
223 font-family: inherit; }
224.Fa { font-style: italic;
225 font-weight: normal; }
226.Vt { font-style: italic;
227 font-weight: normal; }
228.Va { font-style: italic;
229 font-weight: normal; }
230.Dv { font-style: normal;
231 font-weight: normal;
232 font-family: monospace; }
233.Er { font-style: normal;
234 font-weight: normal;
235 font-family: monospace; }
236
237/* Various semantic markup. */
238
239.An { }
240.Lk { }
241.Mt { }
242.Cd { font-style: normal;
243 font-weight: bold;
244 font-family: inherit; }
245.Ad { font-style: italic;
246 font-weight: normal; }
247.Ms { font-style: normal;
248 font-weight: bold; }
249.St { }
250.Ux { }
251
252/* Physical markup. */
253
254.Bf { display: inline; }
255.No { font-style: normal;
256 font-weight: normal; }
257.Em { font-style: italic;
258 font-weight: normal; }
259.Sy { font-style: normal;
260 font-weight: bold; }
261.Li { font-style: normal;
262 font-weight: normal;
263 font-family: monospace; }
264
265/* Tooltip support. */
266
267h1.Sh, h2.Ss { position: relative; }
268.An, .Ar, .Cd, .Cm, .Dv, .Em, .Er, .Ev, .Fa, .Fd, .Fl, .Fn, .Ft,
269.Ic, code.In, .Lb, .Lk, .Ms, .Mt, .Nd, code.Nm, .Pa, .Rs,
270.St, .Sx, .Sy, .Va, .Vt, .Xr {
271 display: inline-block;
272 position: relative; }
273
274/* Overrides to avoid excessive margins on small devices. */
275
276@media (max-width: 37.5em) {
277.manual-text {
278 margin-left: 0.5em; }
279h1.Sh, h2.Ss { margin-left: 0em; }
280.Bd-indent { margin-left: 2em; }
281.Bl-hang > dd {
282 margin-left: 2em; }
283.Bl-tag { margin-left: 2em; }
284.Bl-tag > dt {
285 margin-left: -2em; }
286.HP { margin-left: 2em;
287 text-indent: -2em; }
288}