(Update for r91646) Use mw-content-ltr/rtl so bullet list shows properly where user...
[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 /* Hides all the elements irrelevant for printing */
132 display: none;
133 }
134
135 ul {
136 list-style-type: square;
137 }
138
139 #content {
140 background: none;
141 border: none ! important;
142 padding: 0 ! important;
143 margin: 0 ! important;
144 direction: ltr;
145 }
146 #footer {
147 background : white;
148 color : black;
149 border-top: 1px solid black;
150 direction: ltr;
151 }
152
153 h1, h2, h3, h4, h5, h6 {
154 font-weight: bold;
155 }
156
157 p, .documentDescription {
158 margin: 1em 0 ! important;
159 line-height: 1.2em;
160 }
161
162 .tocindent p {
163 margin: 0 0 0 0 ! important;
164 }
165
166 pre {
167 border: 1pt dashed black;
168 white-space: pre;
169 font-size: 8pt;
170 overflow: auto;
171 padding: 1em 0;
172 background: white;
173 color: black;
174 }
175
176 table.listing,
177 table.listing td {
178 border: 1pt solid black;
179 border-collapse: collapse;
180 }
181
182 a {
183 color: Black !important;
184 background: none !important;
185 padding: 0 !important;
186 }
187
188 a:link, a:visited {
189 color: #520;
190 background: transparent;
191 text-decoration: underline;
192 }
193
194 #content a.external.text:after, #content a.external.autonumber:after {
195 /* Expand URLs for printing */
196 content: " (" attr(href) ") ";
197 }
198
199 #globalWrapper {
200 width: 100% !important;
201 min-width: 0 !important;
202 }
203
204 #content {
205 background: white;
206 color: black;
207 }
208
209 #column-content {
210 margin: 0 !important;
211 }
212
213 #column-content #content {
214 padding: 1em;
215 margin: 0 !important;
216 }
217 /* MSIE/Win doesn't understand 'inherit' */
218 a, a.external, a.new, a.stub {
219 color: black ! important;
220 text-decoration: none ! important;
221 }
222
223 /* Continue ... */
224 a, a.external, a.new, a.stub {
225 color: inherit ! important;
226 text-decoration: inherit ! important;
227 }
228
229 img {
230 border: none;
231 vertical-align: middle;
232 }
233
234 /* math */
235 span.texhtml { font-family: serif; }
236
237 #siteNotice { display: none; }
238
239 /* Galleries (see shared.css for more info) */
240 li.gallerybox {
241 vertical-align: top;
242 background-color: #f9f9f9;
243 border: solid 2px white;
244 display: -moz-inline-box;
245 display: inline-block;
246 }
247
248 ul.gallery, li.gallerybox {
249 zoom: 1;
250 *display: inline;
251 }
252
253 ul.gallery {
254 margin: 2px;
255 padding: 2px;
256 display: block;
257 }
258
259 li.gallerycaption {
260 font-weight: bold;
261 text-align: center;
262 display: block;
263 word-wrap: break-word;
264 }
265
266 li.gallerybox div.thumb {
267 text-align: center;
268 border: 1px solid #ccc;
269 margin: 2px;
270 }
271
272 div.gallerytext {
273 overflow: hidden;
274 font-size: 94%;
275 padding: 2px 4px;
276 word-wrap: break-word;
277 }
278 /*
279 ** Diff rendering
280 */
281 table.diff {
282 background: white;
283 }
284 td.diff-otitle {
285 background: #ffffff;
286 }
287 td.diff-ntitle {
288 background: #ffffff;
289 }
290 td.diff-addedline {
291 background: #ccffcc;
292 font-size: smaller;
293 border: solid 2px black;
294 }
295 td.diff-deletedline {
296 background: #ffffaa;
297 font-size: smaller;
298 border: dotted 2px black;
299 }
300 td.diff-context {
301 background: #eeeeee;
302 font-size: smaller;
303 }
304 .diffchange {
305 color: silver;
306 font-weight: bold;
307 text-decoration: underline;
308 }
309
310 /*
311 ** Table rendering
312 ** As on shared.css but with white background.
313 */
314 table.wikitable {
315 margin: 1em 1em 1em 0;
316 border: 1px #aaa solid;
317 background: white;
318 border-collapse: collapse;
319 }
320 .wikitable th, .wikitable td {
321 border: 1px #aaa solid;
322 padding: 0.2em;
323 }
324 .wikitable th {
325 text-align: center;
326 background: white;
327 font-weight: bold;
328 }
329 .wikitable caption {
330 font-weight: bold;
331 }
332
333 a.sortheader {
334 margin: 0px 0.3em;
335 }
336
337 /* Some pagination options */
338 .wikitable, .thumb, img {
339 page-break-inside: avoid;
340 }
341 h2, h3, h4, h5, h6, h7 {
342 page-break-after: avoid;
343 }
344 p {
345 widows: 3;
346 orphans: 3;
347 }