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.
7 /* GENERAL CLASSES FOR DIRECTIONALITY SUPPORT */
10 * These classes should be used for text depending on the content direction.
11 * Content stuff like editsection, ul/ol and TOC depend on this.
23 /* Most input fields should be in site direction */
24 .sitedir-ltr textarea
,
30 .sitedir-rtl textarea
,
40 /* User-Agent styles for new HTML5 elements */
42 background-color: yellow
;
46 /* Helper for wbr element on IE 8+; in HTML5, but not supported by default as of IE 11. */
47 /* Note canonical HTML5 styles recommend "content: \u200B", but this doesn't work as of IE 11. */
49 display: inline-block
;
52 /* Input types that should follow user direction, like buttons */
53 /* TODO: What about buttons in wikipage content ? */
61 /* Override default values */
74 /* Default style for semantic tags */
77 border-bottom: 1px dotted
;
81 @supports (text-decoration: underline dotted
) {
84 border-bottom: initial
;
85 text-decoration: underline dotted
;
89 /* Colored watchlist and recent changes numbers */
91 color: #006400; /* dark green */
95 color: #8b0000; /* dark red */
99 color: #aaa; /* gray */
103 * Bidi-isolate these numbers.
104 * See https://phabricator.wikimedia.org/T93484
109 unicode-bidi: -moz-isolate
;
110 unicode-bidi: -webkit-isolate
;
111 unicode-bidi: isolate
;
115 * Links to redirects appear italicized on [[Special:AllPages]], [[Special:PrefixIndex]],
116 * [[Special:Watchlist/edit]] and in category listings.
119 .redirect-in-category
,
124 /* Comment and username portions of RC entries */
140 vertical-align: middle
;
148 * Add a bit of margin space between the preview and the toolbar.
149 * This replaces the ugly <p><br /></p> we used to insert into the page source
155 /* Stop floats from intruding into edit area in previews */
163 * File description page
166 div
.mw-filepage-resolutioninfo
{
177 table
.filehistory th
,
178 table
.filehistory td
{
182 table
.filehistory th
{
186 table
.filehistory td
.mw-imagepage-filesize
,
187 table
.filehistory th
.mw-imagepage-filesize
{
191 table
.filehistory td
.filehistory-selected
{
196 * Add a checkered background image on hover for file
197 * description pages. (bug 26470)
202 background: white url
(images/checker.png) repeat
;
209 span
.history-deleted
{
210 text-decoration: line-through
;
219 background-color: #ffa;
248 vertical-align: middle
;
251 .prefsection td.mw-label {
259 .prefsection table.mw-htmlform-matrix {
264 /* SVG support using a transparent gradient to guarantee cross-browser
265 * compatibility (browsers able to understand gradient syntax support also SVG).
266 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
267 background-image: url
(images/question.png);
269 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(images/question.svg);
271 background-image: linear-gradient
(transparent
, transparent
), url
(images/question.svg);
272 background-repeat: no-repeat
;
273 background-size: 13px 13px;
274 display: inline-block
;
280 .mw-icon-question:lang
(ar
),
281 .mw-icon-question:lang
(fa
),
282 .mw-icon-question:lang(ur) {
283 -webkit-transform: scaleX
(-1);
284 -ms-transform: scaleX
(-1);
285 transform: scaleX
(-1);
292 table
.mw-htmlform-nolabel td
.mw-label
{
296 tr
.mw-htmlform-vertical-label td
.mw-label
{
297 text-align: left
!important
;
300 .mw-htmlform-invalid-input td.mw-input input {
304 .mw-htmlform-flatlist div.mw-htmlform-flatlist-item {
310 .mw-htmlform-matrix td {
312 padding-right: 0.5em;
323 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
327 .mw-content-ltr .thumbcaption {
332 .mw-content-ltr .magnify {
337 .mw-content-rtl .thumbcaption {
342 .mw-content-rtl .magnify {
351 * Overrides text justification (user preference)
362 list-style-type: none
;
363 list-style-image: none
;
364 vertical-align: middle
!ie
;
368 display: inline-block
;
370 border-left: 1px solid
#AAA;
377 .catlinks li:first-child {
378 padding-left: 0.25em;
382 /* (bug 5346) make category redirects italic */
383 .catlinks li a.mw-redirect {
390 .mw-hidden-cats-hidden {
394 .catlinks-allhidden {
399 * Convenience links to edit block, delete and protect reasons
400 * and upload licenses
402 p
.mw-ipb-conveniencelinks
,
403 p
.mw-protect-editreasons
,
404 p
.mw-filedelete-editreasons
,
405 p
.mw-delete-editreasons
,
406 p
.mw-revdel-editreasons
,
407 p
.mw-upload-editlicenses
{
412 /* Page history styling */
414 /* The auto-generated edit comments */
419 #pagehistory .history-user
{
424 #pagehistory span
.minor
{
429 border: 1px solid white
;
432 #pagehistory li
.selected
{
433 background-color: #f9f9f9;
434 border: 1px dashed
#aaa;
437 .mw-history-revisionactions, #mw-fileduplicatesearch-icon {
441 /** Generic minor/bot/newpage styling (recent changes) */
449 #shared-image-conflict {
454 * Recreating deleted page warning
455 * Reupload file warning
456 * Page protection warning
457 * incl. log entries for these warnings
459 div
.mw-warning-with-logexcerpt
{
462 border: 2px solid
#2F6FAB;
466 div
.mw-warning-with-logexcerpt ul li
{
470 /* (show/hide) revision deletion links */
471 span
.mw-revdelundel-link
,
472 strong
.mw-revdelundel-link
{
476 span
.mw-revdelundel-hidden
,
477 input
.mw-revdelundel-hidden
{
481 td
.mw-revdel-checkbox
,
482 th
.mw-revdel-checkbox
{
487 /* red links; see bug 36276 */
494 /* SVG support using a transparent gradient to guarantee cross-browser
495 * compatibility (browsers able to understand gradient syntax support also SVG).
496 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
497 background-image: url
(images
/feed-icon
.png
);
499 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(images
/feed-icon
.svg
);
501 background-image: linear-gradient
(transparent
, transparent
), url
(images
/feed-icon
.svg
);
502 background-position: center left
;
503 background-repeat: no-repeat
;
504 background-size: 12px 12px;
508 /* Plainlinks - this can be used to switch
509 * off special external link styling */
510 .plainlinks a.external {
511 background: none
!important
;
512 padding: 0 !important
;
515 /* External URLs should always be treated as LTR (bug 4330) */
516 /* @noflip */ .rtl a
.external
.free
,
517 .rtl a.external.autonumber {
523 * wikitable class for skinning normal tables
524 * keep in sync with commonPrint.css
528 background-color: #f9f9f9;
529 border: 1px solid
#aaa;
530 border-collapse: collapse
;
534 table
.wikitable
> tr
> th
,
535 table
.wikitable
> tr
> td
,
536 table
.wikitable
> * > tr
> th
,
537 table
.wikitable
> * > tr
> td
{
538 border: 1px solid
#aaa;
539 padding: 0.2em 0.4em;
542 table
.wikitable
> tr
> th
,
543 table
.wikitable
> * > tr
> th
{
544 background-color: #f2f2f2;
548 table
.wikitable
> caption
{
552 /* success and error messages */
577 display: inline-block
;
595 border-color: #fac5c5;
596 background-color: #fae3e3;
601 border-color: #fde29b;
602 background-color: #fdf1d1;
607 border-color: #b7fdb5;
608 background-color: #e1fddf;
611 /* general info/warning box for SP */
613 border: 2px solid
#ff7f00;
626 margin: 0.5em 0.5em 0.5em 49px;
629 /* Note on preview page */
647 * Transparent table with suddle borders
648 * and blue row-highlighting.
651 border-collapse: collapse
;
657 border: 1px solid
#aaaaaa;
658 padding: 0 0.15em 0 0.15em;
662 background-color: #ddddff;
666 background-color: #ffffff;
669 .mw-datatable tr:hover td {
670 background-color: #eeeeff;
676 border: 1px solid
#aaaaaa;
677 background-color: #f9f9f9;
680 margin-bottom: 0.5em;
687 list-style-type: none
;
691 /* Classes for Exif data display */
695 margin-bottom: 0.5em;
699 table
.mw_metadata caption
{
703 table
.mw_metadata th
{
707 table
.mw_metadata td
{
713 border-collapse: collapse
;
716 table
.mw_metadata td
,
717 table
.mw_metadata th
{
719 border: 1px solid
#aaaaaa;
724 table
.mw_metadata th
{
725 background-color: #f9f9f9;
728 table
.mw_metadata td
{
729 background-color: #fcfcfc;
732 table
.mw_metadata ul
.metadata-langlist
{
733 list-style-type: none
;
734 list-style-image: none
;
740 /* Correct directionality when page dir is different from site/user dir */
742 .mw-content-rtl .mw-content-ltr ul {
744 margin: 0.3em 0 0 1.6em;
749 .mw-content-ltr .mw-content-rtl ul {
751 margin: 0.3em 1.6em 0 0;
756 .mw-content-rtl .mw-content-ltr ol {
758 margin: 0.3em 0 0 3.2em;
763 .mw-content-ltr .mw-content-rtl ol {
765 margin: 0.3em 3.2em 0 0;
771 .mw-content-rtl .mw-content-ltr dd {
778 .mw-content-ltr .mw-content-rtl dd {
784 /* These display attributes look nonsensical, but are needed to support IE and FF2 */
785 /* Don't forget to update commonPrint.css */
788 display: -moz-inline-box
;
789 display: inline-block
;
808 word-wrap: break-word
;
811 li
.gallerybox div
.thumb
{
813 border: 1px solid
#ccc;
814 background-color: #f9f9f9;
818 li
.gallerybox div
.thumb img
{
827 word-wrap: break-word
;
830 /* new gallery stuff */
831 ul
.mw-gallery-nolines li
.gallerybox div
.thumb
{
832 background-color: transparent
;
836 ul
.mw-gallery-nolines li
.gallerybox div
.gallerytext
{
840 /* height constrained gallery */
842 ul
.mw-gallery-packed li
.gallerybox div
.thumb
,
843 ul
.mw-gallery-packed-overlay li
.gallerybox div
.thumb
,
844 ul
.mw-gallery-packed-hover li
.gallerybox div
.thumb
{
845 background-color: transparent
;
849 ul
.mw-gallery-packed li
.gallerybox div
.thumb img
,
850 ul
.mw-gallery-packed-overlay li
.gallerybox div
.thumb img
,
851 ul
.mw-gallery-packed-hover li
.gallerybox div
.thumb img
{
855 ul
.mw-gallery-packed-hover li
.gallerybox
,
856 ul
.mw-gallery-packed-overlay li
.gallerybox
{
860 ul
.mw-gallery-packed-hover div
.gallerytextwrapper
{
865 ul
.mw-gallery-packed-hover li
.gallerybox:hover div
.gallerytextwrapper
,
866 ul
.mw-gallery-packed-overlay li
.gallerybox div
.gallerytextwrapper
,
867 ul
.mw-gallery-packed-hover li
.gallerybox
.mw-gallery-focused div
.gallerytextwrapper
{
870 background: rgba
(255, 255, 255, 0.8);
873 left: 0; /* Needed for IE */
876 margin: 2px; /* correspond to style on div.thumb */
879 ul
.mw-gallery-packed-hover
,
880 ul
.mw-gallery-packed-overlay
,
881 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
;
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;
1039 background-image: url
(images
/help-question
.gif
);
1040 background-position: left center
;
1041 background-repeat: no-repeat
;
1044 text-decoration: underline
;
1048 .mw-help-field-hint:hover {
1050 background-image: url
(images
/help-question-hover
.gif
);
1053 .mw-help-field-data {
1055 background-color: #d6f3ff;
1056 padding: 5px 8px 4px 8px;
1057 border: 1px solid
#5dc9f4;
1067 unicode-bidi: embed
;
1070 /* Correct user & content directionality when viewing a diff */
1071 .diff-currentversion-title
,
1074 unicode-bidi: embed
;
1077 /* @noflip */ .diff-contentalign-right td
{
1079 unicode-bidi: embed
;
1082 /* @noflip */ .diff-contentalign-left td
{
1084 unicode-bidi: embed
;
1091 direction: ltr
!important
;
1092 unicode-bidi: embed
;
1096 #mw-revision-info-current,
1104 /* @noflip */ div
.tright
,
1111 /* @noflip */ div
.tleft
,
1127 unicode-bidi: embed
;
1135 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
1138 /* Print footer should be hidden by default in screen. */
1143 /* For developers */
1153 -moz-user-select: none
;
1154 -webkit-user-select: none
;
1155 -ms-user-select: none
;
1159 /* Display editsection links smaller and next to headings */
1161 .mw-editsection-like {
1163 font-weight: normal
;
1165 vertical-align: baseline
;
1166 /* Reset line-height; headings tend to have it set to larger values */
1168 /* As .mw-editsection is a <span> (inline element), it is treated as part */
1169 /* of the heading content when selecting text by multiple clicks and thus */
1170 /* selected together with heading content, despite the user-select: none; */
1171 /* rule set above. This enforces non-selection without changing the look. */
1172 display: inline-block
;
1175 /* Correct directionality when page dir is different from site/user dir */
1177 .mw-content-ltr
.mw-editsection
,
1178 .mw-content-rtl .mw-content-ltr .mw-editsection {
1183 .mw-content-rtl
.mw-editsection
,
1184 .mw-content-ltr .mw-content-rtl .mw-editsection {
1188 /* Prevent citations and subscripts from interfering with the line-height */