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