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 */
497 /* SVG support using a transparent gradient to guarantee cross-browser
498 * compatibility (browsers able to understand gradient syntax support also SVG).
499 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
500 background-image: url
(images
/feed-icon
.png
);
501 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(images
/feed-icon
.svg
);
502 background-image: linear-gradient
(transparent
, transparent
), url
(images
/feed-icon
.svg
);
503 background-position: center left
;
504 background-repeat: no-repeat
;
505 background-size: 12px 12px;
509 /* Plainlinks - this can be used to switch
510 * off special external link styling */
511 .plainlinks a.external {
512 background: none
!important
;
513 padding: 0 !important
;
516 /* External URLs should always be treated as LTR (bug 4330) */
517 /* @noflip */ .rtl a
.external
.free
,
518 .rtl a.external.autonumber {
524 * wikitable class for skinning normal tables
525 * keep in sync with commonPrint.css
529 background-color: #f9f9f9;
530 border: 1px solid
#aaa;
531 border-collapse: collapse
;
535 table
.wikitable
> tr
> th
,
536 table
.wikitable
> tr
> td
,
537 table
.wikitable
> * > tr
> th
,
538 table
.wikitable
> * > tr
> td
{
539 border: 1px solid
#aaa;
540 padding: 0.2em 0.4em;
543 table
.wikitable
> tr
> th
,
544 table
.wikitable
> * > tr
> th
{
545 background-color: #f2f2f2;
549 table
.wikitable
> caption
{
553 /* success and error messages */
578 display: inline-block
;
596 border-color: #fac5c5;
597 background-color: #fae3e3;
602 border-color: #fde29b;
603 background-color: #fdf1d1;
608 border-color: #b7fdb5;
609 background-color: #e1fddf;
612 /* general info/warning box for SP */
614 border: 2px solid
#ff7f00;
627 margin: 0.5em 0.5em 0.5em 49px;
630 /* Note on preview page */
648 * Transparent table with suddle borders
649 * and blue row-highlighting.
652 border-collapse: collapse
;
658 border: 1px solid
#aaaaaa;
659 padding: 0 0.15em 0 0.15em;
663 background-color: #ddddff;
667 background-color: #ffffff;
670 .mw-datatable tr:hover td {
671 background-color: #eeeeff;
677 border: 1px solid
#aaaaaa;
678 background-color: #f9f9f9;
681 margin-bottom: 0.5em;
688 list-style-type: none
;
692 /* Classes for Exif data display */
696 margin-bottom: 0.5em;
700 table
.mw_metadata caption
{
704 table
.mw_metadata th
{
708 table
.mw_metadata td
{
714 border-collapse: collapse
;
717 table
.mw_metadata td
,
718 table
.mw_metadata th
{
720 border: 1px solid
#aaaaaa;
725 table
.mw_metadata th
{
726 background-color: #f9f9f9;
729 table
.mw_metadata td
{
730 background-color: #fcfcfc;
733 table
.mw_metadata ul
.metadata-langlist
{
734 list-style-type: none
;
735 list-style-image: none
;
741 /* Correct directionality when page dir is different from site/user dir */
743 .mw-content-rtl .mw-content-ltr ul {
745 margin: 0.3em 0 0 1.6em;
750 .mw-content-ltr .mw-content-rtl ul {
752 margin: 0.3em 1.6em 0 0;
757 .mw-content-rtl .mw-content-ltr ol {
759 margin: 0.3em 0 0 3.2em;
764 .mw-content-ltr .mw-content-rtl ol {
766 margin: 0.3em 3.2em 0 0;
772 .mw-content-rtl .mw-content-ltr dd {
779 .mw-content-ltr .mw-content-rtl dd {
785 /* These display attributes look nonsensical, but are needed to support IE and FF2 */
786 /* Don't forget to update commonPrint.css */
789 display: -moz-inline-box
;
790 display: inline-block
;
809 word-wrap: break-word
;
812 li
.gallerybox div
.thumb
{
814 border: 1px solid
#ccc;
815 background-color: #f9f9f9;
819 li
.gallerybox div
.thumb img
{
828 word-wrap: break-word
;
831 /* new gallery stuff */
832 ul
.mw-gallery-nolines li
.gallerybox div
.thumb
{
833 background-color: transparent
;
837 ul
.mw-gallery-nolines li
.gallerybox div
.gallerytext
{
841 /* height constrained gallery */
843 ul
.mw-gallery-packed li
.gallerybox div
.thumb
,
844 ul
.mw-gallery-packed-overlay li
.gallerybox div
.thumb
,
845 ul
.mw-gallery-packed-hover li
.gallerybox div
.thumb
{
846 background-color: transparent
;
850 ul
.mw-gallery-packed li
.gallerybox div
.thumb img
,
851 ul
.mw-gallery-packed-overlay li
.gallerybox div
.thumb img
,
852 ul
.mw-gallery-packed-hover li
.gallerybox div
.thumb img
{
856 ul
.mw-gallery-packed-hover li
.gallerybox
,
857 ul
.mw-gallery-packed-overlay li
.gallerybox
{
861 ul
.mw-gallery-packed-hover div
.gallerytextwrapper
{
866 ul
.mw-gallery-packed-hover li
.gallerybox:hover div
.gallerytextwrapper
,
867 ul
.mw-gallery-packed-overlay li
.gallerybox div
.gallerytextwrapper
,
868 ul
.mw-gallery-packed-hover li
.gallerybox
.mw-gallery-focused div
.gallerytextwrapper
{
871 background: rgba
(255, 255, 255, 0.8);
874 left: 0; /* Needed for IE */
877 margin: 2px; /* correspond to style on div.thumb */
880 ul
.mw-gallery-packed-hover
,
881 ul
.mw-gallery-packed-overlay
,
882 ul
.mw-gallery-packed
{
887 background-image: url
(images
/ajax-loader
.gif
);
888 background-position: center center
;
889 background-repeat: no-repeat
;
896 padding: 10px !important
;
898 background-image: url
(images/spinner.gif);
899 background-position: center center
;
900 background-repeat: no-repeat
;
903 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
904 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
907 h1:lang
(bh
), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
926 line-height: 1.6em !important
;
929 h2:lang
(anp
), h3:lang
(anp
), h4:lang
(anp
), h5:lang
(anp
), h6:lang
(anp
),
930 h2:lang
(as
), h3:lang
(as
), h4:lang
(as
), h5:lang
(as
), h6:lang
(as
),
931 h2:lang
(bho
), h3:lang
(bho
), h4:lang
(bho
), h5:lang
(bho
), h6:lang
(bho
),
932 h2:lang
(bh
), h3:lang
(bh
), h4:lang
(bh
), h5:lang
(bh
), h6:lang
(bh
),
933 h2:lang
(bn
), h3:lang
(bn
), h4:lang
(bn
), h5:lang
(bn
), h6:lang
(bn
),
934 h2:lang
(gu
), h3:lang
(gu
), h4:lang
(gu
), h5:lang
(gu
), h6:lang
(gu
),
935 h2:lang
(hi
), h3:lang
(hi
), h4:lang
(hi
), h5:lang
(hi
), h6:lang
(hi
),
936 h2:lang
(kn
), h3:lang
(kn
), h4:lang
(kn
), h5:lang
(kn
), h6:lang
(kn
),
937 h2:lang
(ks
), h3:lang
(ks
), h4:lang
(ks
), h5:lang
(ks
), h6:lang
(ks
),
938 h2:lang
(ml
), h3:lang
(ml
), h4:lang
(ml
), h5:lang
(ml
), h6:lang
(ml
),
939 h2:lang
(mr
), h3:lang
(mr
), h4:lang
(mr
), h5:lang
(mr
), h6:lang
(mr
),
940 h2:lang
(my
), h3:lang
(my
), h4:lang
(my
), h5:lang
(my
), h6:lang
(my
),
941 h2:lang
(mai
), h3:lang
(mai
), h4:lang
(mai
), h5:lang
(mai
), h6:lang
(mai
),
942 h2:lang
(ne
), h3:lang
(ne
), h4:lang
(ne
), h5:lang
(ne
), h6:lang
(ne
),
943 h2:lang
(new
), h3:lang
(new
), h4:lang
(new
), h5:lang
(new
), h6:lang
(new
),
944 h2:lang
(or
), h3:lang
(or
), h4:lang
(or
), h5:lang
(or
), h6:lang
(or
),
945 h2:lang
(pa
), h3:lang
(pa
), h4:lang
(pa
), h5:lang
(pa
), h6:lang
(pa
),
946 h2:lang
(pi
), h3:lang
(pi
), h4:lang
(pi
), h5:lang
(pi
), h6:lang
(pi
),
947 h2:lang
(sa
), h3:lang
(sa
), h4:lang
(sa
), h5:lang
(sa
), h6:lang
(sa
),
948 h2:lang
(ta
), h3:lang
(ta
), h4:lang
(ta
), h5:lang
(ta
), h6:lang
(ta
),
949 h2:lang
(te
), h3:lang
(te
), h4:lang
(te
), h5:lang
(te
), h6:lang
(te
) {
953 /* Localised ordered list numbering for some languages */
964 list-style-type: -moz-persian
;
965 list-style-type: persian
;
970 list-style-type: -moz-arabic-indic
;
971 list-style-type: arabic-indic
;
976 list-style-type: -moz-devanagari
;
977 list-style-type: devanagari
;
982 list-style-type: -moz-bengali
;
983 list-style-type: bengali
;
987 list-style-type: -moz-oriya
;
988 list-style-type: oriya
;
995 /* Correct directionality when page dir is different from site/user dir */
996 /* @noflip */ .mw-content-ltr
.toc ul
,
997 .mw-content-ltr #toc ul
,
998 .mw-content-rtl
.mw-content-ltr
.toc ul
,
999 .mw-content-rtl .mw-content-ltr #toc ul {
1003 /* @noflip */ .mw-content-rtl
.toc ul
,
1004 .mw-content-rtl #toc ul
,
1005 .mw-content-ltr
.mw-content-rtl
.toc ul
,
1006 .mw-content-ltr .mw-content-rtl #toc ul {
1010 /* @noflip */ .mw-content-ltr
.toc ul ul
,
1011 .mw-content-ltr #toc ul ul
,
1012 .mw-content-rtl
.mw-content-ltr
.toc ul ul
,
1013 .mw-content-rtl .mw-content-ltr #toc ul ul {
1017 /* @noflip */ .mw-content-rtl
.toc ul ul
,
1018 .mw-content-rtl #toc ul ul
,
1019 .mw-content-ltr
.mw-content-rtl
.toc ul ul
,
1020 .mw-content-ltr .mw-content-rtl #toc ul ul {
1031 /* tooltip styles */
1032 .mw-help-field-hint {
1035 margin-bottom: -8px;
1036 padding: 0 0 0 15px;
1037 background-image: url
(images
/help-question
.gif
);
1038 background-position: left center
;
1039 background-repeat: no-repeat
;
1042 text-decoration: underline
;
1046 .mw-help-field-hint:hover {
1047 background-image: url
(images
/help-question-hover
.gif
);
1050 .mw-help-field-data {
1052 background-color: #d6f3ff;
1053 padding: 5px 8px 4px 8px;
1054 border: 1px solid
#5dc9f4;
1064 unicode-bidi: embed
;
1067 /* Correct user & content directionality when viewing a diff */
1068 .diff-currentversion-title
,
1071 unicode-bidi: embed
;
1074 /* @noflip */ .diff-contentalign-right td
{
1076 unicode-bidi: embed
;
1079 /* @noflip */ .diff-contentalign-left td
{
1081 unicode-bidi: embed
;
1088 direction: ltr
!important
;
1089 unicode-bidi: embed
;
1093 #mw-revision-info-current,
1101 /* @noflip */ div
.tright
,
1108 /* @noflip */ div
.tleft
,
1124 unicode-bidi: embed
;
1132 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
1135 /* Print footer should be hidden by default in screen. */
1140 /* For developers */
1150 -moz-user-select: none
;
1151 -webkit-user-select: none
;
1152 -ms-user-select: none
;
1156 /* Display editsection links smaller and next to headings */
1158 .mw-editsection-like {
1160 font-weight: normal
;
1162 vertical-align: baseline
;
1163 /* Reset line-height; headings tend to have it set to larger values */
1165 /* As .mw-editsection is a <span> (inline element), it is treated as part */
1166 /* of the heading content when selecting text by multiple clicks and thus */
1167 /* selected together with heading content, despite the user-select: none; */
1168 /* rule set above. This enforces non-selection without changing the look. */
1169 display: inline-block
;
1172 /* Correct directionality when page dir is different from site/user dir */
1174 .mw-content-ltr
.mw-editsection
,
1175 .mw-content-rtl .mw-content-ltr .mw-editsection {
1180 .mw-content-rtl
.mw-editsection
,
1181 .mw-content-ltr .mw-content-rtl .mw-editsection {
1185 /* Prevent citations and subscripts from interfering with the line-height */