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 */
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.
28 /* Most input fields should be in site direction */
29 .sitedir-ltr textarea,
35 .sitedir-rtl textarea,
45 /* User-Agent styles for new HTML5 elements */
47 background-color: #ff0;
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. */
54 display: inline-block;
57 /* Input types that should follow user direction, like buttons */
58 /* TODO: What about buttons in wikipage content ? */
66 /* Override default values */
79 /* Default style for semantic tags */
82 border-bottom: 1px dotted;
86 @supports ( text-decoration: underline dotted ) {
90 text-decoration: underline dotted;
94 /* Comment portions of RC entries */
97 unicode-bidi: -moz-isolate;
98 unicode-bidi: isolate;
101 /* Stop floats from intruding into edit area in previews */
108 /* Prevent editing textarea from jumping when toolbar is loaded */
113 /* Edit font preference */
114 /* TODO: for 'default' on non-textareas we could compute the default font of textarea in the client */
115 .mw-editfont-default:not( textarea ) {
116 font-family: monospace;
119 /* Keep this rule separate from the :not rule above so it still works in older browsers */
120 .mw-editfont-monospace {
121 font-family: monospace;
124 .mw-editfont-sans-serif {
125 font-family: sans-serif;
132 /* Underline preference */
134 .mw-underline-always a {
135 text-decoration: underline;
138 .mw-underline-never a {
139 text-decoration: none;
146 span.history-deleted {
147 text-decoration: line-through;
156 background-color: #ffa;
174 vertical-align: middle;
186 .mw-input-with-label {
188 display: inline-block;
194 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
198 .mw-content-ltr .thumbcaption {
203 .mw-content-ltr .magnify {
208 .mw-content-rtl .thumbcaption {
213 .mw-content-rtl .magnify {
222 * Overrides text justification (user preference)
233 list-style-type: none;
234 list-style-image: none;
235 vertical-align: middle !ie;
239 display: inline-block;
241 border-left: 1px solid #a2a9b1;
245 display: inline !ie; /* stylelint-disable-line declaration-block-no-duplicate-properties */
248 .catlinks li:first-child {
249 padding-left: 0.25em;
253 /* (T7346) make category redirects italic */
254 .catlinks li a.mw-redirect {
261 .mw-hidden-cats-hidden {
265 .catlinks-allhidden {
270 * Convenience links to edit delete and protect reasons
272 p.mw-protect-editreasons,
273 p.mw-filedelete-editreasons,
274 p.mw-delete-editreasons {
279 /* The auto-generated edit comments */
284 /** Generic minor/bot/newpage styling (recent changes) */
292 * Recreating deleted page warning
293 * Reupload file warning
294 * Page protection warning
295 * incl. log entries for these warnings
297 div.mw-warning-with-logexcerpt {
300 border: 2px solid #2a4b8d;
304 div.mw-warning-with-logexcerpt ul li {
308 /* (show/hide) revision deletion links */
309 span.mw-revdelundel-link,
310 strong.mw-revdelundel-link {
314 span.mw-revdelundel-hidden,
315 input.mw-revdelundel-hidden {
319 td.mw-revdel-checkbox,
320 th.mw-revdel-checkbox {
325 /* red links; see T38276 */
334 text-decoration: inherit;
336 a.mw-selflink:hover {
338 text-decoration: inherit;
340 a.mw-selflink:active,
341 a.mw-selflink:visited {
345 /* Plainlinks - this can be used to switch
346 * off special external link styling */
347 .plainlinks a.external {
348 background: none !important; /* stylelint-disable-line declaration-no-important */
349 padding: 0 !important; /* stylelint-disable-line declaration-no-important */
352 /* External URLs should always be treated as LTR (T6330) */
353 /* @noflip */ .rtl a.external.free,
354 .rtl a.external.autonumber {
360 * wikitable class for skinning normal tables
361 * keep in sync with commonPrint.css
364 background-color: #f8f9fa;
367 border: 1px solid #a2a9b1;
368 border-collapse: collapse;
371 table.wikitable > tr > th,
372 table.wikitable > tr > td,
373 table.wikitable > * > tr > th,
374 table.wikitable > * > tr > td {
375 border: 1px solid #a2a9b1;
376 padding: 0.2em 0.4em;
379 table.wikitable > tr > th,
380 table.wikitable > * > tr > th {
381 background-color: #eaecf0;
385 table.wikitable > caption {
389 /* success and error messages */
414 display: inline-block;
416 *display: inline; /* stylelint-disable-line declaration-block-no-duplicate-properties */
432 border-color: #fac5c5;
433 background-color: #fae3e3;
438 border-color: #fde29b;
439 background-color: #fdf1d1;
444 border-color: #b7fdb5;
445 background-color: #e1fddf;
448 /* general info/warning box for SP */
450 border: 2px solid #ff7f00;
463 margin: 0.5em 0.5em 0.5em 49px;
466 /* Note on preview page */
484 * Transparent table with suddle borders
485 * and blue row-highlighting.
488 border-collapse: collapse;
494 border: 1px solid #a2a9b1;
495 padding: 0 0.15em 0 0.15em;
499 background-color: #ddf;
503 background-color: #fff;
506 .mw-datatable tr:hover td {
507 background-color: #eaf3ff;
510 /* Correct directionality when page dir is different from site/user dir */
512 .mw-content-rtl .mw-content-ltr ul {
514 margin: 0.3em 0 0 1.6em;
519 .mw-content-ltr .mw-content-rtl ul {
521 margin: 0.3em 1.6em 0 0;
526 .mw-content-rtl .mw-content-ltr ol {
528 margin: 0.3em 0 0 3.2em;
533 .mw-content-ltr .mw-content-rtl ol {
535 margin: 0.3em 3.2em 0 0;
541 .mw-content-rtl .mw-content-ltr dd {
548 .mw-content-ltr .mw-content-rtl dd {
554 background-image: url( images/ajax-loader.gif );
555 background-position: center center;
556 background-repeat: no-repeat;
563 padding: 10px !important; /* stylelint-disable-line declaration-no-important */
565 background-image: url( images/spinner.gif );
566 background-position: center center;
567 background-repeat: no-repeat;
570 /* Language specific height correction for titles. Ref T31405 and T32809 */
571 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
574 h1:lang( bh ), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
593 line-height: 1.6em !important; /* stylelint-disable-line declaration-no-important */
596 /* stylelint-disable selector-list-comma-newline-after */
597 h2:lang( anp ), h3:lang( anp ), h4:lang( anp ), h5:lang( anp ), h6:lang( anp ),
598 h2:lang( as ), h3:lang( as ), h4:lang( as ), h5:lang( as ), h6:lang( as ),
599 h2:lang( bho ), h3:lang( bho ), h4:lang( bho ), h5:lang( bho ), h6:lang( bho ),
600 h2:lang( bh ), h3:lang( bh ), h4:lang( bh ), h5:lang( bh ), h6:lang( bh ),
601 h2:lang( bn ), h3:lang( bn ), h4:lang( bn ), h5:lang( bn ), h6:lang( bn ),
602 h2:lang( gu ), h3:lang( gu ), h4:lang( gu ), h5:lang( gu ), h6:lang( gu ),
603 h2:lang( hi ), h3:lang( hi ), h4:lang( hi ), h5:lang( hi ), h6:lang( hi ),
604 h2:lang( kn ), h3:lang( kn ), h4:lang( kn ), h5:lang( kn ), h6:lang( kn ),
605 h2:lang( ks ), h3:lang( ks ), h4:lang( ks ), h5:lang( ks ), h6:lang( ks ),
606 h2:lang( ml ), h3:lang( ml ), h4:lang( ml ), h5:lang( ml ), h6:lang( ml ),
607 h2:lang( mr ), h3:lang( mr ), h4:lang( mr ), h5:lang( mr ), h6:lang( mr ),
608 h2:lang( my ), h3:lang( my ), h4:lang( my ), h5:lang( my ), h6:lang( my ),
609 h2:lang( mai ), h3:lang( mai ), h4:lang( mai ), h5:lang( mai ), h6:lang( mai ),
610 h2:lang( ne ), h3:lang( ne ), h4:lang( ne ), h5:lang( ne ), h6:lang( ne ),
611 h2:lang( new ), h3:lang( new ), h4:lang( new ), h5:lang( new ), h6:lang( new ),
612 h2:lang( or ), h3:lang( or ), h4:lang( or ), h5:lang( or ), h6:lang( or ),
613 h2:lang( pa ), h3:lang( pa ), h4:lang( pa ), h5:lang( pa ), h6:lang( pa ),
614 h2:lang( pi ), h3:lang( pi ), h4:lang( pi ), h5:lang( pi ), h6:lang( pi ),
615 h2:lang( sa ), h3:lang( sa ), h4:lang( sa ), h5:lang( sa ), h6:lang( sa ),
616 h2:lang( ta ), h3:lang( ta ), h4:lang( ta ), h5:lang( ta ), h6:lang( ta ),
617 h2:lang( te ), h3:lang( te ), h4:lang( te ), h5:lang( te ), h6:lang( te ) {
620 /* stylelint-enable selector-list-comma-newline-after */
622 /* Localised ordered list numbering for some languages */
629 ol:lang( kk-arab ) li,
633 list-style-type: -moz-persian;
634 list-style-type: persian;
639 list-style-type: -moz-arabic-indic;
640 list-style-type: arabic-indic;
647 list-style-type: -moz-devanagari;
648 list-style-type: devanagari;
653 list-style-type: -moz-bengali;
654 list-style-type: bengali;
658 list-style-type: -moz-oriya;
659 list-style-type: oriya;
667 /* Correct directionality when page dir is different from site/user dir */
668 /* @noflip */ .mw-content-ltr .toc ul,
669 .mw-content-ltr #toc ul,
670 .mw-content-rtl .mw-content-ltr .toc ul,
671 .mw-content-rtl .mw-content-ltr #toc ul {
675 /* @noflip */ .mw-content-rtl .toc ul,
676 .mw-content-rtl #toc ul,
677 .mw-content-ltr .mw-content-rtl .toc ul,
678 .mw-content-ltr .mw-content-rtl #toc ul {
682 /* @noflip */ .mw-content-ltr .toc ul ul,
683 .mw-content-ltr #toc ul ul,
684 .mw-content-rtl .mw-content-ltr .toc ul ul,
685 .mw-content-rtl .mw-content-ltr #toc ul ul {
689 /* @noflip */ .mw-content-rtl .toc ul ul,
690 .mw-content-rtl #toc ul ul,
691 .mw-content-ltr .mw-content-rtl .toc ul ul,
692 .mw-content-ltr .mw-content-rtl #toc ul ul {
713 #mw-revision-info-current,
720 /* @noflip */ div.tright,
727 /* @noflip */ div.tleft,
751 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
754 /* Print footer should be hidden by default in screen. */
767 -moz-user-select: none;
768 -webkit-user-select: none;
769 -ms-user-select: none;
773 /* Display editsection links smaller and next to headings */
775 .mw-editsection-like {
779 vertical-align: baseline;
780 /* Reset line-height; headings tend to have it set to larger values */
782 /* As .mw-editsection is a <span> (inline element), it is treated as part */
783 /* of the heading content when selecting text by multiple clicks and thus */
784 /* selected together with heading content, despite the user-select: none; */
785 /* rule set above. This enforces non-selection without changing the look. */
786 display: inline-block;
789 /* Correct directionality when page dir is different from site/user dir */
791 .mw-content-ltr .mw-editsection,
792 .mw-content-rtl .mw-content-ltr .mw-editsection {
797 .mw-content-rtl .mw-editsection,
798 .mw-content-ltr .mw-content-rtl .mw-editsection {
802 /* Prevent citations and subscripts from interfering with the line-height */