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