1 /* $Id: mandoc.css,v 1.1 2015/11/05 17:47:51 schwarze Exp $ */
4 * This is an example style-sheet provided for mandoc(1) and the -Thtml
5 * or -Txhtml output mode.
7 * It mimics the appearance of the traditional cvsweb output.
9 * See mdoc(7) and man(7) for macro explanations.
12 html { max-width: 880px; margin-left: 1em; }
13 body { font-size: smaller; font-family: Helvetica,Arial,sans-serif; }
14 body > div { padding-left: 2em;
17 body > div#mancgi { padding-left: 0em;
19 body > div.results { font-size: smaller; }
20 #mancgi fieldset { text-align: center;
21 border: thin solid silver;
24 #mancgi input[name=expr] { width: 25%; }
25 .results td.title { vertical-align: top;
27 h1 { margin-bottom: 1ex; font-size: 110%; margin-left: -4ex; } /* Section header (Sh, SH). */
28 h2 { margin-bottom: 1ex; font-size: 105%; margin-left: -2ex; } /* Sub-section header (Ss, SS). */
29 table { width: 100%; margin-top: 0ex; margin-bottom: 0ex; } /* All tables. */
30 td { vertical-align: top; } /* All table cells. */
31 p { } /* Paragraph: Pp, Lp. */
32 blockquote { margin-left: 5ex; margin-top: 0ex; margin-bottom: 0ex; } /* D1. */
33 div.section { margin-bottom: 2ex; margin-left: 5ex; } /* Sections (Sh, SH). */
34 div.subsection { } /* Sub-sections (Ss, SS). */
35 table.synopsis { } /* SYNOPSIS section table. */
36 div.spacer { margin: 1em 0; }
38 /* Preamble structure. */
40 table.foot { font-size: smaller; margin-top: 1em; border-top: 1px dotted #dddddd; } /* Document footer. */
41 td.foot-date { width: 50%; } /* Document footer: date. */
42 td.foot-os { width: 50%; } /* Document footer: OS/source. */
43 table.head { font-size: smaller; margin-bottom: 1em; border-bottom: 1px dotted #dddddd; } /* Document header. */
44 td.head-ltitle { width: 10%; } /* Document header: left-title. */
45 td.head-vol { width: 80%; } /* Document header: volume. */
46 td.head-rtitle { width: 10%; } /* Document header: right-title. */
48 /* General font modes. */
50 i { } /* Italic: BI, IB, I, (implicit). */
51 .emph { font-style: italic; font-weight: normal; } /* Emphasis: Em, Bl -emphasis. */
52 b { } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */
53 .symb { font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */
54 small { } /* Small: SB, SM. */
55 .lit { font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Ql, Bf -literal, Bl -literal, Bl -unfilled. */
59 .display { } /* Top of all Bd, D1, Dl. */
60 .list { } /* Top of all Bl. */
62 /* Context-specific modes. */
64 i.addr { font-weight: normal; } /* Address (Ad). */
65 i.arg { font-weight: normal; } /* Command argument (Ar). */
66 span.author { } /* Author name (An). */
67 b.cmd { font-style: normal; } /* Command (Cm). */
68 b.config { font-style: normal; } /* Config statement (Cd). */
69 span.define { } /* Defines (Dv). */
70 span.desc { } /* Nd. After em-dash. */
71 b.diag { font-style: normal; } /* Diagnostic (Bl -diag). */
72 span.env { } /* Environment variables (Ev). */
73 span.errno { } /* Error string (Er). */
74 i.farg { font-weight: normal; } /* Function argument (Fa, Fn). */
75 i.file { font-weight: normal; } /* File (Pa). */
76 b.flag { font-style: normal; } /* Flag (Fl, Cm). */
77 b.fname { font-style: normal; } /* Function name (Fa, Fn, Rv). */
78 i.ftype { font-weight: normal; } /* Function types (Ft, Fn). */
79 b.includes { font-style: normal; } /* Header includes (In). */
80 span.lib { } /* Library (Lb). */
81 i.link-sec { font-weight: normal; } /* Section links (Sx). */
82 b.macro { font-style: normal; } /* Macro-ish thing (Fd). */
83 b.name { font-style: normal; } /* Name of utility (Nm). */
84 span.opt { } /* Options (Op, Oo/Oc). */
85 span.ref { } /* Citations (Rs). */
86 span.ref-auth { } /* Reference author (%A). */
87 i.ref-book { font-weight: normal; } /* Reference book (%B). */
88 span.ref-city { } /* Reference city (%C). */
89 span.ref-date { } /* Reference date (%D). */
90 i.ref-issue { font-weight: normal; } /* Reference issuer/publisher (%I). */
91 i.ref-jrnl { font-weight: normal; } /* Reference journal (%J). */
92 span.ref-num { } /* Reference number (%N). */
93 span.ref-opt { } /* Reference optionals (%O). */
94 span.ref-page { } /* Reference page (%P). */
95 span.ref-corp { } /* Reference corporate/foreign author (%Q). */
96 span.ref-rep { } /* Reference report (%R). */
97 span.ref-title { text-decoration: underline; } /* Reference title (%T). */
98 span.ref-vol { } /* Reference volume (%V). */
99 span.type { font-style: italic; font-weight: normal; } /* Variable types (Vt). */
100 span.unix { } /* Unices (Ux, Ox, Nx, Fx, Bx, Bsx, Dx). */
101 b.utility { font-style: normal; } /* Name of utility (Ex). */
102 b.var { font-style: normal; } /* Variables (Rv). */
104 a.link-ext { } /* Off-site link (Lk). */
105 a.link-includes { } /* Include-file link (In). */
106 a.link-mail { } /* Mailto links (Mt). */
107 a.link-man { } /* Manual links (Xr). */
108 a.link-ref { } /* Reference section links (%Q). */
109 a.link-sec { } /* Section links (Sx). */
111 /* Formatting for lists. See mdoc(7). */
127 dd.list-ohang { margin-left: 0ex; }
137 ul.list-bul { list-style-type: disc; padding-left: 1em; }
140 ul.list-dash { list-style-type: none; padding-left: 0em; }
141 li.list-dash:before { content: "\2014 "; }
143 ul.list-hyph { list-style-type: none; padding-left: 0em; }
144 li.list-hyph:before { content: "\2013 "; }
146 ul.list-item { list-style-type: none; padding-left: 0em; }
149 ol.list-enum { padding-left: 2em; }
152 /* Equation modes. See eqn(7). */
156 /* Table modes. See tbl(7). */