]> git.cameronkatri.com Git - mandoc.git/blob - mandoc.css
During validation, drop .br before a text line starting with a
[mandoc.git] / mandoc.css
1 /* $Id: mandoc.css,v 1.40 2018/11/26 21:06:02 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
13 html { max-width: 65em; }
14 body { font-family: Helvetica,Arial,sans-serif; }
15 table { margin-top: 0em;
16 margin-bottom: 0em;
17 border-collapse: collapse; }
18 td { vertical-align: middle;
19 padding-left: 0.2em;
20 padding-right: 0.2em; }
21 ul, ol, dl { margin-top: 0em;
22 margin-bottom: 0em; }
23 li, dt { margin-top: 1em; }
24
25 .permalink { border-bottom: thin dotted;
26 color: inherit;
27 font: inherit;
28 text-decoration: inherit; }
29 * { clear: both }
30
31 /* Search form and search results. */
32
33 fieldset { border: thin solid silver;
34 border-radius: 1em;
35 text-align: center; }
36 input[name=expr] {
37 width: 25%; }
38
39 table.results { margin-top: 1em;
40 margin-left: 2em;
41 font-size: smaller; }
42
43 /* Header and footer lines. */
44
45 table.head { width: 100%;
46 border-bottom: 1px dotted #808080;
47 margin-bottom: 1em;
48 font-size: smaller; }
49 td.head-vol { text-align: center; }
50 td.head-rtitle {
51 text-align: right; }
52
53 table.foot { width: 100%;
54 border-top: 1px dotted #808080;
55 margin-top: 1em;
56 font-size: smaller; }
57 td.foot-os { text-align: right; }
58
59 /* Sections and paragraphs. */
60
61 .manual-text {
62 margin-left: 3.8em; }
63 .Nd { display: inline; }
64 .Sh { margin-top: 1.2em;
65 margin-bottom: 0.6em;
66 margin-left: -3.2em;
67 font-size: 110%; }
68 .Ss { margin-top: 1.2em;
69 margin-bottom: 0.6em;
70 margin-left: -1.2em;
71 font-size: 105%; }
72 .Pp { margin: 0.6em 0em; }
73 .Sx { }
74 .Xr { }
75
76 /* Displays and lists. */
77
78 .Bd { }
79 .Bd-indent { margin-left: 3.8em; }
80
81 .Bl-bullet { list-style-type: disc;
82 padding-left: 1em; }
83 .Bl-bullet > li { }
84 .Bl-dash { list-style-type: none;
85 padding-left: 0em; }
86 .Bl-dash > li:before {
87 content: "\2014 "; }
88 .Bl-item { list-style-type: none;
89 padding-left: 0em; }
90 .Bl-item > li { }
91 .Bl-compact > li {
92 margin-top: 0em; }
93
94 .Bl-enum { padding-left: 2em; }
95 .Bl-enum > li { }
96 .Bl-compact > li {
97 margin-top: 0em; }
98
99 .Bl-diag { }
100 .Bl-diag > dt {
101 font-style: normal;
102 font-weight: bold; }
103 .Bl-diag > dd {
104 margin-left: 0em; }
105 .Bl-hang { }
106 .Bl-hang > dt { }
107 .Bl-hang > dd {
108 margin-left: 5.5em; }
109 .Bl-inset { }
110 .Bl-inset > dt { }
111 .Bl-inset > dd {
112 margin-left: 0em; }
113 .Bl-ohang { }
114 .Bl-ohang > dt { }
115 .Bl-ohang > dd {
116 margin-left: 0em; }
117 .Bl-tag { margin-left: 5.5em; }
118 .Bl-tag > dt {
119 float: left;
120 margin-top: 0em;
121 margin-left: -5.5em;
122 padding-right: 0.5em;
123 vertical-align: top; }
124 .Bl-tag > dd {
125 clear: right;
126 width: 100%;
127 margin-top: 0em;
128 margin-left: 0em;
129 vertical-align: top;
130 overflow: auto; }
131 .Bl-compact > dt {
132 margin-top: 0em; }
133
134 .Bl-column { }
135 .Bl-column > tbody > tr { }
136 .Bl-column > tbody > tr > td {
137 margin-top: 1em; }
138 .Bl-compact > tbody > tr > td {
139 margin-top: 0em; }
140
141 .Rs { font-style: normal;
142 font-weight: normal; }
143 .RsA { }
144 .RsB { font-style: italic;
145 font-weight: normal; }
146 .RsC { }
147 .RsD { }
148 .RsI { font-style: italic;
149 font-weight: normal; }
150 .RsJ { font-style: italic;
151 font-weight: normal; }
152 .RsN { }
153 .RsO { }
154 .RsP { }
155 .RsQ { }
156 .RsR { }
157 .RsT { text-decoration: underline; }
158 .RsU { }
159 .RsV { }
160
161 .eqn { }
162 .tbl { }
163
164 .HP { margin-left: 3.8em;
165 text-indent: -3.8em; }
166
167 /* Semantic markup for command line utilities. */
168
169 table.Nm { }
170 code.Nm { font-style: normal;
171 font-weight: bold;
172 font-family: inherit; }
173 .Fl { font-style: normal;
174 font-weight: bold;
175 font-family: inherit; }
176 .Cm { font-style: normal;
177 font-weight: bold;
178 font-family: inherit; }
179 .Ar { font-style: italic;
180 font-weight: normal; }
181 .Op { display: inline; }
182 .Ic { font-style: normal;
183 font-weight: bold;
184 font-family: inherit; }
185 .Ev { font-style: normal;
186 font-weight: normal;
187 font-family: monospace; }
188 .Pa { font-style: italic;
189 font-weight: normal; }
190
191 /* Semantic markup for function libraries. */
192
193 .Lb { }
194 code.In { font-style: normal;
195 font-weight: bold;
196 font-family: inherit; }
197 a.In { }
198 .Fd { font-style: normal;
199 font-weight: bold;
200 font-family: inherit; }
201 .Ft { font-style: italic;
202 font-weight: normal; }
203 .Fn { font-style: normal;
204 font-weight: bold;
205 font-family: inherit; }
206 .Fa { font-style: italic;
207 font-weight: normal; }
208 .Vt { font-style: italic;
209 font-weight: normal; }
210 .Va { font-style: italic;
211 font-weight: normal; }
212 .Dv { font-style: normal;
213 font-weight: normal;
214 font-family: monospace; }
215 .Er { font-style: normal;
216 font-weight: normal;
217 font-family: monospace; }
218
219 /* Various semantic markup. */
220
221 .An { }
222 .Lk { }
223 .Mt { }
224 .Cd { font-style: normal;
225 font-weight: bold;
226 font-family: inherit; }
227 .Ad { font-style: italic;
228 font-weight: normal; }
229 .Ms { font-style: normal;
230 font-weight: bold; }
231 .St { }
232 .Ux { }
233
234 /* Physical markup. */
235
236 .Bf { display: inline; }
237 .No { font-style: normal;
238 font-weight: normal; }
239 .Em { font-style: italic;
240 font-weight: normal; }
241 .Sy { font-style: normal;
242 font-weight: bold; }
243 .Li { font-style: normal;
244 font-weight: normal;
245 font-family: monospace; }
246
247 /* Overrides to avoid excessive margins on small devices. */
248
249 @media (max-width: 37.5em) {
250 .manual-text {
251 margin-left: 0.5em; }
252 .Sh, .Ss { margin-left: 0em; }
253 .Bd-indent { margin-left: 2em; }
254 .Bl-hang > dd {
255 margin-left: 2em; }
256 .Bl-tag { margin-left: 2em; }
257 .Bl-tag > dt {
258 margin-left: -2em; }
259 .HP { margin-left: 2em;
260 text-indent: -2em; }
261 }