]> git.cameronkatri.com Git - mandoc.git/blob - style.css
When in a <PRE>, don't print out the <BR> before lines that have leading
[mandoc.git] / style.css
1 /* $Id: style.css,v 1.20 2010/12/24 22:51:13 kristaps Exp $ */
2
3 html { max-width: 800px; }
4 body { color: #333333;
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;
12 margin-top: 1em;
13 border-top: 1px dotted #dddddd;
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;
19 margin-bottom: 1em;
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
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). */
31 div.subsection { } /* Sub-sections (Ss, SS). */
32 table.synopsis { } /* SYNOPSIS section table. */
33 table.synopsis td { vertical-align: top; } /* SYNOPSIS section table. */
34
35 /* Vertical spacing. */
36
37 p { } /* Paragraph: Pp, Lp. */
38 blockquote { margin-top: 0px; margin-bottom: 0px; }
39 table { margin-top: 0px; margin-bottom: 0px; }
40
41 /* General font modes. */
42
43 .lit { font-family: monospace; font-style: normal; font-weight: normal; } /* Literal: Dl, Li, Bf -literal, Bl -literal, Bl -unfilled. */
44 .italic { font-style: italic; font-weight: normal; } /* Italic: BI, IB, I, (implicit). */
45 .emph { font-style: italic; font-weight: normal; } /* Emphasis: Em, Bl -emphasis. */
46 .bold { font-style: normal; font-weight: bold; } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */
47 .symb { font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */
48 .roman { font-style: normal; font-weight: normal; } /* Roman: (implicit). */
49 .small { font-style: normal; font-weight: normal; font-size: smaller; } /* Small: SB, SM. */
50
51 /* Block modes. */
52
53 .display { background-color: #EEEEEE;
54 margin: 3px;
55 padding: 3px;
56 border: 1px solid #339999; } /* Top of all Bd, D1, Dl. */
57 .list { } /* Top of all Bl. */
58
59 /* Context-specific modes. */
60
61 i.addr { font-weight: normal; } /* Address (Ad). */
62 i.arg { font-weight: normal; } /* Command argument (Ar). */
63 span.author { } /* Author name (An). */
64 b.cmd { font-style: normal; } /* Command (Cm). */
65 b.config { font-style: normal; } /* Config statement (Cd). */
66 span.define { } /* Defines (Dv). */
67 span.desc { } /* Nd. After em-dash. */
68 b.diag { font-style: normal; } /* Diagnostic (Bl -diag). */
69 span.env { } /* Environment variables (Ev). */
70 span.errno { } /* Error string (Er). */
71 i.farg { font-weight: normal; } /* Function argument (Fa, Fn). */
72 i.file { font-weight: normal; } /* File (Pa). */
73 b.flag { font-style: normal; } /* Flag (Fl, Cm). */
74 b.fname { font-style: normal; } /* Function name (Fa, Fn, Rv). */
75 i.ftype { font-weight: normal; } /* Function types (Ft, Fn). */
76 b.includes { font-style: normal; } /* Header includes (In). */
77 span.lib { } /* Library (Lb). */
78 b.macro { font-style: normal; } /* Macro-ish thing (Fd). */
79 b.name { color: blue; font-style: normal; } /* Name of utility (Nm). */
80 span.opt { } /* Options (Op, Oo/Oc). */
81 span.ref { } /* Citations (Rs). */
82 span.ref-auth { } /* Reference author (%A). */
83 i.ref-book { font-weight: normal; } /* Reference book (%B). */
84 span.ref-city { } /* Reference city (%C). */
85 span.ref-date { } /* Reference date (%D). */
86 i.ref-issue { font-weight: normal; } /* Reference issuer/publisher (%I). */
87 i.ref-jrnl { font-weight: normal; } /* Reference journal (%J). */
88 span.ref-num { } /* Reference number (%N). */
89 span.ref-opt { } /* Reference optionals (%O). */
90 span.ref-page { } /* Reference page (%P). */
91 span.ref-corp { } /* Reference corporate/foreign author (%Q). */
92 span.ref-rep { } /* Reference report (%R). */
93 span.ref-title { text-decoration: underline; } /* Reference title (%T). */
94 span.ref-vol { } /* Reference volume (%V). */
95 span.type { font-style: italic; font-weight: normal; } /* Variable types (Vt). */
96 span.unix { } /* Unices (Ux, Ox, Nx, Fx, Bx, Bsx, Dx). */
97 b.utility { font-style: normal; } /* Name of utility (Ex). */
98 b.var { font-style: normal; } /* Variables (Rv). */
99
100 a.link-ext { background: transparent url(external.png) center right no-repeat; padding-right: 12px; }/* Off-site link (Lk). */
101 a.link-includes { } /* Include-file link (In). */
102 a.link-mail { background: transparent url(external.png) center right no-repeat; padding-right: 12px; }/* Mailto links (Mt). */
103 a.link-man { } /* Manual links (Xr). */
104 a.link-ref { } /* Reference section links (%Q). */
105 a.link-sec { text-decoration: none; border-bottom: 1px dotted #339999; } /* Section links (Sx). */
106
107 /* Formatting for lists. */
108
109 dl.list-diag { }
110 dt.list-diag { }
111 dd.list-diag { }
112
113 dl.list-hang { }
114 dt.list-hang { }
115 dd.list-hang { }
116
117 dl.list-inset { }
118 dt.list-inset { }
119 dd.list-inset { }
120
121 dl.list-ohang { }
122 dt.list-ohang { }
123 dd.list-ohang { margin-left: 0em; }
124
125 dl.list-tag { }
126 dt.list-tag { }
127 dd.list-tag { }
128
129 table.list-col { }
130 tr.list-col { }
131 td.list-col { }
132
133 ul.list-bul { list-style-type: disc; padding-left: 1em; }
134 li.list-bul { }
135
136 ul.list-dash { list-style-type: none; padding-left: 0em; }
137 li.list-dash:before { content: "\2014 "; }
138
139 ul.list-hyph { list-style-type: none; padding-left: 0em; }
140 li.list-hyph:before { content: "\2013 "; }
141
142 ul.list-item { list-style-type: none; padding-left: 0em; }
143 li.list-item { }
144
145 ol.list-enum { padding-left: 2em; }
146 li.list-enum { }