Merge "Convert file delete to use OOUI"
[lhc/web/wiklou.git] / resources / src / mediawiki.legacy / oldshared.css
1 /**
2 * oldshared.css
3 * This file contains CSS settings common to Wikistandard, Nostalgia and
4 * CologneBlue, the old pre-Monobook skins
5 */
6
7 /* For clarity, explicitly state some recommendations from
8 * https://www.w3.org/TR/CSS21/sample.html to make sure the editsection links scale right
9 */
10
11 h1 {
12 font-size: 2em;
13 }
14
15 h2 {
16 font-size: 1.5em;
17 }
18
19 h3 {
20 font-size: 1.17em;
21 }
22
23 h4 {
24 font-size: 1.11em;
25 }
26
27 h5 {
28 font-size: 1.05em;
29 }
30
31 h6 {
32 font-size: 1em;
33 }
34
35 h1,
36 h2,
37 h3,
38 h4,
39 h5,
40 h6 {
41 font-weight: bolder;
42 }
43
44 /* Now the custom parts */
45
46 #footer {
47 clear: both;
48 }
49
50 /* images */
51 /* @noflip */
52 div.floatright {
53 float: right;
54 clear: right;
55 margin: 0 0 1em 1em;
56 }
57
58 /* @noflip */
59 div.floatright p {
60 font-style: italic;
61 }
62
63 /* @noflip */
64 div.floatleft {
65 float: left;
66 clear: left;
67 margin: 0.3em 0.5em 0.5em 0;
68 }
69
70 /* @noflip */
71 div.floatleft p {
72 font-style: italic;
73 }
74
75 /* table standards */
76 table.rimage {
77 float: right;
78 margin-left: 1em;
79 margin-bottom: 1em;
80 text-align: center;
81 font-size: smaller;
82 }
83
84 /* thumbnails */
85 div.thumb {
86 margin-bottom: 0.5em;
87 border-style: solid;
88 border-color: #fff;
89 width: auto;
90 }
91
92 div.thumbinner {
93 border: 1px solid #ccc;
94 padding: 3px;
95 background-color: #f9f9f9;
96 font-size: 94%;
97 text-align: center;
98 /* new block formatting context,
99 * to clear background from floating content */
100 overflow: hidden;
101 }
102
103 html .thumbimage {
104 border: 1px solid #ccc;
105 }
106
107 html .thumbcaption {
108 border: 0;
109 line-height: 1.4em;
110 padding: 3px;
111 font-size: 94%;
112 text-align: left;
113 }
114
115 div.magnify {
116 float: right;
117 margin-left: 3px;
118 }
119
120 div.magnify a {
121 display: block;
122 /* Hide the text… */
123 text-indent: 15px;
124 white-space: nowrap;
125 overflow: hidden;
126 /* …and replace it with the image */
127 width: 15px;
128 height: 11px;
129 /* Use same SVG support hack as mediawiki.legacy's shared.css */
130 background: url( images/magnify-clip-ltr.png ) center center no-repeat;
131 /* @embed */
132 background-image: linear-gradient( transparent, transparent ), url( images/magnify-clip-ltr.svg );
133 /* Don't annoy people who copy-paste everything too much */
134 -moz-user-select: none;
135 -webkit-user-select: none;
136 -ms-user-select: none;
137 user-select: none;
138 }
139
140 /* @noflip */
141 div.tright {
142 clear: right;
143 float: right;
144 border-width: 0.5em 0 0.8em 1.4em;
145 }
146
147 /* @noflip */
148 div.tleft {
149 float: left;
150 clear: left;
151 margin-right: 0.5em;
152 border-width: 0.5em 1.4em 0.8em 0;
153 }
154
155 img.thumbborder {
156 border: 1px solid #ddd;
157 }
158
159 /* Page history styling */
160 /* the auto-generated edit comments */
161 .autocomment {
162 color: #4b4b4b;
163 }
164
165 img {
166 border: 0;
167 }
168
169 .toc {
170 border: 1px solid #bba;
171 background-color: #f7f8ff;
172 padding: 7px;
173 font-size: 95%;
174 text-align: center;
175 display: inline-block;
176 display: table;
177
178 /* IE7 and earlier */
179 zoom: 1;
180 *display: inline; /* stylelint-disable-line declaration-block-no-duplicate-properties */
181 }
182
183 /* CSS for backwards-compatibility with cached page renders and creative uses in wikitext */
184 table.toc {
185 border-collapse: collapse;
186 }
187
188 /* Remove additional paddings inside table-cells that are not present in <div>s */
189 table.toc td {
190 padding: 0;
191 }
192
193 .toc h2 {
194 display: inline;
195 border: 0;
196 padding: 0;
197 font-size: 100%;
198 font-weight: bold;
199 }
200
201 .toc ul {
202 list-style-type: none;
203 list-style-image: none;
204 padding: 0;
205 text-align: left;
206 }
207
208 .toc ul ul {
209 margin: 0 0 0 2em;
210 }
211
212 .error {
213 color: #f00;
214 font-size: larger;
215 }
216
217 /* preference page with js-genrated toc */
218 /* TODO: Delete #preftoc when Special:Preferences's non-OOUI mode is disabled */
219 #preftoc {
220 float: left;
221 margin: 1em 1em 1em 1em;
222 width: 13em;
223 }
224
225 #preftoc li {
226 border: 1px solid #fff;
227 }
228
229 #preftoc li.selected {
230 background-color: #f9f9f9;
231 border: 1px dashed #aaa;
232 }
233
234 #preftoc a,
235 #preftoc a:active {
236 display: block;
237 color: #005189;
238 }
239
240 .mw-prefs-buttons {
241 clear: left;
242 float: left;
243 margin-top: 1em;
244 }
245
246 div.htmlform-tip {
247 font-size: 94%;
248 margin-top: 0.4em;
249 color: #666;
250 }
251
252 /* emulate center */
253 .center {
254 width: 100%;
255 text-align: center;
256 }
257
258 *.center * {
259 margin-left: auto;
260 margin-right: auto;
261 }
262
263 /* small for tables and similar */
264 .small {
265 font-size: 94%;
266 }
267
268 table.small {
269 font-size: 100%;
270 }
271
272 /* use this instead of .toc for page content */
273 .toccolours {
274 border: 1px solid #aaa;
275 background-color: #f9f9f9;
276 padding: 5px;
277 font-size: 95%;
278 }
279
280 #siteNotice {
281 border: 1px solid #aaa;
282 padding-left: 0.5em;
283 padding-right: 0.5em;
284 }
285
286 .sharedUploadNotice {
287 font-style: italic;
288 }
289
290 span.unpatrolled {
291 font-weight: bold;
292 color: #f00;
293 }
294
295 div.gallerybox {
296 width: 150px;
297 }
298
299 span.comment {
300 font-style: italic;
301 }
302
303 .previewnote {
304 text-align: center;
305 color: #c00;
306 }
307
308 .editExternally {
309 border: 1px solid #808080;
310 background: #fff;
311 padding: 3px;
312 margin-top: 0.5em;
313 float: left;
314 font-size: small;
315 text-align: center;
316 }
317
318 .editExternallyHelp {
319 font-style: italic;
320 color: #808080;
321 }
322
323 li span.deleted {
324 text-decoration: line-through;
325 color: #888;
326 font-style: italic;
327 }
328
329 /* Classes for Exif data display */
330 table.mw_metadata {
331 margin-left: 0.5em;
332 border: 0;
333 border-collapse: collapse;
334 }
335
336 table.mw_metadata caption {
337 font-weight: bold;
338 }
339
340 table.mw_metadata td,
341 table.mw_metadata th {
342 border: 1px solid #aaa;
343 padding-left: 4px;
344 padding-right: 4px;
345 }
346
347 table.mw_metadata th {
348 background-color: #f9f9f9;
349 font-weight: normal;
350 }
351
352 table.mw_metadata td {
353 background-color: #fcfcfc;
354 padding-top: 0.1em;
355 padding-bottom: 0.1em;
356 }
357
358 table.mw_metadata td.spacer {
359 background: inherit;
360 border-width: 0 1px;
361 }
362
363 .visualClear {
364 clear: both;
365 }
366
367 /* Allmessages table */
368 #allmessagestable th {
369 background-color: #b2b2ff;
370 }
371
372 #allmessagestable tr.orig {
373 background-color: #ffe2e2;
374 }
375
376 #allmessagestable tr.new {
377 background-color: #e2ffe2;
378 }
379
380 #allmessagestable tr.def {
381 background-color: #f0f0ff;
382 }
383
384 #jump-to-nav {
385 display: none;
386 }
387
388 div.multipageimagenavbox {
389 border: 1px solid #c0c0c0;
390 padding: 4px;
391 margin: 1em;
392 background: #f0f0f0;
393 }
394
395 div.multipageimagenavbox div.thumb {
396 border: 0;
397 margin-left: 2em;
398 margin-right: 2em;
399 }
400
401 div.multipageimagenavbox hr {
402 margin: 6px;
403 }
404
405 table.multipageimage td {
406 text-align: center;
407 }
408
409 .templatesUsed {
410 margin-top: 1em;
411 }
412
413 .MediaTransformError {
414 border: thin solid #777;
415 background-color: #ccc;
416 padding: 0.1em;
417 }
418
419 .MediaTransformError td {
420 text-align: center;
421 vertical-align: middle;
422 font-size: 90%;
423 }
424
425 form#specialpages {
426 display: inline;
427 }
428
429 body {
430 direction: ltr;
431 unicode-bidi: embed;
432 background-color: #ffffec;
433 }
434
435 body.ns-0 {
436 background-color: #fff;
437 }
438
439 /** RTL specific CSS starts here **/
440
441 /**
442 * Lists:
443 * The following lines don't have a visible effect on non-Gecko browsers
444 * They fix a problem with Gecko browsers rendering lists to the right of
445 * left-floated objects in an RTL layout.
446 */
447 /* @noflip */
448 html > body.rtl div#article ul {
449 display: table;
450 }
451
452 /* @noflip */
453 html > body.rtl .mw-body ul#filetoc {
454 display: block;
455 }
456
457 /** RTL specific CSS ends here **/