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 /* Colored watchlist and recent changes numbers */
83 color: #006400; /* dark green */
87 color: #8b0000; /* dark red */
91 color: #aaa; /* gray */
95 * Bidi-isolate these numbers.
96 * See https://phabricator.wikimedia.org/T93484
101 unicode-bidi: -moz-isolate
;
102 unicode-bidi: -webkit-isolate
;
103 unicode-bidi: isolate
;
107 * Links to redirects appear italicized on [[Special:AllPages]], [[Special:PrefixIndex]],
108 * [[Special:Watchlist/edit]] and in category listings.
111 .redirect-in-category
,
116 /* Comment and username portions of RC entries */
132 vertical-align: middle
;
140 * Add a bit of margin space between the preview and the toolbar.
141 * This replaces the ugly <p><br /></p> we used to insert into the page source
147 /* Stop floats from intruding into edit area in previews */
155 * File description page
158 div
.mw-filepage-resolutioninfo
{
169 table
.filehistory th
,
170 table
.filehistory td
{
174 table
.filehistory th
{
178 table
.filehistory td
.mw-imagepage-filesize
,
179 table
.filehistory th
.mw-imagepage-filesize
{
183 table
.filehistory td
.filehistory-selected
{
188 * Add a checkered background image on hover for file
189 * description pages. (bug 26470)
194 background: white url
(images/checker.png) repeat
;
201 span
.history-deleted
{
202 text-decoration: line-through
;
211 background-color: #ffa;
243 .prefsection td.mw-label {
251 .prefsection table.mw-htmlform-matrix {
256 /* SVG support using a transparent gradient to guarantee cross-browser
257 * compatibility (browsers able to understand gradient syntax support also SVG).
258 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
259 background-image: url
(images/question.png);
261 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(images/question.svg);
263 background-image: linear-gradient
(transparent
, transparent
), url
(images/question.svg);
264 background-repeat: no-repeat
;
265 background-size: 13px 13px;
266 display: inline-block
;
272 .mw-icon-question:lang
(ar
),
273 .mw-icon-question:lang
(fa
),
274 .mw-icon-question:lang(ur) {
275 -webkit-transform: scaleX
(-1);
276 -ms-transform: scaleX
(-1);
277 transform: scaleX
(-1);
284 table
.mw-htmlform-nolabel td
.mw-label
{
288 tr
.mw-htmlform-vertical-label td
.mw-label
{
289 text-align: left
!important
;
292 .mw-htmlform-invalid-input td.mw-input input {
296 .mw-htmlform-flatlist div.mw-htmlform-flatlist-item {
302 .mw-htmlform-matrix td {
304 padding-right: 0.5em;
315 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
319 .mw-content-ltr .thumbcaption {
324 .mw-content-ltr .magnify {
329 .mw-content-rtl .thumbcaption {
334 .mw-content-rtl .magnify {
343 * Overrides text justification (user preference)
354 list-style-type: none
;
355 list-style-image: none
;
356 vertical-align: middle
!ie
;
360 display: inline-block
;
362 border-left: 1px solid
#AAA;
369 .catlinks li:first-child {
370 padding-left: 0.25em;
374 /* (bug 5346) make category redirects italic */
375 .catlinks li a.mw-redirect {
382 .mw-hidden-cats-hidden {
386 .catlinks-allhidden {
391 * Convenience links to edit block, delete and protect reasons
392 * and upload licenses
394 p
.mw-ipb-conveniencelinks
,
395 p
.mw-protect-editreasons
,
396 p
.mw-filedelete-editreasons
,
397 p
.mw-delete-editreasons
,
398 p
.mw-revdel-editreasons
,
399 p
.mw-upload-editlicenses
{
404 /* Page history styling */
406 /* The auto-generated edit comments */
411 #pagehistory .history-user
{
416 #pagehistory span
.minor
{
421 border: 1px solid white
;
424 #pagehistory li
.selected
{
425 background-color: #f9f9f9;
426 border: 1px dashed
#aaa;
429 .mw-history-revisionactions, #mw-fileduplicatesearch-icon {
433 /** Generic minor/bot/newpage styling (recent changes) */
441 #shared-image-conflict {
446 * Recreating deleted page warning
447 * Reupload file warning
448 * Page protection warning
449 * incl. log entries for these warnings
451 div
.mw-warning-with-logexcerpt
{
454 border: 2px solid
#2F6FAB;
458 div
.mw-warning-with-logexcerpt ul li
{
462 /* (show/hide) revision deletion links */
463 span
.mw-revdelundel-link
,
464 strong
.mw-revdelundel-link
{
468 span
.mw-revdelundel-hidden
,
469 input
.mw-revdelundel-hidden
{
473 td
.mw-revdel-checkbox
,
474 th
.mw-revdel-checkbox
{
479 /* red links; see bug 36276 */
486 /* SVG support using a transparent gradient to guarantee cross-browser
487 * compatibility (browsers able to understand gradient syntax support also SVG).
488 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
489 background-image: url
(images
/feed-icon
.png
);
491 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(images
/feed-icon
.svg
);
493 background-image: linear-gradient
(transparent
, transparent
), url
(images
/feed-icon
.svg
);
494 background-position: center left
;
495 background-repeat: no-repeat
;
496 background-size: 12px 12px;
500 /* Plainlinks - this can be used to switch
501 * off special external link styling */
502 .plainlinks a.external {
503 background: none
!important
;
504 padding: 0 !important
;
507 /* External URLs should always be treated as LTR (bug 4330) */
508 /* @noflip */ .rtl a
.external
.free
,
509 .rtl a.external.autonumber {
515 * wikitable class for skinning normal tables
516 * keep in sync with commonPrint.css
520 background-color: #f9f9f9;
521 border: 1px solid
#aaa;
522 border-collapse: collapse
;
526 table
.wikitable
> tr
> th
,
527 table
.wikitable
> tr
> td
,
528 table
.wikitable
> * > tr
> th
,
529 table
.wikitable
> * > tr
> td
{
530 border: 1px solid
#aaa;
531 padding: 0.2em 0.4em;
534 table
.wikitable
> tr
> th
,
535 table
.wikitable
> * > tr
> th
{
536 background-color: #f2f2f2;
540 table
.wikitable
> caption
{
544 /* success and error messages */
569 display: -moz-inline-block
;
570 display: inline-block
;
588 border-color: #fac5c5;
589 background-color: #fae3e3;
594 border-color: #fde29b;
595 background-color: #fdf1d1;
600 border-color: #b7fdb5;
601 background-color: #e1fddf;
604 /* general info/warning box for SP */
606 border: 2px solid
#ff7f00;
619 margin: 0.5em 0.5em 0.5em 49px;
622 /* Note on preview page */
640 * Transparent table with suddle borders
641 * and blue row-highlighting.
644 border-collapse: collapse
;
650 border: 1px solid
#aaaaaa;
651 padding: 0 0.15em 0 0.15em;
655 background-color: #ddddff;
659 background-color: #ffffff;
662 .mw-datatable tr:hover td {
663 background-color: #eeeeff;
669 border: 1px solid
#aaaaaa;
670 background-color: #f9f9f9;
673 margin-bottom: 0.5em;
680 list-style-type: none
;
684 /* Classes for Exif data display */
688 margin-bottom: 0.5em;
692 table
.mw_metadata caption
{
696 table
.mw_metadata th
{
700 table
.mw_metadata td
{
706 border-collapse: collapse
;
709 table
.mw_metadata td
,
710 table
.mw_metadata th
{
712 border: 1px solid
#aaaaaa;
717 table
.mw_metadata th
{
718 background-color: #f9f9f9;
721 table
.mw_metadata td
{
722 background-color: #fcfcfc;
725 table
.mw_metadata ul
.metadata-langlist
{
726 list-style-type: none
;
727 list-style-image: none
;
733 /* Correct directionality when page dir is different from site/user dir */
735 .mw-content-rtl .mw-content-ltr ul {
737 margin: 0.3em 0 0 1.6em;
742 .mw-content-ltr .mw-content-rtl ul {
744 margin: 0.3em 1.6em 0 0;
749 .mw-content-rtl .mw-content-ltr ol {
751 margin: 0.3em 0 0 3.2em;
756 .mw-content-ltr .mw-content-rtl ol {
758 margin: 0.3em 3.2em 0 0;
764 .mw-content-rtl .mw-content-ltr dd {
771 .mw-content-ltr .mw-content-rtl dd {
777 /* These display attributes look nonsensical, but are needed to support IE and FF2 */
778 /* Don't forget to update commonPrint.css */
781 display: -moz-inline-box
;
782 display: inline-block
;
801 word-wrap: break-word
;
804 li
.gallerybox div
.thumb
{
806 border: 1px solid
#ccc;
807 background-color: #f9f9f9;
811 li
.gallerybox div
.thumb img
{
820 word-wrap: break-word
;
823 /* new gallery stuff */
824 ul
.mw-gallery-nolines li
.gallerybox div
.thumb
{
825 background-color: transparent
;
829 ul
.mw-gallery-nolines li
.gallerybox div
.gallerytext
{
833 /* height constrained gallery */
835 ul
.mw-gallery-packed li
.gallerybox div
.thumb
,
836 ul
.mw-gallery-packed-overlay li
.gallerybox div
.thumb
,
837 ul
.mw-gallery-packed-hover li
.gallerybox div
.thumb
{
838 background-color: transparent
;
842 ul
.mw-gallery-packed li
.gallerybox div
.thumb img
,
843 ul
.mw-gallery-packed-overlay li
.gallerybox div
.thumb img
,
844 ul
.mw-gallery-packed-hover li
.gallerybox div
.thumb img
{
848 ul
.mw-gallery-packed-hover li
.gallerybox
,
849 ul
.mw-gallery-packed-overlay li
.gallerybox
{
853 ul
.mw-gallery-packed-hover div
.gallerytextwrapper
{
858 ul
.mw-gallery-packed-hover li
.gallerybox:hover div
.gallerytextwrapper
,
859 ul
.mw-gallery-packed-overlay li
.gallerybox div
.gallerytextwrapper
,
860 ul
.mw-gallery-packed-hover li
.gallerybox
.mw-gallery-focused div
.gallerytextwrapper
{
863 background: rgba
(255, 255, 255, 0.8);
866 left: 0; /* Needed for IE */
869 margin: 2px; /* correspond to style on div.thumb */
872 ul
.mw-gallery-packed-hover
,
873 ul
.mw-gallery-packed-overlay
,
874 ul
.mw-gallery-packed
{
880 background-image: url
(images
/ajax-loader
.gif
);
881 background-position: center center
;
882 background-repeat: no-repeat
;
889 padding: 10px !important
;
892 background-image: url
(images/spinner.gif);
893 background-position: center center
;
894 background-repeat: no-repeat
;
897 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
898 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
901 h1:lang
(bh
), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
920 line-height: 1.6em !important
;
923 h2:lang
(anp
), h3:lang
(anp
), h4:lang
(anp
), h5:lang
(anp
), h6:lang
(anp
),
924 h2:lang
(as
), h3:lang
(as
), h4:lang
(as
), h5:lang
(as
), h6:lang
(as
),
925 h2:lang
(bho
), h3:lang
(bho
), h4:lang
(bho
), h5:lang
(bho
), h6:lang
(bho
),
926 h2:lang
(bh
), h3:lang
(bh
), h4:lang
(bh
), h5:lang
(bh
), h6:lang
(bh
),
927 h2:lang
(bn
), h3:lang
(bn
), h4:lang
(bn
), h5:lang
(bn
), h6:lang
(bn
),
928 h2:lang
(gu
), h3:lang
(gu
), h4:lang
(gu
), h5:lang
(gu
), h6:lang
(gu
),
929 h2:lang
(hi
), h3:lang
(hi
), h4:lang
(hi
), h5:lang
(hi
), h6:lang
(hi
),
930 h2:lang
(kn
), h3:lang
(kn
), h4:lang
(kn
), h5:lang
(kn
), h6:lang
(kn
),
931 h2:lang
(ks
), h3:lang
(ks
), h4:lang
(ks
), h5:lang
(ks
), h6:lang
(ks
),
932 h2:lang
(ml
), h3:lang
(ml
), h4:lang
(ml
), h5:lang
(ml
), h6:lang
(ml
),
933 h2:lang
(mr
), h3:lang
(mr
), h4:lang
(mr
), h5:lang
(mr
), h6:lang
(mr
),
934 h2:lang
(my
), h3:lang
(my
), h4:lang
(my
), h5:lang
(my
), h6:lang
(my
),
935 h2:lang
(mai
), h3:lang
(mai
), h4:lang
(mai
), h5:lang
(mai
), h6:lang
(mai
),
936 h2:lang
(ne
), h3:lang
(ne
), h4:lang
(ne
), h5:lang
(ne
), h6:lang
(ne
),
937 h2:lang
(new
), h3:lang
(new
), h4:lang
(new
), h5:lang
(new
), h6:lang
(new
),
938 h2:lang
(or
), h3:lang
(or
), h4:lang
(or
), h5:lang
(or
), h6:lang
(or
),
939 h2:lang
(pa
), h3:lang
(pa
), h4:lang
(pa
), h5:lang
(pa
), h6:lang
(pa
),
940 h2:lang
(pi
), h3:lang
(pi
), h4:lang
(pi
), h5:lang
(pi
), h6:lang
(pi
),
941 h2:lang
(sa
), h3:lang
(sa
), h4:lang
(sa
), h5:lang
(sa
), h6:lang
(sa
),
942 h2:lang
(ta
), h3:lang
(ta
), h4:lang
(ta
), h5:lang
(ta
), h6:lang
(ta
),
943 h2:lang
(te
), h3:lang
(te
), h4:lang
(te
), h5:lang
(te
), h6:lang
(te
) {
947 /* Localised ordered list numbering for some languages */
957 list-style-type: -moz-persian
;
958 list-style-type: persian
;
962 list-style-type: -moz-arabic-indic
;
963 list-style-type: arabic-indic
;
968 list-style-type: -moz-devanagari
;
969 list-style-type: devanagari
;
974 list-style-type: -moz-bengali
;
975 list-style-type: bengali
;
979 list-style-type: -moz-oriya
;
980 list-style-type: oriya
;
987 /* Correct directionality when page dir is different from site/user dir */
988 /* @noflip */ .mw-content-ltr
.toc ul
,
989 .mw-content-ltr #toc ul
,
990 .mw-content-rtl
.mw-content-ltr
.toc ul
,
991 .mw-content-rtl .mw-content-ltr #toc ul {
995 /* @noflip */ .mw-content-rtl
.toc ul
,
996 .mw-content-rtl #toc ul
,
997 .mw-content-ltr
.mw-content-rtl
.toc ul
,
998 .mw-content-ltr .mw-content-rtl #toc ul {
1002 /* @noflip */ .mw-content-ltr
.toc ul ul
,
1003 .mw-content-ltr #toc ul ul
,
1004 .mw-content-rtl
.mw-content-ltr
.toc ul ul
,
1005 .mw-content-rtl .mw-content-ltr #toc ul ul {
1009 /* @noflip */ .mw-content-rtl
.toc ul ul
,
1010 .mw-content-rtl #toc ul ul
,
1011 .mw-content-ltr
.mw-content-rtl
.toc ul ul
,
1012 .mw-content-ltr .mw-content-rtl #toc ul ul {
1023 /* tooltip styles */
1024 .mw-help-field-hint {
1027 margin-bottom: -8px;
1028 padding: 0 0 0 15px;
1030 background-image: url
(images
/help-question
.gif
);
1031 background-position: left center
;
1032 background-repeat: no-repeat
;
1035 text-decoration: underline
;
1039 .mw-help-field-hint:hover {
1041 background-image: url
(images
/help-question-hover
.gif
);
1044 .mw-help-field-data {
1046 background-color: #d6f3ff;
1047 padding: 5px 8px 4px 8px;
1048 border: 1px solid
#5dc9f4;
1058 unicode-bidi: embed
;
1061 /* Correct user & content directionality when viewing a diff */
1062 .diff-currentversion-title
,
1065 unicode-bidi: embed
;
1068 /* @noflip */ .diff-contentalign-right td
{
1070 unicode-bidi: embed
;
1073 /* @noflip */ .diff-contentalign-left td
{
1075 unicode-bidi: embed
;
1082 direction: ltr
!important
;
1083 unicode-bidi: embed
;
1087 #mw-revision-info-current,
1095 /* @noflip */ div
.tright
,
1102 /* @noflip */ div
.tleft
,
1118 unicode-bidi: embed
;
1126 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
1129 /* Print footer should be hidden by default in screen. */
1134 /* For developers */
1144 -moz-user-select: none
;
1145 -webkit-user-select: none
;
1146 -ms-user-select: none
;
1150 /* Display editsection links smaller and next to headings */
1152 .mw-editsection-like {
1154 font-weight: normal
;
1156 vertical-align: baseline
;
1157 /* Reset line-height; headings tend to have it set to larger values */
1159 /* As .mw-editsection is a <span> (inline element), it is treated as part */
1160 /* of the heading content when selecting text by multiple clicks and thus */
1161 /* selected together with heading content, despite the user-select: none; */
1162 /* rule set above. This enforces non-selection without changing the look. */
1163 display: inline-block
;
1166 /* Correct directionality when page dir is different from site/user dir */
1168 .mw-content-ltr
.mw-editsection
,
1169 .mw-content-rtl .mw-content-ltr .mw-editsection {
1174 .mw-content-rtl
.mw-editsection
,
1175 .mw-content-ltr .mw-content-rtl .mw-editsection {
1179 /* Prevent citations and subscripts from interfering with the line-height */