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