blob: 06a613c2ca8dbf434012e7aea905b4da0ec30455 [file] [log] [blame]
Fred Drake00d98ee1999-02-16 20:27:08 +00001/*
2 * The first part of this is the standard CSS generated by LaTeX2HTML,
3 * with the "empty" declarations removed.
4 */
5
6/* Century Schoolbook font is very similar to Computer Modern Math: cmmi */
Fred Drake329796d2000-09-28 20:41:16 +00007.math { font-family: "Century Schoolbook", serif; }
8.math i { font-family: "Century Schoolbook", serif;
9 font-weight: bold }
10.boldmath { font-family: "Century Schoolbook", serif;
11 font-weight: bold }
Fred Drake00d98ee1999-02-16 20:27:08 +000012
Fred Drakebde8d1c2001-07-06 22:37:36 +000013/*
14 * Implement both fixed-size and relative sizes.
15 *
16 * I think these can be safely removed, as it doesn't appear that
17 * LaTeX2HTML ever generates these, even though these are carried
18 * over from the LaTeX2HTML stylesheet.
19 */
Fred Drake1ab1f712001-06-23 04:53:43 +000020small.xtiny { font-size : xx-small; }
21small.tiny { font-size : x-small; }
22small.scriptsize { font-size : smaller; }
23small.footnotesize { font-size : small; }
24big.xlarge { font-size : large; }
25big.xxlarge { font-size : x-large; }
26big.huge { font-size : larger; }
27big.xhuge { font-size : xx-large; }
Fred Drake00d98ee1999-02-16 20:27:08 +000028
29/*
30 * Document-specific styles come next;
31 * these are added for the Python documentation.
32 *
33 * Note that the size specifications for the H* elements are because
34 * Netscape on Solaris otherwise doesn't get it right; they all end up
35 * the normal text size.
36 */
37
Fred Drake329796d2000-09-28 20:41:16 +000038body { color: #000000;
Fred Drake16816272000-09-16 20:40:44 +000039 background-color: #ffffff; }
40
Fred Drake58954812004-11-13 21:58:01 +000041a:link:active { color: #ff0000; }
Fred Drake6ab8b402003-06-27 16:32:27 +000042a:link:hover { background-color: #bbeeff; }
43a:visited:hover { background-color: #bbeeff; }
Fred Drake329796d2000-09-28 20:41:16 +000044a:visited { color: #551a8b; }
45a:link { color: #0000bb; }
Fred Drake16816272000-09-16 20:40:44 +000046
Fred Drake329796d2000-09-28 20:41:16 +000047h1, h2, h3, h4, h5, h6 { font-family: avantgarde, sans-serif;
Fred Drake1ab1f712001-06-23 04:53:43 +000048 font-weight: bold; }
49h1 { font-size: 180%; }
50h2 { font-size: 150%; }
51h3, h4 { font-size: 120%; }
Fred Drakef3552132003-09-06 01:10:14 +000052
Fred Drake9c8149a2004-11-10 17:56:29 +000053/* These are section titles used in navigation links, so make sure we
54 * match the section header font here, even it not the weight.
55 */
56.sectref { font-family: avantgarde, sans-serif; }
57/* And the label before the titles in navigation: */
58.navlabel { font-size: 85%; }
59
60
Fred Drakef3552132003-09-06 01:10:14 +000061/* LaTeX2HTML insists on inserting <br> elements into headers which
62 * are marked with \label. This little bit of CSS magic ensures that
63 * these elements don't cause spurious whitespace to be added.
64 */
65h1>br, h2>br, h3>br,
66h4>br, h5>br, h6>br { display: none; }
67
Fred Drake9e78d1e2003-08-29 04:09:26 +000068code, tt { font-family: "lucida typewriter", lucidatypewriter,
Fred Drakee1d4ad32001-11-14 22:35:59 +000069 monospace; }
Fred Drake9eb41552001-03-08 22:17:54 +000070var { font-family: times, serif;
Fred Drakebdcc96c2000-03-29 22:41:52 +000071 font-style: italic;
Fred Drake1ab1f712001-06-23 04:53:43 +000072 font-weight: normal; }
Fred Drake00d98ee1999-02-16 20:27:08 +000073
Fred Drake9c8149a2004-11-10 17:56:29 +000074.Unix { font-variant: small-caps; }
75
Fred Drakebeafc792001-11-26 21:46:53 +000076.typelabel { font-family: lucida, sans-serif; }
Fred Drakee1d4ad32001-11-14 22:35:59 +000077
Fred Drake329796d2000-09-28 20:41:16 +000078.navigation td { background-color: #99ccff;
Fred Drake3eb7c122000-08-31 07:15:57 +000079 font-weight: bold;
80 font-family: avantgarde, sans-serif;
Fred Drake1ab1f712001-06-23 04:53:43 +000081 font-size: 110%; }
Fred Drake699f98c2000-08-29 21:57:34 +000082
Fred Drake5a55c492002-05-01 22:03:40 +000083div.warning { background-color: #fffaf0;
84 border: thin solid black;
Fred Drakec504c202003-09-30 15:40:33 +000085 padding: 1em;
Fred Drake5a55c492002-05-01 22:03:40 +000086 margin-left: 2em;
87 margin-right: 2em; }
88
Fred Drake9db20c62003-01-27 16:31:16 +000089div.warning .label { font-family: sans-serif;
90 font-size: 110%;
Fred Drake5a55c492002-05-01 22:03:40 +000091 margin-right: 0.5em; }
92
Fred Drake9db20c62003-01-27 16:31:16 +000093div.note { background-color: #fffaf0;
94 border: thin solid black;
Fred Drake292f5972003-09-30 15:43:20 +000095 padding: 1em;
Fred Drake9db20c62003-01-27 16:31:16 +000096 margin-left: 2em;
97 margin-right: 2em; }
98
99div.note .label { margin-right: 0.5em;
100 font-family: sans-serif; }
101
Fred Drake9c8149a2004-11-10 17:56:29 +0000102address { font-size: 80%; }
103.release-info { font-style: italic;
104 font-size: 80%; }
Fred Drake6a119602000-10-25 16:10:46 +0000105
Fred Drake329796d2000-09-28 20:41:16 +0000106.titlegraphic { vertical-align: top; }
Fred Drake00d98ee1999-02-16 20:27:08 +0000107
Fred Drake8a5e6792002-04-15 18:41:31 +0000108.verbatim pre { color: #00008b;
Fred Drake9e78d1e2003-08-29 04:09:26 +0000109 font-family: "lucida typewriter", lucidatypewriter,
Fred Drake8a5e6792002-04-15 18:41:31 +0000110 monospace;
111 font-size: 90%; }
112.verbatim { margin-left: 2em; }
Fred Drake49c59552003-01-29 05:14:44 +0000113.verbatim .footer { padding: 0.05in;
114 font-size: 85%;
115 background-color: #99ccff;
116 margin-right: 0.5in; }
Fred Drake00d98ee1999-02-16 20:27:08 +0000117
Fred Drakebde8d1c2001-07-06 22:37:36 +0000118.grammar { background-color: #99ccff;
119 margin-right: 0.5in;
120 padding: 0.05in; }
Fred Drakebde8d1c2001-07-06 22:37:36 +0000121.grammar-footer { padding: 0.05in;
122 font-size: 85%; }
Fred Drake5d93eef2004-11-10 17:02:43 +0000123.grammartoken { font-family: "lucida typewriter", lucidatypewriter,
124 monospace; }
Fred Drakebde8d1c2001-07-06 22:37:36 +0000125
Fred Drake6ab8b402003-06-27 16:32:27 +0000126.productions { background-color: #bbeeff; }
127.productions a:active { color: #ff0000; }
128.productions a:link:hover { background-color: #99ccff; }
129.productions a:visited:hover { background-color: #99ccff; }
130.productions a:visited { color: #551a8b; }
131.productions a:link { color: #0000bb; }
Fred Drake5d93eef2004-11-10 17:02:43 +0000132.productions table { vertical-align: baseline;
133 empty-cells: show; }
134.productions > table td,
135.productions > table th { padding: 2px; }
136.productions > table td:first-child,
137.productions > table td:last-child {
138 font-family: "lucida typewriter",
139 lucidatypewriter,
140 monospace;
141 }
142/* same as the second selector above, but expressed differently for Opera */
143.productions > table td:first-child + td + td {
144 font-family: "lucida typewriter",
145 lucidatypewriter,
146 monospace;
147 vertical-align: baseline;
148 }
149.productions > table td:first-child + td {
150 padding-left: 1em;
151 padding-right: 1em;
152 }
153.productions > table tr { vertical-align: baseline; }
Fred Drake6ab8b402003-06-27 16:32:27 +0000154
Fred Drake1ab1f712001-06-23 04:53:43 +0000155.email { font-family: avantgarde, sans-serif; }
Fred Drake479384e2001-09-26 18:46:36 +0000156.mailheader { font-family: avantgarde, sans-serif; }
Fred Drake1ab1f712001-06-23 04:53:43 +0000157.mimetype { font-family: avantgarde, sans-serif; }
158.newsgroup { font-family: avantgarde, sans-serif; }
159.url { font-family: avantgarde, sans-serif; }
160.file { font-family: avantgarde, sans-serif; }
Fred Drakef0f6d122004-01-23 08:52:28 +0000161.guilabel { font-family: avantgarde, sans-serif; }
Fred Drakebdcc96c2000-03-29 22:41:52 +0000162
Fred Drake39a6a6d2004-11-10 15:37:54 +0000163.realtable { border-collapse: collapse;
164 border-color: black;
165 border-style: solid;
166 border-width: 0px 0px 2px 0px;
Fred Drake39a6a6d2004-11-10 15:37:54 +0000167 empty-cells: show;
168 margin-left: auto;
169 margin-right: auto;
170 padding-left: 0.4em;
171 padding-right: 0.4em;
172 }
173.realtable tbody { vertical-align: baseline; }
174.realtable tfoot { display: table-footer-group; }
175.realtable thead { background-color: #99ccff;
176 border-width: 0px 0px 2px 1px;
177 display: table-header-group;
178 font-family: avantgarde, sans-serif;
179 font-weight: bold;
180 vertical-align: baseline;
181 }
182.realtable thead :first-child {
183 border-width: 0px 0px 2px 0px;
184 }
185.realtable thead th { border-width: 0px 0px 2px 1px }
186.realtable td,
187.realtable th { border-color: black;
188 border-style: solid;
189 border-width: 0px 0px 1px 1px;
190 padding-left: 0.4em;
191 padding-right: 0.4em;
Fred Drake39a6a6d2004-11-10 15:37:54 +0000192 }
193.realtable td:first-child,
194.realtable th:first-child {
195 border-left-width: 0px;
196 vertical-align: baseline;
197 }
Fred Drake0a3c8182004-11-10 19:22:05 +0000198.center { text-align: center; }
199.left { text-align: left; }
200.right { text-align: right; }
Fred Drakeeacc4fc2000-08-30 15:02:13 +0000201
Fred Drake1ab1f712001-06-23 04:53:43 +0000202.refcount-info { font-style: italic; }
Fred Drakebdcc96c2000-03-29 22:41:52 +0000203.refcount-info .value { font-weight: bold;
Fred Drake1ab1f712001-06-23 04:53:43 +0000204 color: #006600; }
Fred Drake01bc01c1999-03-02 15:58:20 +0000205
206/*
Fred Drake7c6a90d1999-03-25 22:22:45 +0000207 * Some decoration for the "See also:" blocks, in part inspired by some of
208 * the styling on Lars Marius Garshol's XSA pages.
209 * (The blue in the navigation bars is #99CCFF.)
210 */
Fred Drake329796d2000-09-28 20:41:16 +0000211.seealso { background-color: #fffaf0;
Fred Drake7c6a90d1999-03-25 22:22:45 +0000212 border: thin solid black;
Fred Drake929d9592003-09-05 13:58:26 +0000213 padding: 0pt 1em 4pt 1em; }
Fred Drake7c6a90d1999-03-25 22:22:45 +0000214
Fred Drake0cf87be2004-11-10 08:08:26 +0000215.seealso > .heading { font-size: 110%;
216 font-weight: bold; }
Fred Drake7c6a90d1999-03-25 22:22:45 +0000217
218/*
Fred Drake01bc01c1999-03-02 15:58:20 +0000219 * Class 'availability' is used for module availability statements at
Fred Drake329796d2000-09-28 20:41:16 +0000220 * the top of modules.
Fred Drake01bc01c1999-03-02 15:58:20 +0000221 */
Fred Drake1ab1f712001-06-23 04:53:43 +0000222.availability .platform { font-weight: bold; }
Fred Drake859c46a2003-09-04 19:30:15 +0000223
224
225/*
Fred Drake972c9e82004-10-19 15:40:38 +0000226 * Additional styles for the distutils package.
227 */
228.du-command { font-family: monospace; }
229.du-option { font-family: avantgarde, sans-serif; }
230.du-filevar { font-family: avantgarde, sans-serif;
231 font-style: italic; }
232.du-xxx:before { content: "** ";
233 font-weight: bold; }
234.du-xxx:after { content: " **";
235 font-weight: bold; }
236
237
238/*
Fred Drake859c46a2003-09-04 19:30:15 +0000239 * Some specialization for printed output.
240 */
241@media print {
Fred Drake0739c442003-09-04 22:16:45 +0000242 .online-navigation { display: none; }
Fred Drake859c46a2003-09-04 19:30:15 +0000243 }