blob: ce42ffb79e4ad3488f230f79e9d2e82fb2a5a988 [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 Drake329796d2000-09-28 20:41:16 +000041a: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
53/* LaTeX2HTML insists on inserting <br> elements into headers which
54 * are marked with \label. This little bit of CSS magic ensures that
55 * these elements don't cause spurious whitespace to be added.
56 */
57h1>br, h2>br, h3>br,
58h4>br, h5>br, h6>br { display: none; }
59
Fred Drake9e78d1e2003-08-29 04:09:26 +000060code, tt { font-family: "lucida typewriter", lucidatypewriter,
Fred Drakee1d4ad32001-11-14 22:35:59 +000061 monospace; }
Fred Drake9eb41552001-03-08 22:17:54 +000062var { font-family: times, serif;
Fred Drakebdcc96c2000-03-29 22:41:52 +000063 font-style: italic;
Fred Drake1ab1f712001-06-23 04:53:43 +000064 font-weight: normal; }
Fred Drake00d98ee1999-02-16 20:27:08 +000065
Fred Drakebeafc792001-11-26 21:46:53 +000066.typelabel { font-family: lucida, sans-serif; }
Fred Drakee1d4ad32001-11-14 22:35:59 +000067
Fred Drake329796d2000-09-28 20:41:16 +000068.navigation td { background-color: #99ccff;
Fred Drake3eb7c122000-08-31 07:15:57 +000069 font-weight: bold;
70 font-family: avantgarde, sans-serif;
Fred Drake1ab1f712001-06-23 04:53:43 +000071 font-size: 110%; }
Fred Drake699f98c2000-08-29 21:57:34 +000072
Fred Drake5a55c492002-05-01 22:03:40 +000073div.warning { background-color: #fffaf0;
74 border: thin solid black;
Fred Drakec504c202003-09-30 15:40:33 +000075 padding: 1em;
Fred Drake5a55c492002-05-01 22:03:40 +000076 margin-left: 2em;
77 margin-right: 2em; }
78
Fred Drake9db20c62003-01-27 16:31:16 +000079div.warning .label { font-family: sans-serif;
80 font-size: 110%;
Fred Drake5a55c492002-05-01 22:03:40 +000081 margin-right: 0.5em; }
82
Fred Drake9db20c62003-01-27 16:31:16 +000083div.note { background-color: #fffaf0;
84 border: thin solid black;
Fred Drake292f5972003-09-30 15:43:20 +000085 padding: 1em;
Fred Drake9db20c62003-01-27 16:31:16 +000086 margin-left: 2em;
87 margin-right: 2em; }
88
89div.note .label { margin-right: 0.5em;
90 font-family: sans-serif; }
91
Fred Drake6a119602000-10-25 16:10:46 +000092.release-info { font-style: italic; }
93
Fred Drake329796d2000-09-28 20:41:16 +000094.titlegraphic { vertical-align: top; }
Fred Drake00d98ee1999-02-16 20:27:08 +000095
Fred Drake8a5e6792002-04-15 18:41:31 +000096.verbatim pre { color: #00008b;
Fred Drake9e78d1e2003-08-29 04:09:26 +000097 font-family: "lucida typewriter", lucidatypewriter,
Fred Drake8a5e6792002-04-15 18:41:31 +000098 monospace;
99 font-size: 90%; }
100.verbatim { margin-left: 2em; }
Fred Drake49c59552003-01-29 05:14:44 +0000101.verbatim .footer { padding: 0.05in;
102 font-size: 85%;
103 background-color: #99ccff;
104 margin-right: 0.5in; }
Fred Drake00d98ee1999-02-16 20:27:08 +0000105
Fred Drakebde8d1c2001-07-06 22:37:36 +0000106.grammar { background-color: #99ccff;
107 margin-right: 0.5in;
108 padding: 0.05in; }
Fred Drakebde8d1c2001-07-06 22:37:36 +0000109.grammar-footer { padding: 0.05in;
110 font-size: 85%; }
Fred Drake5d93eef2004-11-10 17:02:43 +0000111.grammartoken { font-family: "lucida typewriter", lucidatypewriter,
112 monospace; }
Fred Drakebde8d1c2001-07-06 22:37:36 +0000113
Fred Drake6ab8b402003-06-27 16:32:27 +0000114.productions { background-color: #bbeeff; }
115.productions a:active { color: #ff0000; }
116.productions a:link:hover { background-color: #99ccff; }
117.productions a:visited:hover { background-color: #99ccff; }
118.productions a:visited { color: #551a8b; }
119.productions a:link { color: #0000bb; }
Fred Drake5d93eef2004-11-10 17:02:43 +0000120.productions table { vertical-align: baseline;
121 empty-cells: show; }
122.productions > table td,
123.productions > table th { padding: 2px; }
124.productions > table td:first-child,
125.productions > table td:last-child {
126 font-family: "lucida typewriter",
127 lucidatypewriter,
128 monospace;
129 }
130/* same as the second selector above, but expressed differently for Opera */
131.productions > table td:first-child + td + td {
132 font-family: "lucida typewriter",
133 lucidatypewriter,
134 monospace;
135 vertical-align: baseline;
136 }
137.productions > table td:first-child + td {
138 padding-left: 1em;
139 padding-right: 1em;
140 }
141.productions > table tr { vertical-align: baseline; }
Fred Drake6ab8b402003-06-27 16:32:27 +0000142
Fred Drake1ab1f712001-06-23 04:53:43 +0000143.email { font-family: avantgarde, sans-serif; }
Fred Drake479384e2001-09-26 18:46:36 +0000144.mailheader { font-family: avantgarde, sans-serif; }
Fred Drake1ab1f712001-06-23 04:53:43 +0000145.mimetype { font-family: avantgarde, sans-serif; }
146.newsgroup { font-family: avantgarde, sans-serif; }
147.url { font-family: avantgarde, sans-serif; }
148.file { font-family: avantgarde, sans-serif; }
Fred Drakef0f6d122004-01-23 08:52:28 +0000149.guilabel { font-family: avantgarde, sans-serif; }
Fred Drakebdcc96c2000-03-29 22:41:52 +0000150
Fred Drake39a6a6d2004-11-10 15:37:54 +0000151.realtable { border-collapse: collapse;
152 border-color: black;
153 border-style: solid;
154 border-width: 0px 0px 2px 0px;
Fred Drake39a6a6d2004-11-10 15:37:54 +0000155 empty-cells: show;
156 margin-left: auto;
157 margin-right: auto;
158 padding-left: 0.4em;
159 padding-right: 0.4em;
160 }
161.realtable tbody { vertical-align: baseline; }
162.realtable tfoot { display: table-footer-group; }
163.realtable thead { background-color: #99ccff;
164 border-width: 0px 0px 2px 1px;
165 display: table-header-group;
166 font-family: avantgarde, sans-serif;
167 font-weight: bold;
168 vertical-align: baseline;
169 }
170.realtable thead :first-child {
171 border-width: 0px 0px 2px 0px;
172 }
173.realtable thead th { border-width: 0px 0px 2px 1px }
174.realtable td,
175.realtable th { border-color: black;
176 border-style: solid;
177 border-width: 0px 0px 1px 1px;
178 padding-left: 0.4em;
179 padding-right: 0.4em;
180 text-align: inherit;
181 }
182.realtable td:first-child,
183.realtable th:first-child {
184 border-left-width: 0px;
185 vertical-align: baseline;
186 }
187.realtable .center { text-align: center; }
188.realtable .left { text-align: left; }
189.realtable .right { text-align: right; }
Fred Drakeeacc4fc2000-08-30 15:02:13 +0000190
Fred Drake1ab1f712001-06-23 04:53:43 +0000191.refcount-info { font-style: italic; }
Fred Drakebdcc96c2000-03-29 22:41:52 +0000192.refcount-info .value { font-weight: bold;
Fred Drake1ab1f712001-06-23 04:53:43 +0000193 color: #006600; }
Fred Drake01bc01c1999-03-02 15:58:20 +0000194
195/*
Fred Drake7c6a90d1999-03-25 22:22:45 +0000196 * Some decoration for the "See also:" blocks, in part inspired by some of
197 * the styling on Lars Marius Garshol's XSA pages.
198 * (The blue in the navigation bars is #99CCFF.)
199 */
Fred Drake329796d2000-09-28 20:41:16 +0000200.seealso { background-color: #fffaf0;
Fred Drake7c6a90d1999-03-25 22:22:45 +0000201 border: thin solid black;
Fred Drake929d9592003-09-05 13:58:26 +0000202 padding: 0pt 1em 4pt 1em; }
Fred Drake7c6a90d1999-03-25 22:22:45 +0000203
Fred Drake0cf87be2004-11-10 08:08:26 +0000204.seealso > .heading { font-size: 110%;
205 font-weight: bold; }
Fred Drake7c6a90d1999-03-25 22:22:45 +0000206
207/*
Fred Drake01bc01c1999-03-02 15:58:20 +0000208 * Class 'availability' is used for module availability statements at
Fred Drake329796d2000-09-28 20:41:16 +0000209 * the top of modules.
Fred Drake01bc01c1999-03-02 15:58:20 +0000210 */
Fred Drake1ab1f712001-06-23 04:53:43 +0000211.availability .platform { font-weight: bold; }
Fred Drake859c46a2003-09-04 19:30:15 +0000212
213
214/*
Fred Drake972c9e82004-10-19 15:40:38 +0000215 * Additional styles for the distutils package.
216 */
217.du-command { font-family: monospace; }
218.du-option { font-family: avantgarde, sans-serif; }
219.du-filevar { font-family: avantgarde, sans-serif;
220 font-style: italic; }
221.du-xxx:before { content: "** ";
222 font-weight: bold; }
223.du-xxx:after { content: " **";
224 font-weight: bold; }
225
226
227/*
Fred Drake859c46a2003-09-04 19:30:15 +0000228 * Some specialization for printed output.
229 */
230@media print {
Fred Drake0739c442003-09-04 22:16:45 +0000231 .online-navigation { display: none; }
Fred Drake859c46a2003-09-04 19:30:15 +0000232 }