Merge "Enable users to watch category membership changes #2"
[lhc/web/wiklou.git] / resources / src / mediawiki.legacy / 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
11 /**
12 * Hide all the elements irrelevant for printing
13 */
14 .noprint,
15 div#jump-to-nav,
16 .mw-jump,
17 div.top,
18 div#column-one,
19 .mw-editsection,
20 .mw-editsection-like,
21 .toctoggle,
22 #toc.tochidden,
23 div#f-poweredbyico,
24 div#f-copyrightico,
25 li#about,
26 li#disclaimer,
27 li#mobileview,
28 li#privacy,
29 #footer-places,
30 .mw-hidden-catlinks,
31 .usermessage,
32 .patrollink,
33 .ns-0 .mw-redirectedfrom,
34 #mw-navigation,
35 #siteNotice {
36 display: none;
37 }
38
39 /**
40 * Pagination
41 */
42 .wikitable, .thumb, img {
43 page-break-inside: avoid;
44 }
45
46 h2, h3, h4, h5, h6 {
47 page-break-after: avoid;
48 }
49
50 p {
51 widows: 3;
52 orphans: 3;
53 }
54
55 /**
56 * Generic HTML elements
57 */
58 body {
59 background: white;
60 color: black;
61 margin: 0;
62 padding: 0;
63 }
64
65 ul {
66 list-style-type: square;
67 }
68
69 h1, h2, h3, h4, h5, h6 {
70 font-weight: bold;
71 }
72
73 dt {
74 font-weight: bold;
75 }
76
77 p {
78 margin: 1em 0;
79 line-height: 1.2em;
80 }
81
82 pre, .mw-code {
83 border: 1pt dashed black;
84 white-space: pre;
85 font-size: 8pt;
86 overflow: auto;
87 padding: 1em 0;
88 background: white;
89 color: black;
90 }
91
92 /**
93 * MediaWiki-specific elements
94 */
95 #globalWrapper {
96 width: 100% !important;
97 min-width: 0 !important;
98 }
99
100 .mw-body {
101 background: white;
102 border: none !important;
103 padding: 0 !important;
104 margin: 0 !important;
105 direction: ltr;
106 color: black;
107 }
108
109 #column-content {
110 margin: 0 !important;
111 }
112
113 #column-content .mw-body {
114 padding: 1em;
115 margin: 0 !important;
116 }
117
118 #toc {
119 border: 1px solid #aaaaaa;
120 background-color: #f9f9f9;
121 padding: 5px;
122 display: inline-block;
123 display: table;
124 /* IE7 and earlier */
125 zoom: 1;
126 *display: inline;
127 }
128
129 #footer {
130 background: white;
131 color: black;
132 margin-top: 1em;
133 border-top: 1px solid #AAA;
134 direction: ltr;
135 }
136
137 img {
138 border: none;
139 vertical-align: middle;
140 }
141
142 /* math */
143 span.texhtml {
144 font-family: serif;
145 }
146
147 /**
148 * Links
149 */
150 a {
151 background: none !important;
152 padding: 0 !important;
153 }
154
155 /* Expand URLs for printing */
156 .mw-body a.external.text:after,
157 .mw-body a.external.autonumber:after {
158 content: " (" attr(href) ")";
159 }
160
161 /* Expand protocol-relative URLs for printing */
162 .mw-body a.external.text[href^='//']:after,
163 .mw-body a.external.autonumber[href^='//']:after {
164 content: " (https:" attr(href) ")";
165 }
166
167 /* MSIE/Win doesn't understand 'inherit' */
168 a,
169 a.external,
170 a.new,
171 a.stub {
172 color: black !important;
173 text-decoration: none !important;
174 }
175
176 /* Continue ... */
177 a,
178 a.external,
179 a.new,
180 a.stub {
181 color: inherit !important;
182 text-decoration: inherit !important;
183 }
184
185 /**
186 * Floating divs
187 */
188 /* @noflip */
189 div.floatright {
190 float: right;
191 clear: right;
192 position: relative;
193 margin: 0.5em 0 0.8em 1.4em;
194 }
195
196 div.floatright p {
197 font-style: italic;
198 }
199
200 /* @noflip */
201 div.floatleft {
202 float: left;
203 clear: left;
204 position: relative;
205 margin: 0.5em 1.4em 0.8em 0;
206 }
207
208 div.floatleft p {
209 font-style: italic;
210 }
211
212 div.center {
213 text-align: center;
214 }
215
216 /**
217 * Thumbnails
218 */
219 div.thumb {
220 border: none;
221 width: auto;
222 margin-top: 0.5em;
223 margin-bottom: 0.8em;
224 background-color: transparent;
225 }
226
227 div.thumbinner {
228 border: 1px solid #cccccc;
229 padding: 3px !important;
230 background-color: White;
231 font-size: 94%;
232 text-align: center;
233 overflow: hidden;
234 }
235
236 html .thumbimage {
237 border: 1px solid #cccccc;
238 }
239
240 html .thumbcaption {
241 border: none;
242 text-align: left;
243 line-height: 1.4em;
244 padding: 3px !important;
245 font-size: 94%;
246 }
247
248 div.magnify {
249 display: none;
250 }
251
252 /* @noflip */
253 div.tright {
254 float: right;
255 clear: right;
256 margin: 0.5em 0 0.8em 1.4em;
257 }
258
259 /* @noflip */
260 div.tleft {
261 float: left;
262 clear: left;
263 margin: 0.5em 1.4em 0.8em 0;
264 }
265
266 img.thumbborder {
267 border: 1px solid #dddddd;
268 }
269
270 /**
271 * Table rendering
272 * As on shared.css but with white background.
273 */
274 table.wikitable,
275 table.mw_metadata {
276 margin: 1em 0;
277 border: 1px #aaa solid;
278 background: white;
279 border-collapse: collapse;
280 }
281
282 table.wikitable > tr > th, table.wikitable > tr > td,
283 table.wikitable > * > tr > th, table.wikitable > * > tr > td,
284 .mw_metadata th, .mw_metadata td {
285 border: 1px #aaa solid;
286 padding: 0.2em;
287 }
288
289 table.wikitable > tr > th,
290 table.wikitable > * > tr > th,
291 .mw_metadata th {
292 text-align: center;
293 background: white;
294 font-weight: bold;
295 }
296
297 table.wikitable > caption,
298 .mw_metadata caption {
299 font-weight: bold;
300 }
301
302 table.listing,
303 table.listing td {
304 border: 1pt solid black;
305 border-collapse: collapse;
306 }
307
308 a.sortheader {
309 margin: 0 0.3em;
310 }
311
312 /**
313 * Categories
314 */
315 .catlinks ul {
316 display: inline;
317 margin: 0;
318 padding: 0;
319 list-style: none;
320 list-style-type: none;
321 list-style-image: none;
322 vertical-align: middle !ie;
323 }
324
325 .catlinks li {
326 display: inline-block;
327 line-height: 1.15em;
328 padding: 0 .4em;
329 border-left: 1px solid #AAA;
330 margin: 0.1em 0;
331 zoom: 1;
332 display: inline !ie;
333 }
334
335 .catlinks li:first-child {
336 padding-left: .2em;
337 border-left: none;
338 }
339
340 .printfooter {
341 padding: 1em 0 1em 0;
342 }