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