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