]>
git.cameronkatri.com Git - mandoc.git/blob - mandoc.css
1 /* $Id: mandoc.css,v 1.42 2018/12/04 06:11:49 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 /* Some browsers set border-color in a browser style for tbody,
19 * but not for table, resulting in inconsistent border styling. */
20 tbody
{ border-color: inherit
; }
21 tr
{ border-color: inherit
; }
22 td
{ vertical-align: top
;
25 border-color: inherit
; }
26 ul
, ol
, dl
{ margin-top: 0em;
28 li
, dt
{ margin-top: 1em; }
30 .permalink { border-bottom: thin dotted
;
33 text-decoration: inherit
; }
36 /* Search form and search results. */
38 fieldset
{ border: thin solid silver
;
44 table
.results
{ margin-top: 1em;
48 /* Header and footer lines. */
50 table
.head
{ width: 100%;
51 border-bottom: 1px dotted
#808080;
54 td
.head-vol
{ text-align: center
; }
58 table
.foot
{ width: 100%;
59 border-top: 1px dotted
#808080;
62 td
.foot-os
{ text-align: right
; }
64 /* Sections and paragraphs. */
68 .Nd { display: inline
; }
69 .Sh { margin-top: 1.2em;
73 .Ss { margin-top: 1.2em;
77 .Pp { margin: 0.6em 0em; }
81 /* Displays and lists. */
84 .Bd-indent { margin-left: 3.8em; }
86 .Bl-bullet { list-style-type: disc
;
89 .Bl-dash { list-style-type: none
;
91 .Bl-dash > li:before {
93 .Bl-item { list-style-type: none
;
99 .Bl-enum { padding-left: 2em; }
113 margin-left: 5.5em; }
122 .Bl-tag { margin-left: 5.5em; }
127 padding-right: 0.5em;
128 vertical-align: top
; }
140 .Bl-column > tbody > tr { }
141 .Bl-column > tbody > tr > td {
143 .Bl-compact > tbody > tr > td {
146 .Rs { font-style: normal
;
147 font-weight: normal
; }
149 .RsB { font-style: italic
;
150 font-weight: normal
; }
153 .RsI { font-style: italic
;
154 font-weight: normal
; }
155 .RsJ { font-style: italic
;
156 font-weight: normal
; }
162 .RsT { text-decoration: underline
; }
167 .tbl td { vertical-align: middle
; }
169 .HP { margin-left: 3.8em;
170 text-indent: -3.8em; }
172 /* Semantic markup for command line utilities. */
175 code
.Nm
{ font-style: normal
;
177 font-family: inherit
; }
178 .Fl { font-style: normal
;
180 font-family: inherit
; }
181 .Cm { font-style: normal
;
183 font-family: inherit
; }
184 .Ar { font-style: italic
;
185 font-weight: normal
; }
186 .Op { display: inline
; }
187 .Ic { font-style: normal
;
189 font-family: inherit
; }
190 .Ev { font-style: normal
;
192 font-family: monospace
; }
193 .Pa { font-style: italic
;
194 font-weight: normal
; }
196 /* Semantic markup for function libraries. */
199 code
.In
{ font-style: normal
;
201 font-family: inherit
; }
203 .Fd { font-style: normal
;
205 font-family: inherit
; }
206 .Ft { font-style: italic
;
207 font-weight: normal
; }
208 .Fn { font-style: normal
;
210 font-family: inherit
; }
211 .Fa { font-style: italic
;
212 font-weight: normal
; }
213 .Vt { font-style: italic
;
214 font-weight: normal
; }
215 .Va { font-style: italic
;
216 font-weight: normal
; }
217 .Dv { font-style: normal
;
219 font-family: monospace
; }
220 .Er { font-style: normal
;
222 font-family: monospace
; }
224 /* Various semantic markup. */
229 .Cd { font-style: normal
;
231 font-family: inherit
; }
232 .Ad { font-style: italic
;
233 font-weight: normal
; }
234 .Ms { font-style: normal
;
239 /* Physical markup. */
241 .Bf { display: inline
; }
242 .No { font-style: normal
;
243 font-weight: normal
; }
244 .Em { font-style: italic
;
245 font-weight: normal
; }
246 .Sy { font-style: normal
;
248 .Li { font-style: normal
;
250 font-family: monospace
; }
252 /* Overrides to avoid excessive margins on small devices. */
254 @media (max-width: 37.5em) {
256 margin-left: 0.5em; }
257 .Sh, .Ss { margin-left: 0em; }
258 .Bd-indent { margin-left: 2em; }
261 .Bl-tag { margin-left: 2em; }
264 .HP { margin-left: 2em;