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 /* Colored watchlist and recent changes numbers */
96 color: #006400; /* dark green */
100 color: #8b0000; /* dark red */
104 color: #aaa; /* gray */
108 * Bidi-isolate these numbers.
109 * See https://phabricator.wikimedia.org/T93484
114 unicode-bidi: -moz-isolate
;
115 unicode-bidi: isolate
;
118 /* Comment portions of RC entries */
121 unicode-bidi: -moz-isolate
;
122 unicode-bidi: isolate
;
126 * Add a bit of margin space between the preview and the toolbar.
127 * This replaces the ugly <p><br /></p> we used to insert into the page source
133 /* Stop floats from intruding into edit area in previews */
144 span
.history-deleted
{
145 text-decoration: line-through
;
154 background-color: #ffa;
183 vertical-align: middle
;
195 .mw-input-with-label {
202 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
206 .mw-content-ltr .thumbcaption {
211 .mw-content-ltr .magnify {
216 .mw-content-rtl .thumbcaption {
221 .mw-content-rtl .magnify {
230 * Overrides text justification (user preference)
241 list-style-type: none
;
242 list-style-image: none
;
243 vertical-align: middle
!ie
;
247 display: inline-block
;
249 border-left: 1px solid
#aaa;
256 .catlinks li:first-child {
257 padding-left: 0.25em;
261 /* (bug 5346) make category redirects italic */
262 .catlinks li a.mw-redirect {
269 .mw-hidden-cats-hidden {
273 .catlinks-allhidden {
278 * Convenience links to edit delete and protect reasons
280 p
.mw-protect-editreasons
,
281 p
.mw-filedelete-editreasons
,
282 p
.mw-delete-editreasons
{
287 /* The auto-generated edit comments */
292 /** Generic minor/bot/newpage styling (recent changes) */
300 * Recreating deleted page warning
301 * Reupload file warning
302 * Page protection warning
303 * incl. log entries for these warnings
305 div
.mw-warning-with-logexcerpt
{
308 border: 2px solid
#2f6fab;
312 div
.mw-warning-with-logexcerpt ul li
{
316 /* (show/hide) revision deletion links */
317 span
.mw-revdelundel-link
,
318 strong
.mw-revdelundel-link
{
322 span
.mw-revdelundel-hidden
,
323 input
.mw-revdelundel-hidden
{
327 td
.mw-revdel-checkbox
,
328 th
.mw-revdel-checkbox
{
333 /* red links; see bug 36276 */
338 /* Plainlinks - this can be used to switch
339 * off special external link styling */
340 .plainlinks a.external {
341 background: none
!important
;
342 padding: 0 !important
;
345 /* External URLs should always be treated as LTR (bug 4330) */
346 /* @noflip */ .rtl a
.external
.free
,
347 .rtl a.external.autonumber {
353 * wikitable class for skinning normal tables
354 * keep in sync with commonPrint.css
358 background-color: #f9f9f9;
359 border: 1px solid
#aaa;
360 border-collapse: collapse
;
364 table
.wikitable
> tr
> th
,
365 table
.wikitable
> tr
> td
,
366 table
.wikitable
> * > tr
> th
,
367 table
.wikitable
> * > tr
> td
{
368 border: 1px solid
#aaa;
369 padding: 0.2em 0.4em;
372 table
.wikitable
> tr
> th
,
373 table
.wikitable
> * > tr
> th
{
374 background-color: #f2f2f2;
378 table
.wikitable
> caption
{
382 /* success and error messages */
407 display: inline-block
;
425 border-color: #fac5c5;
426 background-color: #fae3e3;
431 border-color: #fde29b;
432 background-color: #fdf1d1;
437 border-color: #b7fdb5;
438 background-color: #e1fddf;
441 /* general info/warning box for SP */
443 border: 2px solid
#ff7f00;
456 margin: 0.5em 0.5em 0.5em 49px;
459 /* Note on preview page */
477 * Transparent table with suddle borders
478 * and blue row-highlighting.
481 border-collapse: collapse
;
487 border: 1px solid
#aaa;
488 padding: 0 0.15em 0 0.15em;
492 background-color: #ddf;
496 background-color: #fff;
499 .mw-datatable tr:hover td {
500 background-color: #eef;
503 /* Classes for Exif data display */
507 margin-bottom: 0.5em;
511 table
.mw_metadata caption
{
515 table
.mw_metadata th
{
520 table
.mw_metadata td
{
526 border-collapse: collapse
;
529 table
.mw_metadata td
,
530 table
.mw_metadata th
{
531 border: 1px solid
#aaa;
536 table
.mw_metadata th
{
537 background-color: #f9f9f9;
540 table
.mw_metadata td
{
541 background-color: #fcfcfc;
544 table
.mw_metadata ul
.metadata-langlist
{
545 list-style-type: none
;
546 list-style-image: none
;
552 /* Correct directionality when page dir is different from site/user dir */
554 .mw-content-rtl .mw-content-ltr ul {
556 margin: 0.3em 0 0 1.6em;
561 .mw-content-ltr .mw-content-rtl ul {
563 margin: 0.3em 1.6em 0 0;
568 .mw-content-rtl .mw-content-ltr ol {
570 margin: 0.3em 0 0 3.2em;
575 .mw-content-ltr .mw-content-rtl ol {
577 margin: 0.3em 3.2em 0 0;
583 .mw-content-rtl .mw-content-ltr dd {
590 .mw-content-ltr .mw-content-rtl dd {
596 background-image: url
( images
/ajax-loader
.gif
);
597 background-position: center center
;
598 background-repeat: no-repeat
;
605 padding: 10px !important
;
607 background-image: url
( images
/spinner
.gif
);
608 background-position: center center
;
609 background-repeat: no-repeat
;
612 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
613 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
616 h1:lang
(bh
), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
635 line-height: 1.6em !important
;
638 h2:lang
(anp
), h3:lang
(anp
), h4:lang
(anp
), h5:lang
(anp
), h6:lang
(anp
),
639 h2:lang
(as
), h3:lang
(as
), h4:lang
(as
), h5:lang
(as
), h6:lang
(as
),
640 h2:lang
(bho
), h3:lang
(bho
), h4:lang
(bho
), h5:lang
(bho
), h6:lang
(bho
),
641 h2:lang
(bh
), h3:lang
(bh
), h4:lang
(bh
), h5:lang
(bh
), h6:lang
(bh
),
642 h2:lang
(bn
), h3:lang
(bn
), h4:lang
(bn
), h5:lang
(bn
), h6:lang
(bn
),
643 h2:lang
(gu
), h3:lang
(gu
), h4:lang
(gu
), h5:lang
(gu
), h6:lang
(gu
),
644 h2:lang
(hi
), h3:lang
(hi
), h4:lang
(hi
), h5:lang
(hi
), h6:lang
(hi
),
645 h2:lang
(kn
), h3:lang
(kn
), h4:lang
(kn
), h5:lang
(kn
), h6:lang
(kn
),
646 h2:lang
(ks
), h3:lang
(ks
), h4:lang
(ks
), h5:lang
(ks
), h6:lang
(ks
),
647 h2:lang
(ml
), h3:lang
(ml
), h4:lang
(ml
), h5:lang
(ml
), h6:lang
(ml
),
648 h2:lang
(mr
), h3:lang
(mr
), h4:lang
(mr
), h5:lang
(mr
), h6:lang
(mr
),
649 h2:lang
(my
), h3:lang
(my
), h4:lang
(my
), h5:lang
(my
), h6:lang
(my
),
650 h2:lang
(mai
), h3:lang
(mai
), h4:lang
(mai
), h5:lang
(mai
), h6:lang
(mai
),
651 h2:lang
(ne
), h3:lang
(ne
), h4:lang
(ne
), h5:lang
(ne
), h6:lang
(ne
),
652 h2:lang
(new
), h3:lang
(new
), h4:lang
(new
), h5:lang
(new
), h6:lang
(new
),
653 h2:lang
(or
), h3:lang
(or
), h4:lang
(or
), h5:lang
(or
), h6:lang
(or
),
654 h2:lang
(pa
), h3:lang
(pa
), h4:lang
(pa
), h5:lang
(pa
), h6:lang
(pa
),
655 h2:lang
(pi
), h3:lang
(pi
), h4:lang
(pi
), h5:lang
(pi
), h6:lang
(pi
),
656 h2:lang
(sa
), h3:lang
(sa
), h4:lang
(sa
), h5:lang
(sa
), h6:lang
(sa
),
657 h2:lang
(ta
), h3:lang
(ta
), h4:lang
(ta
), h5:lang
(ta
), h6:lang
(ta
),
658 h2:lang
(te
), h3:lang
(te
), h4:lang
(te
), h5:lang
(te
), h6:lang
(te
) {
662 /* Localised ordered list numbering for some languages */
673 list-style-type: -moz-persian
;
674 list-style-type: persian
;
679 list-style-type: -moz-arabic-indic
;
680 list-style-type: arabic-indic
;
685 list-style-type: -moz-devanagari
;
686 list-style-type: devanagari
;
691 list-style-type: -moz-bengali
;
692 list-style-type: bengali
;
696 list-style-type: -moz-oriya
;
697 list-style-type: oriya
;
704 /* Correct directionality when page dir is different from site/user dir */
705 /* @noflip */ .mw-content-ltr
.toc ul
,
706 .mw-content-ltr #toc ul
,
707 .mw-content-rtl
.mw-content-ltr
.toc ul
,
708 .mw-content-rtl .mw-content-ltr #toc ul {
712 /* @noflip */ .mw-content-rtl
.toc ul
,
713 .mw-content-rtl #toc ul
,
714 .mw-content-ltr
.mw-content-rtl
.toc ul
,
715 .mw-content-ltr .mw-content-rtl #toc ul {
719 /* @noflip */ .mw-content-ltr
.toc ul ul
,
720 .mw-content-ltr #toc ul ul
,
721 .mw-content-rtl
.mw-content-ltr
.toc ul ul
,
722 .mw-content-rtl .mw-content-ltr #toc ul ul {
726 /* @noflip */ .mw-content-rtl
.toc ul ul
,
727 .mw-content-rtl #toc ul ul
,
728 .mw-content-ltr
.mw-content-rtl
.toc ul ul
,
729 .mw-content-ltr .mw-content-rtl #toc ul ul {
741 .mw-help-field-hint {
746 background-image: url
( images
/help-question
.gif
);
747 background-position: left center
;
748 background-repeat: no-repeat
;
751 text-decoration: underline
;
755 .mw-help-field-hint:hover {
756 background-image: url
( images
/help-question-hover
.gif
);
759 .mw-help-field-data {
761 background-color: #d6f3ff;
762 padding: 5px 8px 4px 8px;
763 border: 1px solid
#5dc9f4;
776 /* Correct user & content directionality when viewing a diff */
777 .diff-currentversion-title
,
783 /* @noflip */ .diff-contentalign-right td
{
788 /* @noflip */ .diff-contentalign-left td
{
797 direction: ltr
!important
;
802 #mw-revision-info-current,
810 /* @noflip */ div
.tright
,
817 /* @noflip */ div
.tleft
,
841 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
844 /* Print footer should be hidden by default in screen. */
857 -moz-user-select: none
;
858 -webkit-user-select: none
;
859 -ms-user-select: none
;
863 /* Display editsection links smaller and next to headings */
865 .mw-editsection-like {
869 vertical-align: baseline
;
870 /* Reset line-height; headings tend to have it set to larger values */
872 /* As .mw-editsection is a <span> (inline element), it is treated as part */
873 /* of the heading content when selecting text by multiple clicks and thus */
874 /* selected together with heading content, despite the user-select: none; */
875 /* rule set above. This enforces non-selection without changing the look. */
876 display: inline-block
;
879 /* Correct directionality when page dir is different from site/user dir */
881 .mw-content-ltr
.mw-editsection
,
882 .mw-content-rtl .mw-content-ltr .mw-editsection {
887 .mw-content-rtl
.mw-editsection
,
888 .mw-content-ltr .mw-content-rtl .mw-editsection {
892 /* Prevent citations and subscripts from interfering with the line-height */