]>
git.cameronkatri.com Git - mandoc.git/blob - mandoc.css
1 /* $Id: mandoc.css,v 1.40 2018/11/26 21:06:02 schwarze Exp $ */
3 * Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
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.
11 /* Global defaults. */
13 html
{ max-width: 65em; }
14 body
{ font-family: Helvetica
,Arial
,sans-serif
; }
15 table
{ margin-top: 0em;
17 border-collapse: collapse
; }
18 td
{ vertical-align: middle
;
20 padding-right: 0.2em; }
21 ul
, ol
, dl
{ margin-top: 0em;
23 li
, dt
{ margin-top: 1em; }
25 .permalink { border-bottom: thin dotted
;
28 text-decoration: inherit
; }
31 /* Search form and search results. */
33 fieldset
{ border: thin solid silver
;
39 table
.results
{ margin-top: 1em;
43 /* Header and footer lines. */
45 table
.head
{ width: 100%;
46 border-bottom: 1px dotted
#808080;
49 td
.head-vol
{ text-align: center
; }
53 table
.foot
{ width: 100%;
54 border-top: 1px dotted
#808080;
57 td
.foot-os
{ text-align: right
; }
59 /* Sections and paragraphs. */
63 .Nd { display: inline
; }
64 .Sh { margin-top: 1.2em;
68 .Ss { margin-top: 1.2em;
72 .Pp { margin: 0.6em 0em; }
76 /* Displays and lists. */
79 .Bd-indent { margin-left: 3.8em; }
81 .Bl-bullet { list-style-type: disc
;
84 .Bl-dash { list-style-type: none
;
86 .Bl-dash > li:before {
88 .Bl-item { list-style-type: none
;
94 .Bl-enum { padding-left: 2em; }
108 margin-left: 5.5em; }
117 .Bl-tag { margin-left: 5.5em; }
122 padding-right: 0.5em;
123 vertical-align: top
; }
135 .Bl-column > tbody > tr { }
136 .Bl-column > tbody > tr > td {
138 .Bl-compact > tbody > tr > td {
141 .Rs { font-style: normal
;
142 font-weight: normal
; }
144 .RsB { font-style: italic
;
145 font-weight: normal
; }
148 .RsI { font-style: italic
;
149 font-weight: normal
; }
150 .RsJ { font-style: italic
;
151 font-weight: normal
; }
157 .RsT { text-decoration: underline
; }
164 .HP { margin-left: 3.8em;
165 text-indent: -3.8em; }
167 /* Semantic markup for command line utilities. */
170 code
.Nm
{ font-style: normal
;
172 font-family: inherit
; }
173 .Fl { font-style: normal
;
175 font-family: inherit
; }
176 .Cm { font-style: normal
;
178 font-family: inherit
; }
179 .Ar { font-style: italic
;
180 font-weight: normal
; }
181 .Op { display: inline
; }
182 .Ic { font-style: normal
;
184 font-family: inherit
; }
185 .Ev { font-style: normal
;
187 font-family: monospace
; }
188 .Pa { font-style: italic
;
189 font-weight: normal
; }
191 /* Semantic markup for function libraries. */
194 code
.In
{ font-style: normal
;
196 font-family: inherit
; }
198 .Fd { font-style: normal
;
200 font-family: inherit
; }
201 .Ft { font-style: italic
;
202 font-weight: normal
; }
203 .Fn { font-style: normal
;
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
;
214 font-family: monospace
; }
215 .Er { font-style: normal
;
217 font-family: monospace
; }
219 /* Various semantic markup. */
224 .Cd { font-style: normal
;
226 font-family: inherit
; }
227 .Ad { font-style: italic
;
228 font-weight: normal
; }
229 .Ms { font-style: normal
;
234 /* Physical markup. */
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
;
243 .Li { font-style: normal
;
245 font-family: monospace
; }
247 /* Overrides to avoid excessive margins on small devices. */
249 @media (max-width: 37.5em) {
251 margin-left: 0.5em; }
252 .Sh, .Ss { margin-left: 0em; }
253 .Bd-indent { margin-left: 2em; }
256 .Bl-tag { margin-left: 2em; }
259 .HP { margin-left: 2em;