summaryrefslogtreecommitdiff
path: root/www/wiki/resources/src/mediawiki.legacy/commonPrint.css
blob: 64870fd8cab345087fc9ba67f3d1006cf58c1691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
/**
 * MediaWiki print style sheet
 * Largely based on work by Gabriel Wicke
 *
 * Originally derived from Plone (https://plone.org/) styles
 * Copyright Alexander Limi
 */

/**
 * Hide all the elements irrelevant for printing
 * Skins however can and should override.
 */
/* General hide-in-print class, please only use sparely */
.noprint,
/* Various content classes, in alphabetical order */
.catlinks,
.magnify,
.mw-cite-backlink,
.mw-jump,
.mw-editsection,
.mw-editsection-like,
.mw-hidden-catlinks,
.mw-indicators,
.mw-redirectedfrom,
.patrollink,
.usermessage,
/* Various content ids, in alphabetical order */
#column-one,
#footer-places,
#jump-to-nav,
#mw-navigation,
#siteNotice,
/* Deprecated, changed in core */
#f-poweredbyico,
#f-copyrightico,
li#about,
li#disclaimer,
li#mobileview,
li#privacy {
	display: none;
}

/**
 * Generic HTML elements
 */
body {
	background: #fff;
	color: #000;
	margin: 0;
	padding: 0;
}

/* Links */
a {
	background: none !important; /* stylelint-disable-line declaration-no-important */
	padding: 0 !important; /* stylelint-disable-line declaration-no-important */
}

a,
a.external,
a.new,
a.stub {
	/* IE 6 & 7 don't understand `inherit` */
	color: #000 !important; /* stylelint-disable-line declaration-no-important */
	text-decoration: none !important; /* stylelint-disable-line declaration-no-important */
	/* Modern browser will apply this, IE 6 & 7 ignore the unknown */
	color: inherit !important; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
	text-decoration: inherit !important; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
}

/* Expand URLs for printing */
.mw-parser-output a.external.text:after,
.mw-parser-output a.external.autonumber:after {
	content: ' (' attr( href ) ')';
	word-break: break-all;
	word-wrap: break-word;
}

/* Expand protocol-relative URLs for printing */
.mw-parser-output a.external.text[ href^='//' ]:after,
.mw-parser-output a.external.autonumber[ href^='//' ]:after {
	content: ' (https:' attr( href ) ')';
}

dt {
	font-weight: bold;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: bold;
	/* Pagination */
	page-break-after: avoid;
	page-break-before: avoid;
}

p {
	margin: 1em 0;
	line-height: 1.2;
	/* Pagination */
	orphans: 3;
	widows: 3;
}

img,
figure,
.wikitable,
.thumb {
	/* Pagination */
	page-break-inside: avoid;
}

img {
	border: 0;
	vertical-align: middle;
}

pre,
.mw-code {
	background: #fff;
	color: #000;
	border: 1pt dashed #000;
	padding: 1em 0;
	font-size: 8pt;
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* Prevent citations and subscripts from interfering with the line-height */
sup,
sub {
	line-height: 1;
}

ul {
	list-style-type: square;
}

/**
 * MediaWiki-specific elements
 */
#globalWrapper {
	width: 100% !important; /* stylelint-disable-line declaration-no-important */
	min-width: 0 !important; /* stylelint-disable-line declaration-no-important */
}

.mw-body {
	background: #fff;
	color: #000;
	border: 0 !important; /* stylelint-disable-line declaration-no-important */
	padding: 0 !important; /* stylelint-disable-line declaration-no-important */
	margin: 0 !important; /* stylelint-disable-line declaration-no-important */
	direction: ltr;
}

#column-content {
	margin: 0 !important; /* stylelint-disable-line declaration-no-important */
}

#column-content .mw-body {
	padding: 1em;
	margin: 0 !important; /* stylelint-disable-line declaration-no-important */
}

.toc {
	background-color: #f9f9f9;
	border: 1pt solid #aaa;
	padding: 5px;
	display: table;
}

/* Separate columns for `.tocnumber` and `.toctext` */
.tocnumber,
.toctext {
	display: table-cell;
}

/* Space between those columns */
.tocnumber {
	padding-left: 0;
	padding-right: 0.5em;
}

/* @noflip */
.mw-content-ltr .tocnumber {
	padding-left: 0;
	padding-right: 0.5em;
}

/* @noflip */
.mw-content-rtl .tocnumber {
	padding-left: 0.5em;
	padding-right: 0;
}

/**
 * Floating divs (and thumbnails)
 */
/* @noflip */
table.floatright,
div.floatright,
div.tright {
	float: right;
	clear: right;
	position: relative;
}

/* @noflip */
table.floatleft,
div.floatleft,
div.tleft {
	float: left;
	clear: left;
	position: relative;
}

/* @noflip */
div.tleft {
	margin: 0.5em 1.4em 1.3em 0;
}

/* @noflip */
div.tright {
	margin: 0.5em 0 1.3em 1.4em;
}

/* @noflip */
table.floatright,
div.floatright {
	margin: 0 0 0.5em 0.5em;
	border: 0;
}

/* @noflip */
table.floatleft,
div.floatleft {
	margin: 0 0.5em 0.5em 0;
	border: 0;
}

div.floatleft p,
div.floatright p {
	font-style: italic;
}

.center {
	text-align: center;
}

/**
 * Thumbnails
 */
div.thumb {
	background-color: transparent;
	width: auto;
}

div.thumb a {
	border-bottom: 0;
}

div.thumbinner {
	background-color: #fff;
	border: 0;
	border-radius: 2px;
	padding: 5px;
	font-size: 10pt;
	color: #666;
	text-align: center;
	/* new block formatting context,
	 * to clear background from floating content  */
	overflow: hidden;
	min-width: 100px;
}

html .thumbcaption {
	text-align: left;
	line-height: 1.4;
	padding: 3px;
}

img.thumbborder {
	border: 1pt solid #ddd;
}

/**
 * Table rendering
 */
/* Compare `table.wikitable` in shared.css */
table.wikitable,
.mw_metadata {
	background: #fff;
	margin: 1em 0;
	border: 1pt solid #aaa;
	border-collapse: collapse;
	font-size: 10pt;
}

table.wikitable > caption,
.mw_metadata caption {
	padding: 5px;
	font-size: 10pt;
}

table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > * > tr > th,
table.wikitable > * > tr > td,
.mw_metadata th,
.mw_metadata td {
	/* Important is required to override any inline styles provided by editors */
	background: #fff !important; /* stylelint-disable-line declaration-no-important */
	/* We need to also set color in case editors applied a light text color */
	color: #000 !important; /* stylelint-disable-line declaration-no-important */
	border: 1pt solid #aaa;
	padding: 0.4em 0.6em;
}

table.wikitable > tr > th,
table.wikitable > * > tr > th,
.mw_metadata th {
	text-align: center;
}

table.listing,
table.listing td {
	border: 1pt solid #000;
	border-collapse: collapse;
}

/**
 * Categories
 */
.catlinks ul {
	display: inline;
	padding: 0;
	list-style: none none;
}

.catlinks li {
	display: inline-block;
	line-height: 1.15;
	margin: 0.1em 0;
	border-left: 1pt solid #aaa;
	padding: 0 0.4em;
}

.catlinks li:first-child {
	border-left: 0;
	padding-left: 0.2em;
}

/**
 * Footer
 */
.printfooter {
	padding: 1em 0;
}

#footer {
	background: #fff;
	color: #000;
	margin-top: 1em;
	border-top: 1pt solid #aaa;
	padding-top: 5px;
	direction: ltr;
}