Merge "Move changeslist CSS classes from mediawiki.legacy.shared"
[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 /**
95 * Add a bit of margin space between the preview and the toolbar.
96 * This replaces the ugly <p><br /></p> we used to insert into the page source
97 */
98 #wikiPreview.ontop {
99 margin-bottom: 1em;
100 }
101
102 /* Stop floats from intruding into edit area in previews */
103 #editform,
104 #toolbar,
105 #wpTextbox1 {
106 clear: both;
107 }
108
109 /**
110 * rev_deleted stuff
111 */
112 li span.deleted,
113 span.history-deleted {
114 text-decoration: line-through;
115 color: #888;
116 font-style: italic;
117 }
118
119 /**
120 * Patrol stuff
121 */
122 .not-patrolled {
123 background-color: #ffa;
124 }
125
126 .unpatrolled {
127 font-weight: bold;
128 color: #f00;
129 }
130
131 div.patrollink {
132 font-size: 75%;
133 text-align: right;
134 }
135
136 /**
137 * Forms
138 */
139 td.mw-label {
140 text-align: right;
141 }
142
143 td.mw-input {
144 text-align: left;
145 }
146
147 td.mw-submit {
148 text-align: left;
149 }
150
151 td.mw-label {
152 vertical-align: middle;
153 }
154
155 td.mw-submit {
156 white-space: nowrap;
157 }
158
159 input#wpSummary {
160 width: 80%;
161 margin-bottom: 1em;
162 }
163
164 .mw-input-with-label {
165 white-space: nowrap;
166 }
167
168 /**
169 * Image captions.
170 *
171 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
172 */
173
174 /* @noflip */
175 .mw-content-ltr .thumbcaption {
176 text-align: left;
177 }
178
179 /* @noflip */
180 .mw-content-ltr .magnify {
181 float: right;
182 }
183
184 /* @noflip */
185 .mw-content-rtl .thumbcaption {
186 text-align: right;
187 }
188
189 /* @noflip */
190 .mw-content-rtl .magnify {
191 float: left;
192 }
193
194 /**
195 * Categories
196 */
197 #catlinks {
198 /**
199 * Overrides text justification (user preference)
200 * See bug 31990
201 */
202 text-align: left;
203 }
204
205 .catlinks ul {
206 display: inline;
207 margin: 0;
208 padding: 0;
209 list-style: none;
210 list-style-type: none;
211 list-style-image: none;
212 vertical-align: middle !ie;
213 }
214
215 .catlinks li {
216 display: inline-block;
217 line-height: 1.25em;
218 border-left: 1px solid #aaa;
219 margin: 0.125em 0;
220 padding: 0 0.5em;
221 zoom: 1;
222 display: inline !ie;
223 }
224
225 .catlinks li:first-child {
226 padding-left: 0.25em;
227 border-left: none;
228 }
229
230 /* (bug 5346) make category redirects italic */
231 .catlinks li a.mw-redirect {
232 font-style: italic;
233 }
234
235 /**
236 * Hidden categories
237 */
238 .mw-hidden-cats-hidden {
239 display: none;
240 }
241
242 .catlinks-allhidden {
243 display: none;
244 }
245
246 /**
247 * Convenience links to edit delete and protect reasons
248 */
249 p.mw-protect-editreasons,
250 p.mw-filedelete-editreasons,
251 p.mw-delete-editreasons {
252 font-size: 90%;
253 text-align: right;
254 }
255
256 /* Page history styling */
257
258 /* The auto-generated edit comments */
259 .autocomment {
260 color: #808080;
261 }
262
263 #pagehistory .history-user {
264 margin-left: 0.4em;
265 margin-right: 0.2em;
266 }
267
268 #pagehistory li {
269 border: 1px solid #fff;
270 }
271
272 #pagehistory li.selected {
273 background-color: #f9f9f9;
274 border: 1px dashed #aaa;
275 }
276
277 .mw-history-revisionactions {
278 float: right;
279 }
280
281 /** Generic minor/bot/newpage styling (recent changes) */
282 .newpage,
283 .minoredit,
284 .botedit {
285 font-weight: bold;
286 }
287
288 /**
289 * Recreating deleted page warning
290 * Reupload file warning
291 * Page protection warning
292 * incl. log entries for these warnings
293 */
294 div.mw-warning-with-logexcerpt {
295 padding: 3px;
296 margin-bottom: 3px;
297 border: 2px solid #2f6fab;
298 clear: both;
299 }
300
301 div.mw-warning-with-logexcerpt ul li {
302 font-size: 90%;
303 }
304
305 /* (show/hide) revision deletion links */
306 span.mw-revdelundel-link,
307 strong.mw-revdelundel-link {
308 font-size: 90%;
309 }
310
311 span.mw-revdelundel-hidden,
312 input.mw-revdelundel-hidden {
313 visibility: hidden;
314 }
315
316 td.mw-revdel-checkbox,
317 th.mw-revdel-checkbox {
318 padding-right: 10px;
319 text-align: center;
320 }
321
322 /* red links; see bug 36276 */
323 a.new {
324 color: #ba0000;
325 }
326
327 /* Plainlinks - this can be used to switch
328 * off special external link styling */
329 .plainlinks a.external {
330 background: none !important;
331 padding: 0 !important;
332 }
333
334 /* External URLs should always be treated as LTR (bug 4330) */
335 /* @noflip */ .rtl a.external.free,
336 .rtl a.external.autonumber {
337 direction: ltr;
338 unicode-bidi: embed;
339 }
340
341 /**
342 * wikitable class for skinning normal tables
343 * keep in sync with commonPrint.css
344 */
345 table.wikitable {
346 margin: 1em 0;
347 background-color: #f9f9f9;
348 border: 1px solid #aaa;
349 border-collapse: collapse;
350 color: #000;
351 }
352
353 table.wikitable > tr > th,
354 table.wikitable > tr > td,
355 table.wikitable > * > tr > th,
356 table.wikitable > * > tr > td {
357 border: 1px solid #aaa;
358 padding: 0.2em 0.4em;
359 }
360
361 table.wikitable > tr > th,
362 table.wikitable > * > tr > th {
363 background-color: #f2f2f2;
364 text-align: center;
365 }
366
367 table.wikitable > caption {
368 font-weight: bold;
369 }
370
371 /* success and error messages */
372 .error,
373 .warning,
374 .success {
375 font-size: larger;
376 }
377
378 .error {
379 color: #c00;
380 }
381
382 .warning {
383 color: #705000;
384 }
385
386 .success {
387 color: #009000;
388 }
389
390 .errorbox,
391 .warningbox,
392 .successbox {
393 border: 1px solid;
394 padding: .5em 1em;
395 margin-bottom: 1em;
396 display: inline-block;
397 zoom: 1;
398 *display: inline;
399 }
400
401 .errorbox h2,
402 .warningbox h2,
403 .successbox h2 {
404 font-size: 1em;
405 color: inherit;
406 font-weight: bold;
407 display: inline;
408 margin: 0 .5em 0 0;
409 border: none;
410 }
411
412 .errorbox {
413 color: #c00;
414 border-color: #fac5c5;
415 background-color: #fae3e3;
416 }
417
418 .warningbox {
419 color: #705000;
420 border-color: #fde29b;
421 background-color: #fdf1d1;
422 }
423
424 .successbox {
425 color: #008000;
426 border-color: #b7fdb5;
427 background-color: #e1fddf;
428 }
429
430 /* general info/warning box for SP */
431 .mw-infobox {
432 border: 2px solid #ff7f00;
433 margin: 0.5em;
434 clear: left;
435 overflow: hidden;
436 }
437
438 .mw-infobox-left {
439 margin: 7px;
440 float: left;
441 width: 35px;
442 }
443
444 .mw-infobox-right {
445 margin: 0.5em 0.5em 0.5em 49px;
446 }
447
448 /* Note on preview page */
449 .previewnote {
450 color: #c00;
451 margin-bottom: 1em;
452 }
453
454 .previewnote p {
455 text-indent: 3em;
456 margin: 0.8em 0;
457 }
458
459 .visualClear {
460 clear: both;
461 }
462
463 /**
464 * Data table style
465 *
466 * Transparent table with suddle borders
467 * and blue row-highlighting.
468 */
469 .mw-datatable {
470 border-collapse: collapse;
471 }
472
473 .mw-datatable,
474 .mw-datatable td,
475 .mw-datatable th {
476 border: 1px solid #aaa;
477 padding: 0 0.15em 0 0.15em;
478 }
479
480 .mw-datatable th {
481 background-color: #ddf;
482 }
483
484 .mw-datatable td {
485 background-color: #fff;
486 }
487
488 .mw-datatable tr:hover td {
489 background-color: #eef;
490 }
491
492 /* Classes for Exif data display */
493 table.mw_metadata {
494 font-size: 0.8em;
495 margin-left: 0.5em;
496 margin-bottom: 0.5em;
497 width: 400px;
498 }
499
500 table.mw_metadata caption {
501 font-weight: bold;
502 }
503
504 table.mw_metadata th {
505 font-weight: normal;
506 text-align: center;
507 }
508
509 table.mw_metadata td {
510 padding: 0.1em;
511 }
512
513 table.mw_metadata {
514 border: none;
515 border-collapse: collapse;
516 }
517
518 table.mw_metadata td,
519 table.mw_metadata th {
520 border: 1px solid #aaa;
521 padding-left: 5px;
522 padding-right: 5px;
523 }
524
525 table.mw_metadata th {
526 background-color: #f9f9f9;
527 }
528
529 table.mw_metadata td {
530 background-color: #fcfcfc;
531 }
532
533 table.mw_metadata ul.metadata-langlist {
534 list-style-type: none;
535 list-style-image: none;
536 padding-right: 5px;
537 padding-left: 5px;
538 margin: 0;
539 }
540
541 /* Correct directionality when page dir is different from site/user dir */
542 .mw-content-ltr ul,
543 .mw-content-rtl .mw-content-ltr ul {
544 /* @noflip */
545 margin: 0.3em 0 0 1.6em;
546 padding: 0;
547 }
548
549 .mw-content-rtl ul,
550 .mw-content-ltr .mw-content-rtl ul {
551 /* @noflip */
552 margin: 0.3em 1.6em 0 0;
553 padding: 0;
554 }
555
556 .mw-content-ltr ol,
557 .mw-content-rtl .mw-content-ltr ol {
558 /* @noflip */
559 margin: 0.3em 0 0 3.2em;
560 padding: 0;
561 }
562
563 .mw-content-rtl ol,
564 .mw-content-ltr .mw-content-rtl ol {
565 /* @noflip */
566 margin: 0.3em 3.2em 0 0;
567 padding: 0;
568 }
569
570 /* @noflip */
571 .mw-content-ltr dd,
572 .mw-content-rtl .mw-content-ltr dd {
573 margin-left: 1.6em;
574 margin-right: 0;
575 }
576
577 /* @noflip */
578 .mw-content-rtl dd,
579 .mw-content-ltr .mw-content-rtl dd {
580 margin-right: 1.6em;
581 margin-left: 0;
582 }
583
584 .mw-ajax-loader {
585 background-image: url( images/ajax-loader.gif );
586 background-position: center center;
587 background-repeat: no-repeat;
588 padding: 16px;
589 position: relative;
590 top: -16px;
591 }
592
593 .mw-small-spinner {
594 padding: 10px !important;
595 margin-right: 0.6em;
596 background-image: url( images/spinner.gif );
597 background-position: center center;
598 background-repeat: no-repeat;
599 }
600
601 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
602 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
603 h1:lang(anp),
604 h1:lang(as),
605 h1:lang(bh), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
606 h1:lang(bho),
607 h1:lang(bn),
608 h1:lang(gu),
609 h1:lang(hi),
610 h1:lang(kn),
611 h1:lang(ks),
612 h1:lang(ml),
613 h1:lang(mr),
614 h1:lang(my),
615 h1:lang(mai),
616 h1:lang(ne),
617 h1:lang(new),
618 h1:lang(or),
619 h1:lang(pa),
620 h1:lang(pi),
621 h1:lang(sa),
622 h1:lang(ta),
623 h1:lang(te) {
624 line-height: 1.6em !important;
625 }
626
627 h2:lang(anp), h3:lang(anp), h4:lang(anp), h5:lang(anp), h6:lang(anp),
628 h2:lang(as), h3:lang(as), h4:lang(as), h5:lang(as), h6:lang(as),
629 h2:lang(bho), h3:lang(bho), h4:lang(bho), h5:lang(bho), h6:lang(bho),
630 h2:lang(bh), h3:lang(bh), h4:lang(bh), h5:lang(bh), h6:lang(bh),
631 h2:lang(bn), h3:lang(bn), h4:lang(bn), h5:lang(bn), h6:lang(bn),
632 h2:lang(gu), h3:lang(gu), h4:lang(gu), h5:lang(gu), h6:lang(gu),
633 h2:lang(hi), h3:lang(hi), h4:lang(hi), h5:lang(hi), h6:lang(hi),
634 h2:lang(kn), h3:lang(kn), h4:lang(kn), h5:lang(kn), h6:lang(kn),
635 h2:lang(ks), h3:lang(ks), h4:lang(ks), h5:lang(ks), h6:lang(ks),
636 h2:lang(ml), h3:lang(ml), h4:lang(ml), h5:lang(ml), h6:lang(ml),
637 h2:lang(mr), h3:lang(mr), h4:lang(mr), h5:lang(mr), h6:lang(mr),
638 h2:lang(my), h3:lang(my), h4:lang(my), h5:lang(my), h6:lang(my),
639 h2:lang(mai), h3:lang(mai), h4:lang(mai), h5:lang(mai), h6:lang(mai),
640 h2:lang(ne), h3:lang(ne), h4:lang(ne), h5:lang(ne), h6:lang(ne),
641 h2:lang(new), h3:lang(new), h4:lang(new), h5:lang(new), h6:lang(new),
642 h2:lang(or), h3:lang(or), h4:lang(or), h5:lang(or), h6:lang(or),
643 h2:lang(pa), h3:lang(pa), h4:lang(pa), h5:lang(pa), h6:lang(pa),
644 h2:lang(pi), h3:lang(pi), h4:lang(pi), h5:lang(pi), h6:lang(pi),
645 h2:lang(sa), h3:lang(sa), h4:lang(sa), h5:lang(sa), h6:lang(sa),
646 h2:lang(ta), h3:lang(ta), h4:lang(ta), h5:lang(ta), h6:lang(ta),
647 h2:lang(te), h3:lang(te), h4:lang(te), h5:lang(te), h6:lang(te) {
648 line-height: 1.2em;
649 }
650
651 /* Localised ordered list numbering for some languages */
652 ol:lang(azb) li,
653 ol:lang(bcc) li,
654 ol:lang(bgn) li,
655 ol:lang(bqi) li,
656 ol:lang(fa) li,
657 ol:lang(glk) li,
658 ol:lang(kk-arab) li,
659 ol:lang(lrc) li,
660 ol:lang(luz) li,
661 ol:lang(mzn) li {
662 list-style-type: -moz-persian;
663 list-style-type: persian;
664 }
665
666 ol:lang(ckb) li,
667 ol:lang(sdh) li {
668 list-style-type: -moz-arabic-indic;
669 list-style-type: arabic-indic;
670 }
671
672 ol:lang(hi) li,
673 ol:lang(mr) li {
674 list-style-type: -moz-devanagari;
675 list-style-type: devanagari;
676 }
677
678 ol:lang(as) li,
679 ol:lang(bn) li {
680 list-style-type: -moz-bengali;
681 list-style-type: bengali;
682 }
683
684 ol:lang(or) li {
685 list-style-type: -moz-oriya;
686 list-style-type: oriya;
687 }
688
689 #toc ul, .toc ul {
690 margin: .3em 0;
691 }
692
693 /* Correct directionality when page dir is different from site/user dir */
694 /* @noflip */ .mw-content-ltr .toc ul,
695 .mw-content-ltr #toc ul,
696 .mw-content-rtl .mw-content-ltr .toc ul,
697 .mw-content-rtl .mw-content-ltr #toc ul {
698 text-align: left;
699 }
700
701 /* @noflip */ .mw-content-rtl .toc ul,
702 .mw-content-rtl #toc ul,
703 .mw-content-ltr .mw-content-rtl .toc ul,
704 .mw-content-ltr .mw-content-rtl #toc ul {
705 text-align: right;
706 }
707
708 /* @noflip */ .mw-content-ltr .toc ul ul,
709 .mw-content-ltr #toc ul ul,
710 .mw-content-rtl .mw-content-ltr .toc ul ul,
711 .mw-content-rtl .mw-content-ltr #toc ul ul {
712 margin: 0 0 0 2em;
713 }
714
715 /* @noflip */ .mw-content-rtl .toc ul ul,
716 .mw-content-rtl #toc ul ul,
717 .mw-content-ltr .mw-content-rtl .toc ul ul,
718 .mw-content-ltr .mw-content-rtl #toc ul ul {
719 margin: 0 2em 0 0;
720 }
721
722 #toc #toctitle,
723 .toc #toctitle,
724 #toc .toctitle,
725 .toc .toctitle {
726 direction: ltr;
727 }
728
729 /* tooltip styles */
730 .mw-help-field-hint {
731 display: none;
732 margin-left: 2px;
733 margin-bottom: -8px;
734 padding: 0 0 0 15px;
735 background-image: url( images/help-question.gif );
736 background-position: left center;
737 background-repeat: no-repeat;
738 cursor: pointer;
739 font-size: .8em;
740 text-decoration: underline;
741 color: #0645ad;
742 }
743
744 .mw-help-field-hint:hover {
745 background-image: url( images/help-question-hover.gif );
746 }
747
748 .mw-help-field-data {
749 display: block;
750 background-color: #d6f3ff;
751 padding: 5px 8px 4px 8px;
752 border: 1px solid #5dc9f4;
753 margin-left: 20px;
754 }
755
756 #mw-clearyourcache,
757 #mw-sitecsspreview,
758 #mw-sitejspreview,
759 #mw-usercsspreview,
760 #mw-userjspreview {
761 direction: ltr;
762 unicode-bidi: embed;
763 }
764
765 /* Correct user & content directionality when viewing a diff */
766 .diff-currentversion-title,
767 .diff {
768 direction: ltr;
769 unicode-bidi: embed;
770 }
771
772 /* @noflip */ .diff-contentalign-right td {
773 direction: rtl;
774 unicode-bidi: embed;
775 }
776
777 /* @noflip */ .diff-contentalign-left td {
778 direction: ltr;
779 unicode-bidi: embed;
780 }
781
782 .diff-multi,
783 .diff-otitle,
784 .diff-ntitle,
785 .diff-lineno {
786 direction: ltr !important;
787 unicode-bidi: embed;
788 }
789
790 #mw-revision-info,
791 #mw-revision-info-current,
792 #mw-revision-nav {
793 direction: ltr;
794 display: inline;
795 }
796
797 /* Images */
798
799 /* @noflip */ div.tright,
800 div.floatright,
801 table.floatright {
802 clear: right;
803 float: right;
804 }
805
806 /* @noflip */ div.tleft,
807 div.floatleft,
808 table.floatleft {
809 float: left;
810 clear: left;
811 }
812
813 div.floatright,
814 table.floatright,
815 div.floatleft,
816 table.floatleft {
817 position: relative;
818 }
819
820 /* bug 12205 */
821 #mw-credits a {
822 unicode-bidi: embed;
823 }
824
825 /* Accessibility */
826 .mw-jump,
827 #jump-to-nav {
828 overflow: hidden;
829 height: 0;
830 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
831 }
832
833 /* Print footer should be hidden by default in screen. */
834 .printfooter {
835 display: none;
836 }
837
838 /* For developers */
839 .xdebug-error {
840 position: absolute;
841 z-index: 99;
842 }
843
844 .mw-editsection,
845 #jump-to-nav {
846 -moz-user-select: none;
847 -webkit-user-select: none;
848 -ms-user-select: none;
849 user-select: none;
850 }
851
852 /* Display editsection links smaller and next to headings */
853 .mw-editsection,
854 .mw-editsection-like {
855 font-size: small;
856 font-weight: normal;
857 margin-left: 1em;
858 vertical-align: baseline;
859 /* Reset line-height; headings tend to have it set to larger values */
860 line-height: 1em;
861 /* As .mw-editsection is a <span> (inline element), it is treated as part */
862 /* of the heading content when selecting text by multiple clicks and thus */
863 /* selected together with heading content, despite the user-select: none; */
864 /* rule set above. This enforces non-selection without changing the look. */
865 display: inline-block;
866 }
867
868 /* Correct directionality when page dir is different from site/user dir */
869 /* @noflip */
870 .mw-content-ltr .mw-editsection,
871 .mw-content-rtl .mw-content-ltr .mw-editsection {
872 margin-left: 1em;
873 }
874
875 /* @noflip */
876 .mw-content-rtl .mw-editsection,
877 .mw-content-ltr .mw-content-rtl .mw-editsection {
878 margin-right: 1em;
879 }
880
881 /* Prevent citations and subscripts from interfering with the line-height */
882 sup,
883 sub {
884 line-height: 1;
885 }