Remove the pseudo TOC, part of file descripton pages, from printing. Useless and...
[lhc/web/wiklou.git] / skins / common / commonPrint.css
1 /*
2 ** MediaWiki Print style sheet for CSS2-capable browsers.
3 ** Copyright Gabriel Wicke, http://www.aulinx.de/
4 **
5 ** Derived from the plone (http://plone.org/) styles
6 ** Copyright Alexander Limi
7 */
8
9 /* Thanks to A List Apart (http://alistapart.com/) for useful extras */
10 a.stub,
11 a.new {
12 color: #ba0000;
13 text-decoration: none;
14 }
15
16 #toc {
17 border: 1px solid #aaaaaa;
18 background-color: #f9f9f9;
19 padding: 5px;
20 }
21 .tocindent {
22 margin-left: 2em;
23 }
24 .tocline {
25 margin-bottom: 0px;
26 }
27
28 /* images */
29 div.floatright {
30 float: right;
31 clear: right;
32 position: relative;
33 margin: 0.5em 0 0.8em 1.4em;
34 }
35 div.floatright p {
36 font-style: italic;
37 }
38 div.floatleft {
39 float: left;
40 clear: left;
41 position: relative;
42 margin: 0.5em 1.4em 0.8em 0;
43 }
44 div.floatleft p {
45 font-style: italic;
46 }
47 div.center {
48 text-align: center;
49 }
50
51 /* thumbnails */
52 div.thumb {
53 border: none;
54 width: auto;
55 margin-top: 0.5em;
56 margin-bottom: 0.8em;
57 background-color: transparent;
58 }
59 div.thumbinner {
60 border:1px solid #cccccc;
61 padding: 3px !important;
62 background-color: White;
63 font-size: 94%;
64 text-align: center;
65 overflow: hidden;
66 }
67 html .thumbimage {
68 border: 1px solid #cccccc;
69 }
70 html .thumbcaption {
71 border: none;
72 text-align: left;
73 line-height: 1.4em;
74 padding: 3px !important;
75 font-size: 94%;
76 }
77
78 div.magnify {
79 display: none;
80 }
81 /* @noflip */
82 div.tright {
83 float: right;
84 clear: right;
85 margin: 0.5em 0 0.8em 1.4em;
86 }
87 /* @noflip */
88 div.tleft {
89 float: left;
90 clear: left;
91 margin: 0.5em 1.4em 0.8em 0;
92 }
93 img.thumbborder {
94 border: 1px solid #dddddd;
95 }
96
97 /* table standards */
98 table.rimage {
99 float: right;
100 width: 1pt;
101 position: relative;
102 margin-left: 1em;
103 margin-bottom: 1em;
104 text-align: center;
105 }
106
107 body {
108 background: White;
109 /*font-size: 11pt !important;*/
110 color: Black;
111 margin: 0;
112 padding: 0;
113 }
114
115 .noprint,
116 div#jump-to-nav,
117 div.top,
118 div#column-one,
119 #colophon,
120 .editsection,
121 .toctoggle,
122 .tochidden,
123 div#f-poweredbyico,
124 div#f-copyrightico,
125 li#viewcount,
126 li#about,
127 li#disclaimer,
128 li#privacy,
129 #footer-places,
130 .mw-hidden-catlinks,
131 tr.mw-metadata-show-hide-extended,
132 span.mw-filepage-other-resolutions,
133 ul#filetoc {
134 /* Hides all the elements irrelevant for printing */
135 display: none;
136 }
137
138 ul {
139 list-style-type: square;
140 }
141
142 #content {
143 background: none;
144 border: none ! important;
145 padding: 0 ! important;
146 margin: 0 ! important;
147 direction: ltr;
148 }
149 #footer {
150 background : white;
151 color : black;
152 margin-top: 1em;
153 border-top: 1px solid #AAA;
154 direction: ltr;
155 }
156
157 h1, h2, h3, h4, h5, h6 {
158 font-weight: bold;
159 }
160
161 p, .documentDescription {
162 margin: 1em 0 ! important;
163 line-height: 1.2em;
164 }
165
166 .tocindent p {
167 margin: 0 0 0 0 ! important;
168 }
169
170 pre {
171 border: 1pt dashed black;
172 white-space: pre;
173 font-size: 8pt;
174 overflow: auto;
175 padding: 1em 0;
176 background: white;
177 color: black;
178 }
179
180 table.listing,
181 table.listing td {
182 border: 1pt solid black;
183 border-collapse: collapse;
184 }
185
186 a {
187 color: Black !important;
188 background: none !important;
189 padding: 0 !important;
190 }
191
192 a:link, a:visited {
193 color: #520;
194 background: transparent;
195 text-decoration: underline;
196 }
197
198 #content a.external.text:after, #content a.external.autonumber:after {
199 /* Expand URLs for printing */
200 content: " (" attr(href) ") ";
201 }
202
203 #globalWrapper {
204 width: 100% !important;
205 min-width: 0 !important;
206 }
207
208 #content {
209 background: white;
210 color: black;
211 }
212
213 #column-content {
214 margin: 0 !important;
215 }
216
217 #column-content #content {
218 padding: 1em;
219 margin: 0 !important;
220 }
221 /* MSIE/Win doesn't understand 'inherit' */
222 a, a.external, a.new, a.stub {
223 color: black ! important;
224 text-decoration: none ! important;
225 }
226
227 /* Continue ... */
228 a, a.external, a.new, a.stub {
229 color: inherit ! important;
230 text-decoration: inherit ! important;
231 }
232
233 img {
234 border: none;
235 vertical-align: middle;
236 }
237
238 /* math */
239 span.texhtml { font-family: serif; }
240
241 #siteNotice { display: none; }
242
243 /* Galleries (see shared.css for more info) */
244 li.gallerybox {
245 vertical-align: top;
246 border: solid 2px white;
247 display: -moz-inline-box;
248 display: inline-block;
249 }
250
251 ul.gallery, li.gallerybox {
252 zoom: 1;
253 *display: inline;
254 }
255
256 ul.gallery {
257 margin: 2px;
258 padding: 2px;
259 display: block;
260 }
261
262 li.gallerycaption {
263 font-weight: bold;
264 text-align: center;
265 display: block;
266 word-wrap: break-word;
267 }
268
269 li.gallerybox div.thumb {
270 text-align: center;
271 border: 1px solid #ccc;
272 margin: 2px;
273 }
274
275 div.gallerytext {
276 overflow: hidden;
277 font-size: 94%;
278 padding: 2px 4px;
279 word-wrap: break-word;
280 }
281 /*
282 ** Diff rendering
283 */
284 table.diff {
285 background: white;
286 }
287 td.diff-otitle {
288 background: #ffffff;
289 }
290 td.diff-ntitle {
291 background: #ffffff;
292 }
293 td.diff-addedline {
294 background: #ccffcc;
295 font-size: smaller;
296 border: solid 2px black;
297 }
298 td.diff-deletedline {
299 background: #ffffaa;
300 font-size: smaller;
301 border: dotted 2px black;
302 }
303 td.diff-context {
304 background: #eeeeee;
305 font-size: smaller;
306 }
307 .diffchange {
308 color: silver;
309 font-weight: bold;
310 text-decoration: underline;
311 }
312
313 /*
314 ** Table rendering
315 ** As on shared.css but with white background.
316 */
317 table.wikitable,
318 table.mw_metadata {
319 margin: 1em 1em 1em 0;
320 border: 1px #aaa solid;
321 background: white;
322 border-collapse: collapse;
323 }
324 .wikitable th, .wikitable td,
325 .mw_metadata th, .mw_metadata td {
326 border: 1px #aaa solid;
327 padding: 0.2em;
328 }
329 .wikitable th,
330 .mw_metadata th {
331 text-align: center;
332 background: white;
333 font-weight: bold;
334 }
335 .wikitable caption,
336 .mw_metadata caption {
337 font-weight: bold;
338 }
339
340 a.sortheader {
341 margin: 0px 0.3em;
342 }
343
344 /* Some pagination options */
345 .wikitable, .thumb, img {
346 page-break-inside: avoid;
347 }
348 h2, h3, h4, h5, h6, h7 {
349 page-break-after: avoid;
350 }
351 p {
352 widows: 3;
353 orphans: 3;
354 }
355
356 /**
357 * Categories
358 */
359 .catlinks ul {
360 display: inline;
361 margin: 0px;
362 list-style: none;
363 list-style-type: none;
364 list-style-image: none;
365 vertical-align: middle !ie;
366 }
367
368 .catlinks li {
369 display: inline-block;
370 line-height: 1.15em;
371 padding: 0 .4em;
372 border-left: 1px solid #AAA;
373 margin: 0.1em 0;
374 zoom: 1;
375 display: inline !ie;
376 }
377
378 .catlinks li:first-child {
379 padding-left: .2em;
380 border-left: none;
381 }