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 /* Page history styling */
289 /* The auto-generated edit comments */
294 #pagehistory .history-user
{
300 border: 1px solid
#fff;
303 #pagehistory li
.selected
{
304 background-color: #f9f9f9;
305 border: 1px dashed
#aaa;
308 .mw-history-revisionactions {
312 /** Generic minor/bot/newpage styling (recent changes) */
320 * Recreating deleted page warning
321 * Reupload file warning
322 * Page protection warning
323 * incl. log entries for these warnings
325 div
.mw-warning-with-logexcerpt
{
328 border: 2px solid
#2f6fab;
332 div
.mw-warning-with-logexcerpt ul li
{
336 /* (show/hide) revision deletion links */
337 span
.mw-revdelundel-link
,
338 strong
.mw-revdelundel-link
{
342 span
.mw-revdelundel-hidden
,
343 input
.mw-revdelundel-hidden
{
347 td
.mw-revdel-checkbox
,
348 th
.mw-revdel-checkbox
{
353 /* red links; see bug 36276 */
358 /* Plainlinks - this can be used to switch
359 * off special external link styling */
360 .plainlinks a.external {
361 background: none
!important
;
362 padding: 0 !important
;
365 /* External URLs should always be treated as LTR (bug 4330) */
366 /* @noflip */ .rtl a
.external
.free
,
367 .rtl a.external.autonumber {
373 * wikitable class for skinning normal tables
374 * keep in sync with commonPrint.css
378 background-color: #f9f9f9;
379 border: 1px solid
#aaa;
380 border-collapse: collapse
;
384 table
.wikitable
> tr
> th
,
385 table
.wikitable
> tr
> td
,
386 table
.wikitable
> * > tr
> th
,
387 table
.wikitable
> * > tr
> td
{
388 border: 1px solid
#aaa;
389 padding: 0.2em 0.4em;
392 table
.wikitable
> tr
> th
,
393 table
.wikitable
> * > tr
> th
{
394 background-color: #f2f2f2;
398 table
.wikitable
> caption
{
402 /* success and error messages */
427 display: inline-block
;
445 border-color: #fac5c5;
446 background-color: #fae3e3;
451 border-color: #fde29b;
452 background-color: #fdf1d1;
457 border-color: #b7fdb5;
458 background-color: #e1fddf;
461 /* general info/warning box for SP */
463 border: 2px solid
#ff7f00;
476 margin: 0.5em 0.5em 0.5em 49px;
479 /* Note on preview page */
497 * Transparent table with suddle borders
498 * and blue row-highlighting.
501 border-collapse: collapse
;
507 border: 1px solid
#aaa;
508 padding: 0 0.15em 0 0.15em;
512 background-color: #ddf;
516 background-color: #fff;
519 .mw-datatable tr:hover td {
520 background-color: #eef;
523 /* Classes for Exif data display */
527 margin-bottom: 0.5em;
531 table
.mw_metadata caption
{
535 table
.mw_metadata th
{
540 table
.mw_metadata td
{
546 border-collapse: collapse
;
549 table
.mw_metadata td
,
550 table
.mw_metadata th
{
551 border: 1px solid
#aaa;
556 table
.mw_metadata th
{
557 background-color: #f9f9f9;
560 table
.mw_metadata td
{
561 background-color: #fcfcfc;
564 table
.mw_metadata ul
.metadata-langlist
{
565 list-style-type: none
;
566 list-style-image: none
;
572 /* Correct directionality when page dir is different from site/user dir */
574 .mw-content-rtl .mw-content-ltr ul {
576 margin: 0.3em 0 0 1.6em;
581 .mw-content-ltr .mw-content-rtl ul {
583 margin: 0.3em 1.6em 0 0;
588 .mw-content-rtl .mw-content-ltr ol {
590 margin: 0.3em 0 0 3.2em;
595 .mw-content-ltr .mw-content-rtl ol {
597 margin: 0.3em 3.2em 0 0;
603 .mw-content-rtl .mw-content-ltr dd {
610 .mw-content-ltr .mw-content-rtl dd {
616 background-image: url
(images
/ajax-loader
.gif
);
617 background-position: center center
;
618 background-repeat: no-repeat
;
625 padding: 10px !important
;
627 background-image: url
(images/spinner.gif);
628 background-position: center center
;
629 background-repeat: no-repeat
;
632 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
633 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
636 h1:lang
(bh
), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
655 line-height: 1.6em !important
;
658 h2:lang
(anp
), h3:lang
(anp
), h4:lang
(anp
), h5:lang
(anp
), h6:lang
(anp
),
659 h2:lang
(as
), h3:lang
(as
), h4:lang
(as
), h5:lang
(as
), h6:lang
(as
),
660 h2:lang
(bho
), h3:lang
(bho
), h4:lang
(bho
), h5:lang
(bho
), h6:lang
(bho
),
661 h2:lang
(bh
), h3:lang
(bh
), h4:lang
(bh
), h5:lang
(bh
), h6:lang
(bh
),
662 h2:lang
(bn
), h3:lang
(bn
), h4:lang
(bn
), h5:lang
(bn
), h6:lang
(bn
),
663 h2:lang
(gu
), h3:lang
(gu
), h4:lang
(gu
), h5:lang
(gu
), h6:lang
(gu
),
664 h2:lang
(hi
), h3:lang
(hi
), h4:lang
(hi
), h5:lang
(hi
), h6:lang
(hi
),
665 h2:lang
(kn
), h3:lang
(kn
), h4:lang
(kn
), h5:lang
(kn
), h6:lang
(kn
),
666 h2:lang
(ks
), h3:lang
(ks
), h4:lang
(ks
), h5:lang
(ks
), h6:lang
(ks
),
667 h2:lang
(ml
), h3:lang
(ml
), h4:lang
(ml
), h5:lang
(ml
), h6:lang
(ml
),
668 h2:lang
(mr
), h3:lang
(mr
), h4:lang
(mr
), h5:lang
(mr
), h6:lang
(mr
),
669 h2:lang
(my
), h3:lang
(my
), h4:lang
(my
), h5:lang
(my
), h6:lang
(my
),
670 h2:lang
(mai
), h3:lang
(mai
), h4:lang
(mai
), h5:lang
(mai
), h6:lang
(mai
),
671 h2:lang
(ne
), h3:lang
(ne
), h4:lang
(ne
), h5:lang
(ne
), h6:lang
(ne
),
672 h2:lang
(new
), h3:lang
(new
), h4:lang
(new
), h5:lang
(new
), h6:lang
(new
),
673 h2:lang
(or
), h3:lang
(or
), h4:lang
(or
), h5:lang
(or
), h6:lang
(or
),
674 h2:lang
(pa
), h3:lang
(pa
), h4:lang
(pa
), h5:lang
(pa
), h6:lang
(pa
),
675 h2:lang
(pi
), h3:lang
(pi
), h4:lang
(pi
), h5:lang
(pi
), h6:lang
(pi
),
676 h2:lang
(sa
), h3:lang
(sa
), h4:lang
(sa
), h5:lang
(sa
), h6:lang
(sa
),
677 h2:lang
(ta
), h3:lang
(ta
), h4:lang
(ta
), h5:lang
(ta
), h6:lang
(ta
),
678 h2:lang
(te
), h3:lang
(te
), h4:lang
(te
), h5:lang
(te
), h6:lang
(te
) {
682 /* Localised ordered list numbering for some languages */
693 list-style-type: -moz-persian
;
694 list-style-type: persian
;
699 list-style-type: -moz-arabic-indic
;
700 list-style-type: arabic-indic
;
705 list-style-type: -moz-devanagari
;
706 list-style-type: devanagari
;
711 list-style-type: -moz-bengali
;
712 list-style-type: bengali
;
716 list-style-type: -moz-oriya
;
717 list-style-type: oriya
;
724 /* Correct directionality when page dir is different from site/user dir */
725 /* @noflip */ .mw-content-ltr
.toc ul
,
726 .mw-content-ltr #toc ul
,
727 .mw-content-rtl
.mw-content-ltr
.toc ul
,
728 .mw-content-rtl .mw-content-ltr #toc ul {
732 /* @noflip */ .mw-content-rtl
.toc ul
,
733 .mw-content-rtl #toc ul
,
734 .mw-content-ltr
.mw-content-rtl
.toc ul
,
735 .mw-content-ltr .mw-content-rtl #toc ul {
739 /* @noflip */ .mw-content-ltr
.toc ul ul
,
740 .mw-content-ltr #toc ul ul
,
741 .mw-content-rtl
.mw-content-ltr
.toc ul ul
,
742 .mw-content-rtl .mw-content-ltr #toc ul ul {
746 /* @noflip */ .mw-content-rtl
.toc ul ul
,
747 .mw-content-rtl #toc ul ul
,
748 .mw-content-ltr
.mw-content-rtl
.toc ul ul
,
749 .mw-content-ltr .mw-content-rtl #toc ul ul {
761 .mw-help-field-hint {
766 background-image: url
(images
/help-question
.gif
);
767 background-position: left center
;
768 background-repeat: no-repeat
;
771 text-decoration: underline
;
775 .mw-help-field-hint:hover {
776 background-image: url
(images
/help-question-hover
.gif
);
779 .mw-help-field-data {
781 background-color: #d6f3ff;
782 padding: 5px 8px 4px 8px;
783 border: 1px solid
#5dc9f4;
796 /* Correct user & content directionality when viewing a diff */
797 .diff-currentversion-title
,
803 /* @noflip */ .diff-contentalign-right td
{
808 /* @noflip */ .diff-contentalign-left td
{
817 direction: ltr
!important
;
822 #mw-revision-info-current,
830 /* @noflip */ div
.tright
,
837 /* @noflip */ div
.tleft
,
861 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
864 /* Print footer should be hidden by default in screen. */
877 -moz-user-select: none
;
878 -webkit-user-select: none
;
879 -ms-user-select: none
;
883 /* Display editsection links smaller and next to headings */
885 .mw-editsection-like {
889 vertical-align: baseline
;
890 /* Reset line-height; headings tend to have it set to larger values */
892 /* As .mw-editsection is a <span> (inline element), it is treated as part */
893 /* of the heading content when selecting text by multiple clicks and thus */
894 /* selected together with heading content, despite the user-select: none; */
895 /* rule set above. This enforces non-selection without changing the look. */
896 display: inline-block
;
899 /* Correct directionality when page dir is different from site/user dir */
901 .mw-content-ltr
.mw-editsection
,
902 .mw-content-rtl .mw-content-ltr .mw-editsection {
907 .mw-content-rtl
.mw-editsection
,
908 .mw-content-ltr .mw-content-rtl .mw-editsection {
912 /* Prevent citations and subscripts from interfering with the line-height */