]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - skins/common/commonPrint.css
MediaWiki 1.17.4
[autoinstallsdev/mediawiki.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 div.tright {
82         float: right;
83         clear: right;
84         margin: 0.5em 0 0.8em 1.4em;
85 }
86 div.tleft {
87         float: left;
88         clear: left;
89         margin: 0.5em 1.4em 0.8em 0;
90 }
91 img.thumbborder {
92         border: 1px solid #dddddd;
93 }
94
95 /* table standards */
96 table.rimage {
97         float: right;
98         width: 1pt;
99         position: relative;
100         margin-left: 1em;
101         margin-bottom: 1em;
102         text-align: center;
103 }
104
105 body {
106         background: White;
107         /*font-size: 11pt !important;*/
108         color: Black;
109         margin: 0;
110         padding: 0;
111 }
112
113 .noprint,
114 div#jump-to-nav,
115 div.top,
116 div#column-one,
117 #colophon,
118 .editsection,
119 .toctoggle,
120 .tochidden,
121 div#f-poweredbyico,
122 div#f-copyrightico,
123 li#viewcount,
124 li#about,
125 li#disclaimer,
126 li#privacy,
127 #footer-places,
128 #mw-hidden-catlinks {
129         /* Hides all the elements irrelevant for printing */
130         display: none;
131 }
132
133 ul {
134         list-style-type: square;
135 }
136
137 #content {
138         background: none;
139         border: none ! important;
140         padding: 0 ! important;
141         margin: 0 ! important;
142 }
143 #footer {
144         background : white;
145         color : black;
146         border-top: 1px solid black;
147 }
148
149 h1, h2, h3, h4, h5, h6 {
150         font-weight: bold;
151 }
152
153 p, .documentDescription {
154         margin: 1em 0 ! important;
155         line-height: 1.2em;
156 }
157
158 .tocindent p {
159         margin: 0 0 0 0 ! important;
160 }
161
162 pre {
163         border: 1pt dashed black;
164         white-space: pre;
165         font-size: 8pt;
166         overflow: auto;
167         padding: 1em 0;
168         background: white;
169         color: black;
170 }
171
172 table.listing,
173 table.listing td {
174         border: 1pt solid black;
175         border-collapse: collapse;
176 }
177
178 a {
179         color: Black !important;
180         background: none !important;
181         padding: 0 !important;
182 }
183
184 a:link, a:visited {
185         color: #520;
186         background: transparent;
187         text-decoration: underline;
188 }
189
190 #content a.external.text:after, #content a.external.autonumber:after {
191         /* Expand URLs for printing */
192         content: " (" attr(href) ") ";
193 }
194
195 #globalWrapper {
196         width: 100% !important;
197         min-width: 0 !important;
198 }
199
200 #content {
201         background: white;
202         color: black;
203 }
204
205 #column-content {
206         margin: 0 !important;
207 }
208
209 #column-content #content {
210         padding: 1em;
211         margin: 0 !important;
212 }
213 /* MSIE/Win doesn't understand 'inherit' */
214 a, a.external, a.new, a.stub {
215         color: black ! important;
216         text-decoration: none ! important;
217 }
218
219 /* Continue ... */
220 a, a.external, a.new, a.stub {
221         color: inherit ! important;
222         text-decoration: inherit ! important;
223 }
224
225 img {
226         border: none;
227         vertical-align: middle;
228 }
229
230 /* math */
231 span.texhtml { font-family: serif; }
232
233 #siteNotice { display: none; }
234
235 /* Galleries (see shared.css for more info) */
236 li.gallerybox {
237         vertical-align: top;
238         background-color: #f9f9f9;
239         border: solid 2px white;
240         display: -moz-inline-box;
241         display: inline-block;
242 }
243
244 ul.gallery, li.gallerybox {
245         zoom: 1;
246         *display: inline;
247 }
248
249 ul.gallery {
250         margin: 2px;
251         padding: 2px;
252         display: block;
253 }
254
255 li.gallerycaption {
256         font-weight: bold;
257         text-align: center;
258         display: block;
259         word-wrap: break-word;
260 }
261
262 li.gallerybox div.thumb {
263         text-align: center;
264         border: 1px solid #ccc;
265         margin: 2px;
266 }
267
268 div.gallerytext {
269         overflow: hidden;
270         font-size: 94%;
271         padding: 2px 4px;
272         word-wrap: break-word;
273 }
274 /*
275 ** Diff rendering
276 */
277 table.diff {
278         background: white;
279 }
280 td.diff-otitle {
281         background: #ffffff;
282 }
283 td.diff-ntitle {
284         background: #ffffff;
285 }
286 td.diff-addedline {
287         background: #ccffcc;
288         font-size: smaller;
289         border: solid 2px black;
290 }
291 td.diff-deletedline {
292         background: #ffffaa;
293         font-size: smaller;
294         border: dotted 2px black;
295 }
296 td.diff-context {
297         background: #eeeeee;
298         font-size: smaller;
299 }
300 .diffchange {
301         color: silver;
302         font-weight: bold;
303         text-decoration: underline;
304 }
305
306 /*
307 ** Table rendering
308 ** As on shared.css but with white background.
309 */
310 table.wikitable {
311         margin: 1em 1em 1em 0;
312         border: 1px #aaa solid;
313         background: white;
314         border-collapse: collapse;
315 }
316 .wikitable th, .wikitable td {
317         border: 1px #aaa solid;
318         padding: 0.2em;
319 }
320 .wikitable th {
321         text-align: center;
322         background: white;
323         font-weight: bold;
324 }
325 .wikitable caption {
326         font-weight: bold;
327 }
328
329 a.sortheader {
330         margin: 0px 0.3em;
331 }
332
333 /* Some pagination options */
334 .wikitable, .thumb, img {
335         page-break-inside: avoid;
336 }
337 h2, h3, h4, h5, h6, h7 {
338         page-break-after: avoid;
339 }
340 p {
341         widows: 3;
342         orphans: 3;
343 }