Merge "DatabaseUpdater: Stop inserting junk into 'updatelog' every time the updater...
[lhc/web/wiklou.git] / resources / src / mediawiki.legacy / shared.css
1 /**
2 * CSS in this file is used by *all* skins (that have any CSS at all). Be
3 * careful what you put in here, since what looks good in one skin may not in
4 * another, but don't ignore the poor pre-Monobook users either.
5 *
6 * NOTE: The images which are referenced in this file are no longer in use in
7 * essential interface components. They should NOT be embedded, because that
8 * optimizes for the uncommon case at the cost of bloating the size of render-
9 * blocking CSS common to all pages.
10 */
11
12 /* GENERAL CLASSES FOR DIRECTIONALITY SUPPORT */
13
14 /**
15 * These classes should be used for text depending on the content direction.
16 * Content stuff like editsection, ul/ol and TOC depend on this.
17 */
18 .mw-content-ltr {
19 /* @noflip */
20 direction: ltr;
21 }
22
23 .mw-content-rtl {
24 /* @noflip */
25 direction: rtl;
26 }
27
28 /* Most input fields should be in site direction */
29 .sitedir-ltr textarea,
30 .sitedir-ltr input {
31 /* @noflip */
32 direction: ltr;
33 }
34
35 .sitedir-rtl textarea,
36 .sitedir-rtl input {
37 /* @noflip */
38 direction: rtl;
39 }
40
41 .mw-userlink {
42 unicode-bidi: embed;
43 }
44
45 /* User-Agent styles for new HTML5 elements */
46 mark {
47 background-color: #ff0;
48 color: #000;
49 }
50
51 /* Helper for wbr element on IE 8+; in HTML5, but not supported by default as of IE 11. */
52 /* Note canonical HTML5 styles recommend "content: \u200B", but this doesn't work as of IE 11. */
53 wbr {
54 display: inline-block;
55 }
56
57 /* Input types that should follow user direction, like buttons */
58 /* TODO: What about buttons in wikipage content ? */
59 input[type="submit"],
60 input[type="button"],
61 input[type="reset"],
62 input[type="file"] {
63 direction: ltr;
64 }
65
66 /* Override default values */
67 textarea[dir="ltr"],
68 input[dir="ltr"] {
69 /* @noflip */
70 direction: ltr;
71 }
72
73 textarea[dir="rtl"],
74 input[dir="rtl"] {
75 /* @noflip */
76 direction: rtl;
77 }
78
79 /* Default style for semantic tags */
80 abbr[title],
81 .explain[title] {
82 border-bottom: 1px dotted;
83 cursor: help;
84 }
85
86 @supports (text-decoration: underline dotted) {
87 abbr[title],
88 .explain[title] {
89 border-bottom: none;
90 text-decoration: underline dotted;
91 }
92 }
93
94 /* Comment portions of RC entries */
95 span.comment {
96 font-style: italic;
97 unicode-bidi: -moz-isolate;
98 unicode-bidi: isolate;
99 }
100
101 /* Stop floats from intruding into edit area in previews */
102 #editform,
103 #toolbar,
104 #wpTextbox1 {
105 clear: both;
106 }
107
108 /* Edit font preference */
109 /* TODO: for 'default' on non-textareas we could compute the default font of textarea in the client */
110 .mw-editfont-default:not( textarea ) {
111 font-family: monospace;
112 }
113
114 /* Keep this rule separate from the :not rule above so it still works in older browsers */
115 .mw-editfont-monospace {
116 font-family: monospace;
117 }
118
119 .mw-editfont-sans-serif {
120 font-family: sans-serif;
121 }
122
123 .mw-editfont-serif {
124 font-family: serif;
125 }
126
127 /**
128 * rev_deleted stuff
129 */
130 li span.deleted,
131 span.history-deleted {
132 text-decoration: line-through;
133 color: #888;
134 font-style: italic;
135 }
136
137 /**
138 * Patrol stuff
139 */
140 .not-patrolled {
141 background-color: #ffa;
142 }
143
144 .unpatrolled {
145 font-weight: bold;
146 color: #f00;
147 }
148
149 div.patrollink {
150 font-size: 75%;
151 text-align: right;
152 }
153
154 /**
155 * Forms
156 */
157 td.mw-label {
158 text-align: right;
159 }
160
161 td.mw-input {
162 text-align: left;
163 }
164
165 td.mw-submit {
166 text-align: left;
167 }
168
169 td.mw-label {
170 vertical-align: middle;
171 }
172
173 td.mw-submit {
174 white-space: nowrap;
175 }
176
177 input#wpSummary {
178 width: 80%;
179 margin-bottom: 1em;
180 }
181
182 .mw-input-with-label {
183 white-space: nowrap;
184 display: inline-block;
185 }
186
187 /**
188 * Image captions.
189 *
190 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
191 */
192
193 /* @noflip */
194 .mw-content-ltr .thumbcaption {
195 text-align: left;
196 }
197
198 /* @noflip */
199 .mw-content-ltr .magnify {
200 float: right;
201 }
202
203 /* @noflip */
204 .mw-content-rtl .thumbcaption {
205 text-align: right;
206 }
207
208 /* @noflip */
209 .mw-content-rtl .magnify {
210 float: left;
211 }
212
213 /**
214 * Categories
215 */
216 #catlinks {
217 /**
218 * Overrides text justification (user preference)
219 * See bug 31990
220 */
221 text-align: left;
222 }
223
224 .catlinks ul {
225 display: inline;
226 margin: 0;
227 padding: 0;
228 list-style: none;
229 list-style-type: none;
230 list-style-image: none;
231 vertical-align: middle !ie;
232 }
233
234 .catlinks li {
235 display: inline-block;
236 line-height: 1.25em;
237 border-left: 1px solid #aaa;
238 margin: 0.125em 0;
239 padding: 0 0.5em;
240 zoom: 1;
241 display: inline !ie;
242 }
243
244 .catlinks li:first-child {
245 padding-left: 0.25em;
246 border-left: none;
247 }
248
249 /* (bug 5346) make category redirects italic */
250 .catlinks li a.mw-redirect {
251 font-style: italic;
252 }
253
254 /**
255 * Hidden categories
256 */
257 .mw-hidden-cats-hidden {
258 display: none;
259 }
260
261 .catlinks-allhidden {
262 display: none;
263 }
264
265 /**
266 * Convenience links to edit delete and protect reasons
267 */
268 p.mw-protect-editreasons,
269 p.mw-filedelete-editreasons,
270 p.mw-delete-editreasons {
271 font-size: 90%;
272 text-align: right;
273 }
274
275 /* The auto-generated edit comments */
276 .autocomment {
277 color: #808080;
278 }
279
280 /** Generic minor/bot/newpage styling (recent changes) */
281 .newpage,
282 .minoredit,
283 .botedit {
284 font-weight: bold;
285 }
286
287 /**
288 * Recreating deleted page warning
289 * Reupload file warning
290 * Page protection warning
291 * incl. log entries for these warnings
292 */
293 div.mw-warning-with-logexcerpt {
294 padding: 3px;
295 margin-bottom: 3px;
296 border: 2px solid #2f6fab;
297 clear: both;
298 }
299
300 div.mw-warning-with-logexcerpt ul li {
301 font-size: 90%;
302 }
303
304 /* (show/hide) revision deletion links */
305 span.mw-revdelundel-link,
306 strong.mw-revdelundel-link {
307 font-size: 90%;
308 }
309
310 span.mw-revdelundel-hidden,
311 input.mw-revdelundel-hidden {
312 visibility: hidden;
313 }
314
315 td.mw-revdel-checkbox,
316 th.mw-revdel-checkbox {
317 padding-right: 10px;
318 text-align: center;
319 }
320
321 /* red links; see bug 36276 */
322 a.new {
323 color: #ba0000;
324 }
325
326 /* Plainlinks - this can be used to switch
327 * off special external link styling */
328 .plainlinks a.external {
329 background: none !important;
330 padding: 0 !important;
331 }
332
333 /* External URLs should always be treated as LTR (bug 4330) */
334 /* @noflip */ .rtl a.external.free,
335 .rtl a.external.autonumber {
336 direction: ltr;
337 unicode-bidi: embed;
338 }
339
340 /**
341 * wikitable class for skinning normal tables
342 * keep in sync with commonPrint.css
343 */
344 table.wikitable {
345 margin: 1em 0;
346 background-color: #f8f9fa;
347 border: 1px solid #a2a9b1;
348 border-collapse: collapse;
349 color: #000;
350 }
351
352 table.wikitable > tr > th,
353 table.wikitable > tr > td,
354 table.wikitable > * > tr > th,
355 table.wikitable > * > tr > td {
356 border: 1px solid #aaa;
357 padding: 0.2em 0.4em;
358 }
359
360 table.wikitable > tr > th,
361 table.wikitable > * > tr > th {
362 background-color: #eaecf0;
363 text-align: center;
364 }
365
366 table.wikitable > caption {
367 font-weight: bold;
368 }
369
370 /* success and error messages */
371 .error,
372 .warning,
373 .success {
374 font-size: larger;
375 }
376
377 .error {
378 color: #c00;
379 }
380
381 .warning {
382 color: #705000;
383 }
384
385 .success {
386 color: #009000;
387 }
388
389 .errorbox,
390 .warningbox,
391 .successbox {
392 border: 1px solid;
393 padding: .5em 1em;
394 margin-bottom: 1em;
395 display: inline-block;
396 zoom: 1;
397 *display: inline;
398 }
399
400 .errorbox h2,
401 .warningbox h2,
402 .successbox h2 {
403 font-size: 1em;
404 color: inherit;
405 font-weight: bold;
406 display: inline;
407 margin: 0 .5em 0 0;
408 border: none;
409 }
410
411 .errorbox {
412 color: #c00;
413 border-color: #fac5c5;
414 background-color: #fae3e3;
415 }
416
417 .warningbox {
418 color: #705000;
419 border-color: #fde29b;
420 background-color: #fdf1d1;
421 }
422
423 .successbox {
424 color: #008000;
425 border-color: #b7fdb5;
426 background-color: #e1fddf;
427 }
428
429 /* general info/warning box for SP */
430 .mw-infobox {
431 border: 2px solid #ff7f00;
432 margin: 0.5em;
433 clear: left;
434 overflow: hidden;
435 }
436
437 .mw-infobox-left {
438 margin: 7px;
439 float: left;
440 width: 35px;
441 }
442
443 .mw-infobox-right {
444 margin: 0.5em 0.5em 0.5em 49px;
445 }
446
447 /* Note on preview page */
448 .previewnote {
449 color: #c00;
450 margin-bottom: 1em;
451 }
452
453 .previewnote p {
454 text-indent: 3em;
455 margin: 0.8em 0;
456 }
457
458 .visualClear {
459 clear: both;
460 }
461
462 /**
463 * Data table style
464 *
465 * Transparent table with suddle borders
466 * and blue row-highlighting.
467 */
468 .mw-datatable {
469 border-collapse: collapse;
470 }
471
472 .mw-datatable,
473 .mw-datatable td,
474 .mw-datatable th {
475 border: 1px solid #aaa;
476 padding: 0 0.15em 0 0.15em;
477 }
478
479 .mw-datatable th {
480 background-color: #ddf;
481 }
482
483 .mw-datatable td {
484 background-color: #fff;
485 }
486
487 .mw-datatable tr:hover td {
488 background-color: #eef;
489 }
490
491 /* Correct directionality when page dir is different from site/user dir */
492 .mw-content-ltr ul,
493 .mw-content-rtl .mw-content-ltr ul {
494 /* @noflip */
495 margin: 0.3em 0 0 1.6em;
496 padding: 0;
497 }
498
499 .mw-content-rtl ul,
500 .mw-content-ltr .mw-content-rtl ul {
501 /* @noflip */
502 margin: 0.3em 1.6em 0 0;
503 padding: 0;
504 }
505
506 .mw-content-ltr ol,
507 .mw-content-rtl .mw-content-ltr ol {
508 /* @noflip */
509 margin: 0.3em 0 0 3.2em;
510 padding: 0;
511 }
512
513 .mw-content-rtl ol,
514 .mw-content-ltr .mw-content-rtl ol {
515 /* @noflip */
516 margin: 0.3em 3.2em 0 0;
517 padding: 0;
518 }
519
520 /* @noflip */
521 .mw-content-ltr dd,
522 .mw-content-rtl .mw-content-ltr dd {
523 margin-left: 1.6em;
524 margin-right: 0;
525 }
526
527 /* @noflip */
528 .mw-content-rtl dd,
529 .mw-content-ltr .mw-content-rtl dd {
530 margin-right: 1.6em;
531 margin-left: 0;
532 }
533
534 .mw-ajax-loader {
535 background-image: url( images/ajax-loader.gif );
536 background-position: center center;
537 background-repeat: no-repeat;
538 padding: 16px;
539 position: relative;
540 top: -16px;
541 }
542
543 .mw-small-spinner {
544 padding: 10px !important;
545 margin-right: 0.6em;
546 background-image: url( images/spinner.gif );
547 background-position: center center;
548 background-repeat: no-repeat;
549 }
550
551 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
552 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
553 h1:lang(anp),
554 h1:lang(as),
555 h1:lang(bh), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
556 h1:lang(bho),
557 h1:lang(bn),
558 h1:lang(gu),
559 h1:lang(hi),
560 h1:lang(kn),
561 h1:lang(ks),
562 h1:lang(ml),
563 h1:lang(mr),
564 h1:lang(my),
565 h1:lang(mai),
566 h1:lang(ne),
567 h1:lang(new),
568 h1:lang(or),
569 h1:lang(pa),
570 h1:lang(pi),
571 h1:lang(sa),
572 h1:lang(ta),
573 h1:lang(te) {
574 line-height: 1.6em !important;
575 }
576
577 h2:lang(anp), h3:lang(anp), h4:lang(anp), h5:lang(anp), h6:lang(anp),
578 h2:lang(as), h3:lang(as), h4:lang(as), h5:lang(as), h6:lang(as),
579 h2:lang(bho), h3:lang(bho), h4:lang(bho), h5:lang(bho), h6:lang(bho),
580 h2:lang(bh), h3:lang(bh), h4:lang(bh), h5:lang(bh), h6:lang(bh),
581 h2:lang(bn), h3:lang(bn), h4:lang(bn), h5:lang(bn), h6:lang(bn),
582 h2:lang(gu), h3:lang(gu), h4:lang(gu), h5:lang(gu), h6:lang(gu),
583 h2:lang(hi), h3:lang(hi), h4:lang(hi), h5:lang(hi), h6:lang(hi),
584 h2:lang(kn), h3:lang(kn), h4:lang(kn), h5:lang(kn), h6:lang(kn),
585 h2:lang(ks), h3:lang(ks), h4:lang(ks), h5:lang(ks), h6:lang(ks),
586 h2:lang(ml), h3:lang(ml), h4:lang(ml), h5:lang(ml), h6:lang(ml),
587 h2:lang(mr), h3:lang(mr), h4:lang(mr), h5:lang(mr), h6:lang(mr),
588 h2:lang(my), h3:lang(my), h4:lang(my), h5:lang(my), h6:lang(my),
589 h2:lang(mai), h3:lang(mai), h4:lang(mai), h5:lang(mai), h6:lang(mai),
590 h2:lang(ne), h3:lang(ne), h4:lang(ne), h5:lang(ne), h6:lang(ne),
591 h2:lang(new), h3:lang(new), h4:lang(new), h5:lang(new), h6:lang(new),
592 h2:lang(or), h3:lang(or), h4:lang(or), h5:lang(or), h6:lang(or),
593 h2:lang(pa), h3:lang(pa), h4:lang(pa), h5:lang(pa), h6:lang(pa),
594 h2:lang(pi), h3:lang(pi), h4:lang(pi), h5:lang(pi), h6:lang(pi),
595 h2:lang(sa), h3:lang(sa), h4:lang(sa), h5:lang(sa), h6:lang(sa),
596 h2:lang(ta), h3:lang(ta), h4:lang(ta), h5:lang(ta), h6:lang(ta),
597 h2:lang(te), h3:lang(te), h4:lang(te), h5:lang(te), h6:lang(te) {
598 line-height: 1.2em;
599 }
600
601 /* Localised ordered list numbering for some languages */
602 ol:lang(azb) li,
603 ol:lang(bcc) li,
604 ol:lang(bgn) li,
605 ol:lang(bqi) li,
606 ol:lang(fa) li,
607 ol:lang(glk) li,
608 ol:lang(kk-arab) li,
609 ol:lang(lrc) li,
610 ol:lang(luz) li,
611 ol:lang(mzn) li {
612 list-style-type: -moz-persian;
613 list-style-type: persian;
614 }
615
616 ol:lang(ckb) li,
617 ol:lang(sdh) li {
618 list-style-type: -moz-arabic-indic;
619 list-style-type: arabic-indic;
620 }
621
622 ol:lang(hi) li,
623 ol:lang(mr) li {
624 list-style-type: -moz-devanagari;
625 list-style-type: devanagari;
626 }
627
628 ol:lang(as) li,
629 ol:lang(bn) li {
630 list-style-type: -moz-bengali;
631 list-style-type: bengali;
632 }
633
634 ol:lang(or) li {
635 list-style-type: -moz-oriya;
636 list-style-type: oriya;
637 }
638
639 #toc ul, .toc ul {
640 margin: .3em 0;
641 }
642
643 /* Correct directionality when page dir is different from site/user dir */
644 /* @noflip */ .mw-content-ltr .toc ul,
645 .mw-content-ltr #toc ul,
646 .mw-content-rtl .mw-content-ltr .toc ul,
647 .mw-content-rtl .mw-content-ltr #toc ul {
648 text-align: left;
649 }
650
651 /* @noflip */ .mw-content-rtl .toc ul,
652 .mw-content-rtl #toc ul,
653 .mw-content-ltr .mw-content-rtl .toc ul,
654 .mw-content-ltr .mw-content-rtl #toc ul {
655 text-align: right;
656 }
657
658 /* @noflip */ .mw-content-ltr .toc ul ul,
659 .mw-content-ltr #toc ul ul,
660 .mw-content-rtl .mw-content-ltr .toc ul ul,
661 .mw-content-rtl .mw-content-ltr #toc ul ul {
662 margin: 0 0 0 2em;
663 }
664
665 /* @noflip */ .mw-content-rtl .toc ul ul,
666 .mw-content-rtl #toc ul ul,
667 .mw-content-ltr .mw-content-rtl .toc ul ul,
668 .mw-content-ltr .mw-content-rtl #toc ul ul {
669 margin: 0 2em 0 0;
670 }
671
672 #toc #toctitle,
673 .toc #toctitle,
674 #toc .toctitle,
675 .toc .toctitle {
676 direction: ltr;
677 }
678
679 #mw-clearyourcache,
680 #mw-sitecsspreview,
681 #mw-sitejspreview,
682 #mw-usercsspreview,
683 #mw-userjspreview {
684 direction: ltr;
685 unicode-bidi: embed;
686 }
687
688 #mw-revision-info,
689 #mw-revision-info-current,
690 #mw-revision-nav {
691 direction: ltr;
692 }
693
694 /* Images */
695
696 /* @noflip */ div.tright,
697 div.floatright,
698 table.floatright {
699 clear: right;
700 float: right;
701 }
702
703 /* @noflip */ div.tleft,
704 div.floatleft,
705 table.floatleft {
706 float: left;
707 clear: left;
708 }
709
710 div.floatright,
711 table.floatright,
712 div.floatleft,
713 table.floatleft {
714 position: relative;
715 }
716
717 /* bug 12205 */
718 #mw-credits a {
719 unicode-bidi: embed;
720 }
721
722 /* Accessibility */
723 .mw-jump,
724 #jump-to-nav {
725 overflow: hidden;
726 height: 0;
727 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
728 }
729
730 /* Print footer should be hidden by default in screen. */
731 .printfooter {
732 display: none;
733 }
734
735 /* For developers */
736 .xdebug-error {
737 position: absolute;
738 z-index: 99;
739 }
740
741 .mw-editsection,
742 #jump-to-nav {
743 -moz-user-select: none;
744 -webkit-user-select: none;
745 -ms-user-select: none;
746 user-select: none;
747 }
748
749 /* Display editsection links smaller and next to headings */
750 .mw-editsection,
751 .mw-editsection-like {
752 font-size: small;
753 font-weight: normal;
754 margin-left: 1em;
755 vertical-align: baseline;
756 /* Reset line-height; headings tend to have it set to larger values */
757 line-height: 1em;
758 /* As .mw-editsection is a <span> (inline element), it is treated as part */
759 /* of the heading content when selecting text by multiple clicks and thus */
760 /* selected together with heading content, despite the user-select: none; */
761 /* rule set above. This enforces non-selection without changing the look. */
762 display: inline-block;
763 }
764
765 /* Correct directionality when page dir is different from site/user dir */
766 /* @noflip */
767 .mw-content-ltr .mw-editsection,
768 .mw-content-rtl .mw-content-ltr .mw-editsection {
769 margin-left: 1em;
770 }
771
772 /* @noflip */
773 .mw-content-rtl .mw-editsection,
774 .mw-content-ltr .mw-content-rtl .mw-editsection {
775 margin-right: 1em;
776 }
777
778 /* Prevent citations and subscripts from interfering with the line-height */
779 sup,
780 sub {
781 line-height: 1;
782 }