Merge "Remove not used private member variable mParserWarnings from OutputPage"
[mediawiki.git] / resources / src / mediawiki.legacy / shared.css
blobdaebac1441780e014736cc546f13ba9d6947a2ed
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.
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.
12 /* GENERAL CLASSES FOR DIRECTIONALITY SUPPORT */
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.
18 .mw-content-ltr {
19 /* @noflip */
20 direction: ltr;
23 .mw-content-rtl {
24 /* @noflip */
25 direction: rtl;
28 /* Most input fields should be in site direction */
29 .sitedir-ltr textarea,
30 .sitedir-ltr input {
31 /* @noflip */
32 direction: ltr;
35 .sitedir-rtl textarea,
36 .sitedir-rtl input {
37 /* @noflip */
38 direction: rtl;
41 .mw-userlink {
42 unicode-bidi: embed;
45 /* User-Agent styles for new HTML5 elements */
46 mark {
47 background-color: yellow;
48 color: black;
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;
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;
66 /* Override default values */
67 textarea[dir="ltr"],
68 input[dir="ltr"] {
69 /* @noflip */
70 direction: ltr;
73 textarea[dir="rtl"],
74 input[dir="rtl"] {
75 /* @noflip */
76 direction: rtl;
79 /* Default style for semantic tags */
80 abbr[title],
81 .explain[title] {
82 border-bottom: 1px dotted;
83 cursor: help;
86 @supports (text-decoration: underline dotted) {
87 abbr[title],
88 .explain[title] {
89 border-bottom: none;
90 text-decoration: underline dotted;
94 /* Colored watchlist and recent changes numbers */
95 .mw-plusminus-pos {
96 color: #006400; /* dark green */
99 .mw-plusminus-neg {
100 color: #8b0000; /* dark red */
103 .mw-plusminus-null {
104 color: #aaa; /* gray */
108 * Bidi-isolate these numbers.
109 * See https://phabricator.wikimedia.org/T93484
111 .mw-plusminus-pos,
112 .mw-plusminus-neg,
113 .mw-plusminus-null {
114 unicode-bidi: -moz-isolate;
115 unicode-bidi: -webkit-isolate;
116 unicode-bidi: isolate;
119 /* Comment portions of RC entries */
120 span.comment {
121 font-style: italic;
125 * Add a bit of margin space between the preview and the toolbar.
126 * This replaces the ugly <p><br /></p> we used to insert into the page source
128 #wikiPreview.ontop {
129 margin-bottom: 1em;
132 /* Stop floats from intruding into edit area in previews */
133 #editform,
134 #toolbar,
135 #wpTextbox1 {
136 clear: both;
140 * rev_deleted stuff
142 li span.deleted,
143 span.history-deleted {
144 text-decoration: line-through;
145 color: #888;
146 font-style: italic;
150 * Patrol stuff
152 .not-patrolled {
153 background-color: #ffa;
156 .unpatrolled {
157 font-weight: bold;
158 color: red;
161 div.patrollink {
162 font-size: 75%;
163 text-align: right;
167 * Forms
169 td.mw-label {
170 text-align: right;
173 td.mw-input {
174 text-align: left;
177 td.mw-submit {
178 text-align: left;
181 td.mw-label {
182 vertical-align: middle;
185 td.mw-submit {
186 white-space: nowrap;
189 input#wpSummary {
190 width: 80%;
191 margin-bottom: 1em;
194 .mw-input-with-label {
195 white-space: nowrap;
199 * Image captions.
201 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
204 /* @noflip */
205 .mw-content-ltr .thumbcaption {
206 text-align: left;
209 /* @noflip */
210 .mw-content-ltr .magnify {
211 float: right;
214 /* @noflip */
215 .mw-content-rtl .thumbcaption {
216 text-align: right;
219 /* @noflip */
220 .mw-content-rtl .magnify {
221 float: left;
225 * Categories
227 #catlinks {
229 * Overrides text justification (user preference)
230 * See bug 31990
232 text-align: left;
235 .catlinks ul {
236 display: inline;
237 margin: 0;
238 padding: 0;
239 list-style: none;
240 list-style-type: none;
241 list-style-image: none;
242 vertical-align: middle !ie;
245 .catlinks li {
246 display: inline-block;
247 line-height: 1.25em;
248 border-left: 1px solid #AAA;
249 margin: 0.125em 0;
250 padding: 0 0.5em;
251 zoom: 1;
252 display: inline !ie;
255 .catlinks li:first-child {
256 padding-left: 0.25em;
257 border-left: none;
260 /* (bug 5346) make category redirects italic */
261 .catlinks li a.mw-redirect {
262 font-style: italic;
266 * Hidden categories
268 .mw-hidden-cats-hidden {
269 display: none;
272 .catlinks-allhidden {
273 display: none;
277 * Convenience links to edit delete and protect reasons
279 p.mw-protect-editreasons,
280 p.mw-filedelete-editreasons,
281 p.mw-delete-editreasons {
282 font-size: 90%;
283 text-align: right;
286 /* Page history styling */
288 /* The auto-generated edit comments */
289 .autocomment {
290 color: gray;
293 #pagehistory .history-user {
294 margin-left: 0.4em;
295 margin-right: 0.2em;
298 #pagehistory li {
299 border: 1px solid white;
302 #pagehistory li.selected {
303 background-color: #f9f9f9;
304 border: 1px dashed #aaa;
307 .mw-history-revisionactions {
308 float: right;
311 /** Generic minor/bot/newpage styling (recent changes) */
312 .newpage,
313 .minoredit,
314 .botedit {
315 font-weight: bold;
319 * Recreating deleted page warning
320 * Reupload file warning
321 * Page protection warning
322 * incl. log entries for these warnings
324 div.mw-warning-with-logexcerpt {
325 padding: 3px;
326 margin-bottom: 3px;
327 border: 2px solid #2F6FAB;
328 clear: both;
331 div.mw-warning-with-logexcerpt ul li {
332 font-size: 90%;
335 /* (show/hide) revision deletion links */
336 span.mw-revdelundel-link,
337 strong.mw-revdelundel-link {
338 font-size: 90%;
341 span.mw-revdelundel-hidden,
342 input.mw-revdelundel-hidden {
343 visibility: hidden;
346 td.mw-revdel-checkbox,
347 th.mw-revdel-checkbox {
348 padding-right: 10px;
349 text-align: center;
352 /* red links; see bug 36276 */
353 a.new {
354 color: #BA0000;
357 /* Plainlinks - this can be used to switch
358 * off special external link styling */
359 .plainlinks a.external {
360 background: none !important;
361 padding: 0 !important;
364 /* External URLs should always be treated as LTR (bug 4330) */
365 /* @noflip */ .rtl a.external.free,
366 .rtl a.external.autonumber {
367 direction: ltr;
368 unicode-bidi: embed;
372 * wikitable class for skinning normal tables
373 * keep in sync with commonPrint.css
375 table.wikitable {
376 margin: 1em 0;
377 background-color: #f9f9f9;
378 border: 1px solid #aaa;
379 border-collapse: collapse;
380 color: black;
383 table.wikitable > tr > th,
384 table.wikitable > tr > td,
385 table.wikitable > * > tr > th,
386 table.wikitable > * > tr > td {
387 border: 1px solid #aaa;
388 padding: 0.2em 0.4em;
391 table.wikitable > tr > th,
392 table.wikitable > * > tr > th {
393 background-color: #f2f2f2;
394 text-align: center;
397 table.wikitable > caption {
398 font-weight: bold;
401 /* success and error messages */
402 .error,
403 .warning,
404 .success {
405 font-size: larger;
408 .error {
409 color: #cc0000;
412 .warning {
413 color: #705000;
416 .success {
417 color: #009000;
420 .errorbox,
421 .warningbox,
422 .successbox {
423 border: 1px solid;
424 padding: .5em 1em;
425 margin-bottom: 1em;
426 display: inline-block;
427 zoom: 1;
428 *display: inline;
431 .errorbox h2,
432 .warningbox h2,
433 .successbox h2 {
434 font-size: 1em;
435 color: inherit;
436 font-weight: bold;
437 display: inline;
438 margin: 0 .5em 0 0;
439 border: none;
442 .errorbox {
443 color: #cc0000;
444 border-color: #fac5c5;
445 background-color: #fae3e3;
448 .warningbox {
449 color: #705000;
450 border-color: #fde29b;
451 background-color: #fdf1d1;
454 .successbox {
455 color: #008000;
456 border-color: #b7fdb5;
457 background-color: #e1fddf;
460 /* general info/warning box for SP */
461 .mw-infobox {
462 border: 2px solid #ff7f00;
463 margin: 0.5em;
464 clear: left;
465 overflow: hidden;
468 .mw-infobox-left {
469 margin: 7px;
470 float: left;
471 width: 35px;
474 .mw-infobox-right {
475 margin: 0.5em 0.5em 0.5em 49px;
478 /* Note on preview page */
479 .previewnote {
480 color: #c00;
481 margin-bottom: 1em;
484 .previewnote p {
485 text-indent: 3em;
486 margin: 0.8em 0;
489 .visualClear {
490 clear: both;
494 * Data table style
496 * Transparent table with suddle borders
497 * and blue row-highlighting.
499 .mw-datatable {
500 border-collapse: collapse;
503 .mw-datatable,
504 .mw-datatable td,
505 .mw-datatable th {
506 border: 1px solid #aaaaaa;
507 padding: 0 0.15em 0 0.15em;
510 .mw-datatable th {
511 background-color: #ddddff;
514 .mw-datatable td {
515 background-color: #ffffff;
518 .mw-datatable tr:hover td {
519 background-color: #eeeeff;
522 /* Classes for Exif data display */
523 table.mw_metadata {
524 font-size: 0.8em;
525 margin-left: 0.5em;
526 margin-bottom: 0.5em;
527 width: 400px;
530 table.mw_metadata caption {
531 font-weight: bold;
534 table.mw_metadata th {
535 font-weight: normal;
538 table.mw_metadata td {
539 padding: 0.1em;
542 table.mw_metadata {
543 border: none;
544 border-collapse: collapse;
547 table.mw_metadata td,
548 table.mw_metadata th {
549 text-align: center;
550 border: 1px solid #aaaaaa;
551 padding-left: 5px;
552 padding-right: 5px;
555 table.mw_metadata th {
556 background-color: #f9f9f9;
559 table.mw_metadata td {
560 background-color: #fcfcfc;
563 table.mw_metadata ul.metadata-langlist {
564 list-style-type: none;
565 list-style-image: none;
566 padding-right: 5px;
567 padding-left: 5px;
568 margin: 0;
571 /* Correct directionality when page dir is different from site/user dir */
572 .mw-content-ltr ul,
573 .mw-content-rtl .mw-content-ltr ul {
574 /* @noflip */
575 margin: 0.3em 0 0 1.6em;
576 padding: 0;
579 .mw-content-rtl ul,
580 .mw-content-ltr .mw-content-rtl ul {
581 /* @noflip */
582 margin: 0.3em 1.6em 0 0;
583 padding: 0;
586 .mw-content-ltr ol,
587 .mw-content-rtl .mw-content-ltr ol {
588 /* @noflip */
589 margin: 0.3em 0 0 3.2em;
590 padding: 0;
593 .mw-content-rtl ol,
594 .mw-content-ltr .mw-content-rtl ol {
595 /* @noflip */
596 margin: 0.3em 3.2em 0 0;
597 padding: 0;
600 /* @noflip */
601 .mw-content-ltr dd,
602 .mw-content-rtl .mw-content-ltr dd {
603 margin-left: 1.6em;
604 margin-right: 0;
607 /* @noflip */
608 .mw-content-rtl dd,
609 .mw-content-ltr .mw-content-rtl dd {
610 margin-right: 1.6em;
611 margin-left: 0;
614 .mw-ajax-loader {
615 background-image: url(images/ajax-loader.gif);
616 background-position: center center;
617 background-repeat: no-repeat;
618 padding: 16px;
619 position: relative;
620 top: -16px;
623 .mw-small-spinner {
624 padding: 10px !important;
625 margin-right: 0.6em;
626 background-image: url(images/spinner.gif);
627 background-position: center center;
628 background-repeat: no-repeat;
631 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
632 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
633 h1:lang(anp),
634 h1:lang(as),
635 h1:lang(bh), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
636 h1:lang(bho),
637 h1:lang(bn),
638 h1:lang(gu),
639 h1:lang(hi),
640 h1:lang(kn),
641 h1:lang(ks),
642 h1:lang(ml),
643 h1:lang(mr),
644 h1:lang(my),
645 h1:lang(mai),
646 h1:lang(ne),
647 h1:lang(new),
648 h1:lang(or),
649 h1:lang(pa),
650 h1:lang(pi),
651 h1:lang(sa),
652 h1:lang(ta),
653 h1:lang(te) {
654 line-height: 1.6em !important;
657 h2:lang(anp), h3:lang(anp), h4:lang(anp), h5:lang(anp), h6:lang(anp),
658 h2:lang(as), h3:lang(as), h4:lang(as), h5:lang(as), h6:lang(as),
659 h2:lang(bho), h3:lang(bho), h4:lang(bho), h5:lang(bho), h6:lang(bho),
660 h2:lang(bh), h3:lang(bh), h4:lang(bh), h5:lang(bh), h6:lang(bh),
661 h2:lang(bn), h3:lang(bn), h4:lang(bn), h5:lang(bn), h6:lang(bn),
662 h2:lang(gu), h3:lang(gu), h4:lang(gu), h5:lang(gu), h6:lang(gu),
663 h2:lang(hi), h3:lang(hi), h4:lang(hi), h5:lang(hi), h6:lang(hi),
664 h2:lang(kn), h3:lang(kn), h4:lang(kn), h5:lang(kn), h6:lang(kn),
665 h2:lang(ks), h3:lang(ks), h4:lang(ks), h5:lang(ks), h6:lang(ks),
666 h2:lang(ml), h3:lang(ml), h4:lang(ml), h5:lang(ml), h6:lang(ml),
667 h2:lang(mr), h3:lang(mr), h4:lang(mr), h5:lang(mr), h6:lang(mr),
668 h2:lang(my), h3:lang(my), h4:lang(my), h5:lang(my), h6:lang(my),
669 h2:lang(mai), h3:lang(mai), h4:lang(mai), h5:lang(mai), h6:lang(mai),
670 h2:lang(ne), h3:lang(ne), h4:lang(ne), h5:lang(ne), h6:lang(ne),
671 h2:lang(new), h3:lang(new), h4:lang(new), h5:lang(new), h6:lang(new),
672 h2:lang(or), h3:lang(or), h4:lang(or), h5:lang(or), h6:lang(or),
673 h2:lang(pa), h3:lang(pa), h4:lang(pa), h5:lang(pa), h6:lang(pa),
674 h2:lang(pi), h3:lang(pi), h4:lang(pi), h5:lang(pi), h6:lang(pi),
675 h2:lang(sa), h3:lang(sa), h4:lang(sa), h5:lang(sa), h6:lang(sa),
676 h2:lang(ta), h3:lang(ta), h4:lang(ta), h5:lang(ta), h6:lang(ta),
677 h2:lang(te), h3:lang(te), h4:lang(te), h5:lang(te), h6:lang(te) {
678 line-height: 1.2em;
681 /* Localised ordered list numbering for some languages */
682 ol:lang(azb) li,
683 ol:lang(bcc) li,
684 ol:lang(bgn) li,
685 ol:lang(bqi) li,
686 ol:lang(fa) li,
687 ol:lang(glk) li,
688 ol:lang(kk-arab) li,
689 ol:lang(lrc) li,
690 ol:lang(luz) li,
691 ol:lang(mzn) li {
692 list-style-type: -moz-persian;
693 list-style-type: persian;
696 ol:lang(ckb) li,
697 ol:lang(sdh) li {
698 list-style-type: -moz-arabic-indic;
699 list-style-type: arabic-indic;
702 ol:lang(hi) li,
703 ol:lang(mr) li {
704 list-style-type: -moz-devanagari;
705 list-style-type: devanagari;
708 ol:lang(as) li,
709 ol:lang(bn) li {
710 list-style-type: -moz-bengali;
711 list-style-type: bengali;
714 ol:lang(or) li {
715 list-style-type: -moz-oriya;
716 list-style-type: oriya;
719 #toc ul, .toc ul {
720 margin: .3em 0;
723 /* Correct directionality when page dir is different from site/user dir */
724 /* @noflip */ .mw-content-ltr .toc ul,
725 .mw-content-ltr #toc ul,
726 .mw-content-rtl .mw-content-ltr .toc ul,
727 .mw-content-rtl .mw-content-ltr #toc ul {
728 text-align: left;
731 /* @noflip */ .mw-content-rtl .toc ul,
732 .mw-content-rtl #toc ul,
733 .mw-content-ltr .mw-content-rtl .toc ul,
734 .mw-content-ltr .mw-content-rtl #toc ul {
735 text-align: right;
738 /* @noflip */ .mw-content-ltr .toc ul ul,
739 .mw-content-ltr #toc ul ul,
740 .mw-content-rtl .mw-content-ltr .toc ul ul,
741 .mw-content-rtl .mw-content-ltr #toc ul ul {
742 margin: 0 0 0 2em;
745 /* @noflip */ .mw-content-rtl .toc ul ul,
746 .mw-content-rtl #toc ul ul,
747 .mw-content-ltr .mw-content-rtl .toc ul ul,
748 .mw-content-ltr .mw-content-rtl #toc ul ul {
749 margin: 0 2em 0 0;
752 #toc #toctitle,
753 .toc #toctitle,
754 #toc .toctitle,
755 .toc .toctitle {
756 direction: ltr;
759 /* tooltip styles */
760 .mw-help-field-hint {
761 display: none;
762 margin-left: 2px;
763 margin-bottom: -8px;
764 padding: 0 0 0 15px;
765 background-image: url(images/help-question.gif);
766 background-position: left center;
767 background-repeat: no-repeat;
768 cursor: pointer;
769 font-size: .8em;
770 text-decoration: underline;
771 color: #0645ad;
774 .mw-help-field-hint:hover {
775 background-image: url(images/help-question-hover.gif);
778 .mw-help-field-data {
779 display: block;
780 background-color: #d6f3ff;
781 padding: 5px 8px 4px 8px;
782 border: 1px solid #5dc9f4;
783 margin-left: 20px;
786 #mw-clearyourcache,
787 #mw-sitecsspreview,
788 #mw-sitejspreview,
789 #mw-usercsspreview,
790 #mw-userjspreview {
791 direction: ltr;
792 unicode-bidi: embed;
795 /* Correct user & content directionality when viewing a diff */
796 .diff-currentversion-title,
797 .diff {
798 direction: ltr;
799 unicode-bidi: embed;
802 /* @noflip */ .diff-contentalign-right td {
803 direction: rtl;
804 unicode-bidi: embed;
807 /* @noflip */ .diff-contentalign-left td {
808 direction: ltr;
809 unicode-bidi: embed;
812 .diff-multi,
813 .diff-otitle,
814 .diff-ntitle,
815 .diff-lineno {
816 direction: ltr !important;
817 unicode-bidi: embed;
820 #mw-revision-info,
821 #mw-revision-info-current,
822 #mw-revision-nav {
823 direction: ltr;
824 display: inline;
827 /* Images */
829 /* @noflip */ div.tright,
830 div.floatright,
831 table.floatright {
832 clear: right;
833 float: right;
836 /* @noflip */ div.tleft,
837 div.floatleft,
838 table.floatleft {
839 float: left;
840 clear: left;
843 div.floatright,
844 table.floatright,
845 div.floatleft,
846 table.floatleft {
847 position: relative;
850 /* bug 12205 */
851 #mw-credits a {
852 unicode-bidi: embed;
855 /* Accessibility */
856 .mw-jump,
857 #jump-to-nav {
858 overflow: hidden;
859 height: 0;
860 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
863 /* Print footer should be hidden by default in screen. */
864 .printfooter {
865 display: none;
868 /* For developers */
869 .xdebug-error {
870 position: absolute;
871 z-index: 99;
874 .mw-editsection,
875 #jump-to-nav {
876 -moz-user-select: none;
877 -webkit-user-select: none;
878 -ms-user-select: none;
879 user-select: none;
882 /* Display editsection links smaller and next to headings */
883 .mw-editsection,
884 .mw-editsection-like {
885 font-size: small;
886 font-weight: normal;
887 margin-left: 1em;
888 vertical-align: baseline;
889 /* Reset line-height; headings tend to have it set to larger values */
890 line-height: 1em;
891 /* As .mw-editsection is a <span> (inline element), it is treated as part */
892 /* of the heading content when selecting text by multiple clicks and thus */
893 /* selected together with heading content, despite the user-select: none; */
894 /* rule set above. This enforces non-selection without changing the look. */
895 display: inline-block;
898 /* Correct directionality when page dir is different from site/user dir */
899 /* @noflip */
900 .mw-content-ltr .mw-editsection,
901 .mw-content-rtl .mw-content-ltr .mw-editsection {
902 margin-left: 1em;
905 /* @noflip */
906 .mw-content-rtl .mw-editsection,
907 .mw-content-ltr .mw-content-rtl .mw-editsection {
908 margin-right: 1em;
911 /* Prevent citations and subscripts from interfering with the line-height */
912 sup,
913 sub {
914 line-height: 1;