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: yellow
;
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: -webkit-isolate
;
116 unicode-bidi: isolate
;
120 * Links to redirects appear italicized on [[Special:AllPages]], [[Special:PrefixIndex]],
121 * [[Special:Watchlist/edit]] and in category listings.
124 .redirect-in-category
,
129 /* Comment and username portions of RC entries */
145 vertical-align: middle
;
153 * Add a bit of margin space between the preview and the toolbar.
154 * This replaces the ugly <p><br /></p> we used to insert into the page source
160 /* Stop floats from intruding into edit area in previews */
168 * File description page
171 div
.mw-filepage-resolutioninfo
{
182 table
.filehistory th
,
183 table
.filehistory td
{
187 table
.filehistory th
{
191 table
.filehistory td
.mw-imagepage-filesize
,
192 table
.filehistory th
.mw-imagepage-filesize
{
196 table
.filehistory td
.filehistory-selected
{
201 * Add a checkered background image on hover for file
202 * description pages. (bug 26470)
207 background: white url
(images/checker.png) repeat
;
214 span
.history-deleted
{
215 text-decoration: line-through
;
224 background-color: #ffa;
253 vertical-align: middle
;
256 .prefsection td.mw-label {
264 .prefsection table.mw-htmlform-matrix {
269 /* SVG support using a transparent gradient to guarantee cross-browser
270 * compatibility (browsers able to understand gradient syntax support also SVG).
271 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
272 background-image: url
(images/question.png);
273 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(images/question.svg);
274 background-image: linear-gradient
(transparent
, transparent
), url
(images/question.svg);
275 background-repeat: no-repeat
;
276 background-size: 13px 13px;
277 display: inline-block
;
283 .mw-icon-question:lang
(ar
),
284 .mw-icon-question:lang
(fa
),
285 .mw-icon-question:lang(ur) {
286 -webkit-transform: scaleX
(-1);
287 -ms-transform: scaleX
(-1);
288 transform: scaleX
(-1);
295 table
.mw-htmlform-nolabel td
.mw-label
{
299 tr
.mw-htmlform-vertical-label td
.mw-label
{
300 text-align: left
!important
;
303 .mw-htmlform-invalid-input td.mw-input input {
307 .mw-htmlform-flatlist div.mw-htmlform-flatlist-item {
313 .mw-htmlform-matrix td {
315 padding-right: 0.5em;
326 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
330 .mw-content-ltr .thumbcaption {
335 .mw-content-ltr .magnify {
340 .mw-content-rtl .thumbcaption {
345 .mw-content-rtl .magnify {
354 * Overrides text justification (user preference)
365 list-style-type: none
;
366 list-style-image: none
;
367 vertical-align: middle
!ie
;
371 display: inline-block
;
373 border-left: 1px solid
#AAA;
380 .catlinks li:first-child {
381 padding-left: 0.25em;
385 /* (bug 5346) make category redirects italic */
386 .catlinks li a.mw-redirect {
393 .mw-hidden-cats-hidden {
397 .catlinks-allhidden {
402 * Convenience links to edit block, delete and protect reasons
403 * and upload licenses
405 p
.mw-ipb-conveniencelinks
,
406 p
.mw-protect-editreasons
,
407 p
.mw-filedelete-editreasons
,
408 p
.mw-delete-editreasons
,
409 p
.mw-revdel-editreasons
,
410 p
.mw-upload-editlicenses
{
415 /* Page history styling */
417 /* The auto-generated edit comments */
422 #pagehistory .history-user
{
427 #pagehistory span
.minor
{
432 border: 1px solid white
;
435 #pagehistory li
.selected
{
436 background-color: #f9f9f9;
437 border: 1px dashed
#aaa;
440 .mw-history-revisionactions, #mw-fileduplicatesearch-icon {
444 /** Generic minor/bot/newpage styling (recent changes) */
452 #shared-image-conflict {
457 * Recreating deleted page warning
458 * Reupload file warning
459 * Page protection warning
460 * incl. log entries for these warnings
462 div
.mw-warning-with-logexcerpt
{
465 border: 2px solid
#2F6FAB;
469 div
.mw-warning-with-logexcerpt ul li
{
473 /* (show/hide) revision deletion links */
474 span
.mw-revdelundel-link
,
475 strong
.mw-revdelundel-link
{
479 span
.mw-revdelundel-hidden
,
480 input
.mw-revdelundel-hidden
{
484 td
.mw-revdel-checkbox
,
485 th
.mw-revdel-checkbox
{
490 /* red links; see bug 36276 */
496 /* To be removed before 1.26 release, moved to mediawiki.feedlink module */
498 /* SVG support using a transparent gradient to guarantee cross-browser
499 * compatibility (browsers able to understand gradient syntax support also SVG).
500 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
501 background-image: url
(../mediawiki
/images
/feed-icon
.png
);
502 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(../mediawiki
/images
/feed-icon
.svg
);
503 background-image: linear-gradient
(transparent
, transparent
), url
(../mediawiki
/images
/feed-icon
.svg
);
504 background-position: center left
;
505 background-repeat: no-repeat
;
506 background-size: 12px 12px;
510 /* Plainlinks - this can be used to switch
511 * off special external link styling */
512 .plainlinks a.external {
513 background: none
!important
;
514 padding: 0 !important
;
517 /* External URLs should always be treated as LTR (bug 4330) */
518 /* @noflip */ .rtl a
.external
.free
,
519 .rtl a.external.autonumber {
525 * wikitable class for skinning normal tables
526 * keep in sync with commonPrint.css
530 background-color: #f9f9f9;
531 border: 1px solid
#aaa;
532 border-collapse: collapse
;
536 table
.wikitable
> tr
> th
,
537 table
.wikitable
> tr
> td
,
538 table
.wikitable
> * > tr
> th
,
539 table
.wikitable
> * > tr
> td
{
540 border: 1px solid
#aaa;
541 padding: 0.2em 0.4em;
544 table
.wikitable
> tr
> th
,
545 table
.wikitable
> * > tr
> th
{
546 background-color: #f2f2f2;
550 table
.wikitable
> caption
{
554 /* success and error messages */
579 display: inline-block
;
597 border-color: #fac5c5;
598 background-color: #fae3e3;
603 border-color: #fde29b;
604 background-color: #fdf1d1;
609 border-color: #b7fdb5;
610 background-color: #e1fddf;
613 /* general info/warning box for SP */
615 border: 2px solid
#ff7f00;
628 margin: 0.5em 0.5em 0.5em 49px;
631 /* Note on preview page */
649 * Transparent table with suddle borders
650 * and blue row-highlighting.
653 border-collapse: collapse
;
659 border: 1px solid
#aaaaaa;
660 padding: 0 0.15em 0 0.15em;
664 background-color: #ddddff;
668 background-color: #ffffff;
671 .mw-datatable tr:hover td {
672 background-color: #eeeeff;
678 border: 1px solid
#aaaaaa;
679 background-color: #f9f9f9;
682 margin-bottom: 0.5em;
689 list-style-type: none
;
693 /* Classes for Exif data display */
697 margin-bottom: 0.5em;
701 table
.mw_metadata caption
{
705 table
.mw_metadata th
{
709 table
.mw_metadata td
{
715 border-collapse: collapse
;
718 table
.mw_metadata td
,
719 table
.mw_metadata th
{
721 border: 1px solid
#aaaaaa;
726 table
.mw_metadata th
{
727 background-color: #f9f9f9;
730 table
.mw_metadata td
{
731 background-color: #fcfcfc;
734 table
.mw_metadata ul
.metadata-langlist
{
735 list-style-type: none
;
736 list-style-image: none
;
742 /* Correct directionality when page dir is different from site/user dir */
744 .mw-content-rtl .mw-content-ltr ul {
746 margin: 0.3em 0 0 1.6em;
751 .mw-content-ltr .mw-content-rtl ul {
753 margin: 0.3em 1.6em 0 0;
758 .mw-content-rtl .mw-content-ltr ol {
760 margin: 0.3em 0 0 3.2em;
765 .mw-content-ltr .mw-content-rtl ol {
767 margin: 0.3em 3.2em 0 0;
773 .mw-content-rtl .mw-content-ltr dd {
780 .mw-content-ltr .mw-content-rtl dd {
786 /* These display attributes look nonsensical, but are needed to support IE and FF2 */
787 /* Don't forget to update commonPrint.css */
790 display: -moz-inline-box
;
791 display: inline-block
;
810 word-wrap: break-word
;
813 li
.gallerybox div
.thumb
{
815 border: 1px solid
#ccc;
816 background-color: #f9f9f9;
820 li
.gallerybox div
.thumb img
{
829 word-wrap: break-word
;
832 /* new gallery stuff */
833 ul
.mw-gallery-nolines li
.gallerybox div
.thumb
{
834 background-color: transparent
;
838 ul
.mw-gallery-nolines li
.gallerybox div
.gallerytext
{
842 /* height constrained gallery */
844 ul
.mw-gallery-packed li
.gallerybox div
.thumb
,
845 ul
.mw-gallery-packed-overlay li
.gallerybox div
.thumb
,
846 ul
.mw-gallery-packed-hover li
.gallerybox div
.thumb
{
847 background-color: transparent
;
851 ul
.mw-gallery-packed li
.gallerybox div
.thumb img
,
852 ul
.mw-gallery-packed-overlay li
.gallerybox div
.thumb img
,
853 ul
.mw-gallery-packed-hover li
.gallerybox div
.thumb img
{
857 ul
.mw-gallery-packed-hover li
.gallerybox
,
858 ul
.mw-gallery-packed-overlay li
.gallerybox
{
862 ul
.mw-gallery-packed-hover div
.gallerytextwrapper
{
867 ul
.mw-gallery-packed-hover li
.gallerybox:hover div
.gallerytextwrapper
,
868 ul
.mw-gallery-packed-overlay li
.gallerybox div
.gallerytextwrapper
,
869 ul
.mw-gallery-packed-hover li
.gallerybox
.mw-gallery-focused div
.gallerytextwrapper
{
872 background: rgba
(255, 255, 255, 0.8);
875 left: 0; /* Needed for IE */
878 margin: 2px; /* correspond to style on div.thumb */
881 ul
.mw-gallery-packed-hover
,
882 ul
.mw-gallery-packed-overlay
,
883 ul
.mw-gallery-packed
{
888 background-image: url
(images
/ajax-loader
.gif
);
889 background-position: center center
;
890 background-repeat: no-repeat
;
897 padding: 10px !important
;
899 background-image: url
(images/spinner.gif);
900 background-position: center center
;
901 background-repeat: no-repeat
;
904 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
905 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
908 h1:lang
(bh
), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
927 line-height: 1.6em !important
;
930 h2:lang
(anp
), h3:lang
(anp
), h4:lang
(anp
), h5:lang
(anp
), h6:lang
(anp
),
931 h2:lang
(as
), h3:lang
(as
), h4:lang
(as
), h5:lang
(as
), h6:lang
(as
),
932 h2:lang
(bho
), h3:lang
(bho
), h4:lang
(bho
), h5:lang
(bho
), h6:lang
(bho
),
933 h2:lang
(bh
), h3:lang
(bh
), h4:lang
(bh
), h5:lang
(bh
), h6:lang
(bh
),
934 h2:lang
(bn
), h3:lang
(bn
), h4:lang
(bn
), h5:lang
(bn
), h6:lang
(bn
),
935 h2:lang
(gu
), h3:lang
(gu
), h4:lang
(gu
), h5:lang
(gu
), h6:lang
(gu
),
936 h2:lang
(hi
), h3:lang
(hi
), h4:lang
(hi
), h5:lang
(hi
), h6:lang
(hi
),
937 h2:lang
(kn
), h3:lang
(kn
), h4:lang
(kn
), h5:lang
(kn
), h6:lang
(kn
),
938 h2:lang
(ks
), h3:lang
(ks
), h4:lang
(ks
), h5:lang
(ks
), h6:lang
(ks
),
939 h2:lang
(ml
), h3:lang
(ml
), h4:lang
(ml
), h5:lang
(ml
), h6:lang
(ml
),
940 h2:lang
(mr
), h3:lang
(mr
), h4:lang
(mr
), h5:lang
(mr
), h6:lang
(mr
),
941 h2:lang
(my
), h3:lang
(my
), h4:lang
(my
), h5:lang
(my
), h6:lang
(my
),
942 h2:lang
(mai
), h3:lang
(mai
), h4:lang
(mai
), h5:lang
(mai
), h6:lang
(mai
),
943 h2:lang
(ne
), h3:lang
(ne
), h4:lang
(ne
), h5:lang
(ne
), h6:lang
(ne
),
944 h2:lang
(new
), h3:lang
(new
), h4:lang
(new
), h5:lang
(new
), h6:lang
(new
),
945 h2:lang
(or
), h3:lang
(or
), h4:lang
(or
), h5:lang
(or
), h6:lang
(or
),
946 h2:lang
(pa
), h3:lang
(pa
), h4:lang
(pa
), h5:lang
(pa
), h6:lang
(pa
),
947 h2:lang
(pi
), h3:lang
(pi
), h4:lang
(pi
), h5:lang
(pi
), h6:lang
(pi
),
948 h2:lang
(sa
), h3:lang
(sa
), h4:lang
(sa
), h5:lang
(sa
), h6:lang
(sa
),
949 h2:lang
(ta
), h3:lang
(ta
), h4:lang
(ta
), h5:lang
(ta
), h6:lang
(ta
),
950 h2:lang
(te
), h3:lang
(te
), h4:lang
(te
), h5:lang
(te
), h6:lang
(te
) {
954 /* Localised ordered list numbering for some languages */
965 list-style-type: -moz-persian
;
966 list-style-type: persian
;
971 list-style-type: -moz-arabic-indic
;
972 list-style-type: arabic-indic
;
977 list-style-type: -moz-devanagari
;
978 list-style-type: devanagari
;
983 list-style-type: -moz-bengali
;
984 list-style-type: bengali
;
988 list-style-type: -moz-oriya
;
989 list-style-type: oriya
;
996 /* Correct directionality when page dir is different from site/user dir */
997 /* @noflip */ .mw-content-ltr
.toc ul
,
998 .mw-content-ltr #toc ul
,
999 .mw-content-rtl
.mw-content-ltr
.toc ul
,
1000 .mw-content-rtl .mw-content-ltr #toc ul {
1004 /* @noflip */ .mw-content-rtl
.toc ul
,
1005 .mw-content-rtl #toc ul
,
1006 .mw-content-ltr
.mw-content-rtl
.toc ul
,
1007 .mw-content-ltr .mw-content-rtl #toc ul {
1011 /* @noflip */ .mw-content-ltr
.toc ul ul
,
1012 .mw-content-ltr #toc ul ul
,
1013 .mw-content-rtl
.mw-content-ltr
.toc ul ul
,
1014 .mw-content-rtl .mw-content-ltr #toc ul ul {
1018 /* @noflip */ .mw-content-rtl
.toc ul ul
,
1019 .mw-content-rtl #toc ul ul
,
1020 .mw-content-ltr
.mw-content-rtl
.toc ul ul
,
1021 .mw-content-ltr .mw-content-rtl #toc ul ul {
1032 /* tooltip styles */
1033 .mw-help-field-hint {
1036 margin-bottom: -8px;
1037 padding: 0 0 0 15px;
1038 background-image: url
(images
/help-question
.gif
);
1039 background-position: left center
;
1040 background-repeat: no-repeat
;
1043 text-decoration: underline
;
1047 .mw-help-field-hint:hover {
1048 background-image: url
(images
/help-question-hover
.gif
);
1051 .mw-help-field-data {
1053 background-color: #d6f3ff;
1054 padding: 5px 8px 4px 8px;
1055 border: 1px solid
#5dc9f4;
1065 unicode-bidi: embed
;
1068 /* Correct user & content directionality when viewing a diff */
1069 .diff-currentversion-title
,
1072 unicode-bidi: embed
;
1075 /* @noflip */ .diff-contentalign-right td
{
1077 unicode-bidi: embed
;
1080 /* @noflip */ .diff-contentalign-left td
{
1082 unicode-bidi: embed
;
1089 direction: ltr
!important
;
1090 unicode-bidi: embed
;
1094 #mw-revision-info-current,
1102 /* @noflip */ div
.tright
,
1109 /* @noflip */ div
.tleft
,
1125 unicode-bidi: embed
;
1133 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
1136 /* Print footer should be hidden by default in screen. */
1141 /* For developers */
1151 -moz-user-select: none
;
1152 -webkit-user-select: none
;
1153 -ms-user-select: none
;
1157 /* Display editsection links smaller and next to headings */
1159 .mw-editsection-like {
1161 font-weight: normal
;
1163 vertical-align: baseline
;
1164 /* Reset line-height; headings tend to have it set to larger values */
1166 /* As .mw-editsection is a <span> (inline element), it is treated as part */
1167 /* of the heading content when selecting text by multiple clicks and thus */
1168 /* selected together with heading content, despite the user-select: none; */
1169 /* rule set above. This enforces non-selection without changing the look. */
1170 display: inline-block
;
1173 /* Correct directionality when page dir is different from site/user dir */
1175 .mw-content-ltr
.mw-editsection
,
1176 .mw-content-rtl .mw-content-ltr .mw-editsection {
1181 .mw-content-rtl
.mw-editsection
,
1182 .mw-content-ltr .mw-content-rtl .mw-editsection {
1186 /* Prevent citations and subscripts from interfering with the line-height */