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