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