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 portions of RC entries */
141 vertical-align: middle
;
149 * Add a bit of margin space between the preview and the toolbar.
150 * This replaces the ugly <p><br /></p> we used to insert into the page source
156 /* Stop floats from intruding into edit area in previews */
167 span
.history-deleted
{
168 text-decoration: line-through
;
177 background-color: #ffa;
206 vertical-align: middle
;
209 .prefsection td.mw-label {
217 .prefsection table.mw-htmlform-matrix {
222 /* SVG support using a transparent gradient to guarantee cross-browser
223 * compatibility (browsers able to understand gradient syntax support also SVG).
224 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
225 background-image: url
(images/question.png);
226 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(images/question.svg);
227 background-image: linear-gradient
(transparent
, transparent
), url
(images/question.svg);
228 background-repeat: no-repeat
;
229 background-size: 13px 13px;
230 display: inline-block
;
236 .mw-icon-question:lang
(ar
),
237 .mw-icon-question:lang
(fa
),
238 .mw-icon-question:lang(ur) {
239 -webkit-transform: scaleX
(-1);
240 -ms-transform: scaleX
(-1);
241 transform: scaleX
(-1);
248 table
.mw-htmlform-nolabel td
.mw-label
{
252 tr
.mw-htmlform-vertical-label td
.mw-label
{
253 text-align: left
!important
;
256 .mw-htmlform-invalid-input td.mw-input input {
260 .mw-htmlform-flatlist div.mw-htmlform-flatlist-item {
266 .mw-htmlform-matrix td {
268 padding-right: 0.5em;
279 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
283 .mw-content-ltr .thumbcaption {
288 .mw-content-ltr .magnify {
293 .mw-content-rtl .thumbcaption {
298 .mw-content-rtl .magnify {
307 * Overrides text justification (user preference)
318 list-style-type: none
;
319 list-style-image: none
;
320 vertical-align: middle
!ie
;
324 display: inline-block
;
326 border-left: 1px solid
#AAA;
333 .catlinks li:first-child {
334 padding-left: 0.25em;
338 /* (bug 5346) make category redirects italic */
339 .catlinks li a.mw-redirect {
346 .mw-hidden-cats-hidden {
350 .catlinks-allhidden {
355 * Convenience links to edit block, delete and protect reasons
356 * and upload licenses
358 p
.mw-ipb-conveniencelinks
,
359 p
.mw-protect-editreasons
,
360 p
.mw-filedelete-editreasons
,
361 p
.mw-delete-editreasons
,
362 p
.mw-revdel-editreasons
,
363 p
.mw-upload-editlicenses
{
368 /* Page history styling */
370 /* The auto-generated edit comments */
375 #pagehistory .history-user
{
380 #pagehistory span
.minor
{
385 border: 1px solid white
;
388 #pagehistory li
.selected
{
389 background-color: #f9f9f9;
390 border: 1px dashed
#aaa;
393 .mw-history-revisionactions, #mw-fileduplicatesearch-icon {
397 /** Generic minor/bot/newpage styling (recent changes) */
405 * Recreating deleted page warning
406 * Reupload file warning
407 * Page protection warning
408 * incl. log entries for these warnings
410 div
.mw-warning-with-logexcerpt
{
413 border: 2px solid
#2F6FAB;
417 div
.mw-warning-with-logexcerpt ul li
{
421 /* (show/hide) revision deletion links */
422 span
.mw-revdelundel-link
,
423 strong
.mw-revdelundel-link
{
427 span
.mw-revdelundel-hidden
,
428 input
.mw-revdelundel-hidden
{
432 td
.mw-revdel-checkbox
,
433 th
.mw-revdel-checkbox
{
438 /* red links; see bug 36276 */
444 /* To be removed before 1.26 release, moved to mediawiki.feedlink module */
446 /* SVG support using a transparent gradient to guarantee cross-browser
447 * compatibility (browsers able to understand gradient syntax support also SVG).
448 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
449 background-image: url
(../mediawiki
/images
/feed-icon
.png
);
450 background-image: -webkit-linear-gradient
(transparent
, transparent
), url
(../mediawiki
/images
/feed-icon
.svg
);
451 background-image: linear-gradient
(transparent
, transparent
), url
(../mediawiki
/images
/feed-icon
.svg
);
452 background-position: center left
;
453 background-repeat: no-repeat
;
454 background-size: 12px 12px;
458 /* Plainlinks - this can be used to switch
459 * off special external link styling */
460 .plainlinks a.external {
461 background: none
!important
;
462 padding: 0 !important
;
465 /* External URLs should always be treated as LTR (bug 4330) */
466 /* @noflip */ .rtl a
.external
.free
,
467 .rtl a.external.autonumber {
473 * wikitable class for skinning normal tables
474 * keep in sync with commonPrint.css
478 background-color: #f9f9f9;
479 border: 1px solid
#aaa;
480 border-collapse: collapse
;
484 table
.wikitable
> tr
> th
,
485 table
.wikitable
> tr
> td
,
486 table
.wikitable
> * > tr
> th
,
487 table
.wikitable
> * > tr
> td
{
488 border: 1px solid
#aaa;
489 padding: 0.2em 0.4em;
492 table
.wikitable
> tr
> th
,
493 table
.wikitable
> * > tr
> th
{
494 background-color: #f2f2f2;
498 table
.wikitable
> caption
{
502 /* success and error messages */
527 display: inline-block
;
545 border-color: #fac5c5;
546 background-color: #fae3e3;
551 border-color: #fde29b;
552 background-color: #fdf1d1;
557 border-color: #b7fdb5;
558 background-color: #e1fddf;
561 /* general info/warning box for SP */
563 border: 2px solid
#ff7f00;
576 margin: 0.5em 0.5em 0.5em 49px;
579 /* Note on preview page */
597 * Transparent table with suddle borders
598 * and blue row-highlighting.
601 border-collapse: collapse
;
607 border: 1px solid
#aaaaaa;
608 padding: 0 0.15em 0 0.15em;
612 background-color: #ddddff;
616 background-color: #ffffff;
619 .mw-datatable tr:hover td {
620 background-color: #eeeeff;
623 /* Classes for Exif data display */
627 margin-bottom: 0.5em;
631 table
.mw_metadata caption
{
635 table
.mw_metadata th
{
639 table
.mw_metadata td
{
645 border-collapse: collapse
;
648 table
.mw_metadata td
,
649 table
.mw_metadata th
{
651 border: 1px solid
#aaaaaa;
656 table
.mw_metadata th
{
657 background-color: #f9f9f9;
660 table
.mw_metadata td
{
661 background-color: #fcfcfc;
664 table
.mw_metadata ul
.metadata-langlist
{
665 list-style-type: none
;
666 list-style-image: none
;
672 /* Correct directionality when page dir is different from site/user dir */
674 .mw-content-rtl .mw-content-ltr ul {
676 margin: 0.3em 0 0 1.6em;
681 .mw-content-ltr .mw-content-rtl ul {
683 margin: 0.3em 1.6em 0 0;
688 .mw-content-rtl .mw-content-ltr ol {
690 margin: 0.3em 0 0 3.2em;
695 .mw-content-ltr .mw-content-rtl ol {
697 margin: 0.3em 3.2em 0 0;
703 .mw-content-rtl .mw-content-ltr dd {
710 .mw-content-ltr .mw-content-rtl dd {
716 background-image: url
(images
/ajax-loader
.gif
);
717 background-position: center center
;
718 background-repeat: no-repeat
;
725 padding: 10px !important
;
727 background-image: url
(images/spinner.gif);
728 background-position: center center
;
729 background-repeat: no-repeat
;
732 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
733 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
736 h1:lang
(bh
), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
755 line-height: 1.6em !important
;
758 h2:lang
(anp
), h3:lang
(anp
), h4:lang
(anp
), h5:lang
(anp
), h6:lang
(anp
),
759 h2:lang
(as
), h3:lang
(as
), h4:lang
(as
), h5:lang
(as
), h6:lang
(as
),
760 h2:lang
(bho
), h3:lang
(bho
), h4:lang
(bho
), h5:lang
(bho
), h6:lang
(bho
),
761 h2:lang
(bh
), h3:lang
(bh
), h4:lang
(bh
), h5:lang
(bh
), h6:lang
(bh
),
762 h2:lang
(bn
), h3:lang
(bn
), h4:lang
(bn
), h5:lang
(bn
), h6:lang
(bn
),
763 h2:lang
(gu
), h3:lang
(gu
), h4:lang
(gu
), h5:lang
(gu
), h6:lang
(gu
),
764 h2:lang
(hi
), h3:lang
(hi
), h4:lang
(hi
), h5:lang
(hi
), h6:lang
(hi
),
765 h2:lang
(kn
), h3:lang
(kn
), h4:lang
(kn
), h5:lang
(kn
), h6:lang
(kn
),
766 h2:lang
(ks
), h3:lang
(ks
), h4:lang
(ks
), h5:lang
(ks
), h6:lang
(ks
),
767 h2:lang
(ml
), h3:lang
(ml
), h4:lang
(ml
), h5:lang
(ml
), h6:lang
(ml
),
768 h2:lang
(mr
), h3:lang
(mr
), h4:lang
(mr
), h5:lang
(mr
), h6:lang
(mr
),
769 h2:lang
(my
), h3:lang
(my
), h4:lang
(my
), h5:lang
(my
), h6:lang
(my
),
770 h2:lang
(mai
), h3:lang
(mai
), h4:lang
(mai
), h5:lang
(mai
), h6:lang
(mai
),
771 h2:lang
(ne
), h3:lang
(ne
), h4:lang
(ne
), h5:lang
(ne
), h6:lang
(ne
),
772 h2:lang
(new
), h3:lang
(new
), h4:lang
(new
), h5:lang
(new
), h6:lang
(new
),
773 h2:lang
(or
), h3:lang
(or
), h4:lang
(or
), h5:lang
(or
), h6:lang
(or
),
774 h2:lang
(pa
), h3:lang
(pa
), h4:lang
(pa
), h5:lang
(pa
), h6:lang
(pa
),
775 h2:lang
(pi
), h3:lang
(pi
), h4:lang
(pi
), h5:lang
(pi
), h6:lang
(pi
),
776 h2:lang
(sa
), h3:lang
(sa
), h4:lang
(sa
), h5:lang
(sa
), h6:lang
(sa
),
777 h2:lang
(ta
), h3:lang
(ta
), h4:lang
(ta
), h5:lang
(ta
), h6:lang
(ta
),
778 h2:lang
(te
), h3:lang
(te
), h4:lang
(te
), h5:lang
(te
), h6:lang
(te
) {
782 /* Localised ordered list numbering for some languages */
793 list-style-type: -moz-persian
;
794 list-style-type: persian
;
799 list-style-type: -moz-arabic-indic
;
800 list-style-type: arabic-indic
;
805 list-style-type: -moz-devanagari
;
806 list-style-type: devanagari
;
811 list-style-type: -moz-bengali
;
812 list-style-type: bengali
;
816 list-style-type: -moz-oriya
;
817 list-style-type: oriya
;
824 /* Correct directionality when page dir is different from site/user dir */
825 /* @noflip */ .mw-content-ltr
.toc ul
,
826 .mw-content-ltr #toc ul
,
827 .mw-content-rtl
.mw-content-ltr
.toc ul
,
828 .mw-content-rtl .mw-content-ltr #toc ul {
832 /* @noflip */ .mw-content-rtl
.toc ul
,
833 .mw-content-rtl #toc ul
,
834 .mw-content-ltr
.mw-content-rtl
.toc ul
,
835 .mw-content-ltr .mw-content-rtl #toc ul {
839 /* @noflip */ .mw-content-ltr
.toc ul ul
,
840 .mw-content-ltr #toc ul ul
,
841 .mw-content-rtl
.mw-content-ltr
.toc ul ul
,
842 .mw-content-rtl .mw-content-ltr #toc ul ul {
846 /* @noflip */ .mw-content-rtl
.toc ul ul
,
847 .mw-content-rtl #toc ul ul
,
848 .mw-content-ltr
.mw-content-rtl
.toc ul ul
,
849 .mw-content-ltr .mw-content-rtl #toc ul ul {
861 .mw-help-field-hint {
866 background-image: url
(images
/help-question
.gif
);
867 background-position: left center
;
868 background-repeat: no-repeat
;
871 text-decoration: underline
;
875 .mw-help-field-hint:hover {
876 background-image: url
(images
/help-question-hover
.gif
);
879 .mw-help-field-data {
881 background-color: #d6f3ff;
882 padding: 5px 8px 4px 8px;
883 border: 1px solid
#5dc9f4;
896 /* Correct user & content directionality when viewing a diff */
897 .diff-currentversion-title
,
903 /* @noflip */ .diff-contentalign-right td
{
908 /* @noflip */ .diff-contentalign-left td
{
917 direction: ltr
!important
;
922 #mw-revision-info-current,
930 /* @noflip */ div
.tright
,
937 /* @noflip */ div
.tleft
,
961 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
964 /* Print footer should be hidden by default in screen. */
979 -moz-user-select: none
;
980 -webkit-user-select: none
;
981 -ms-user-select: none
;
985 /* Display editsection links smaller and next to headings */
987 .mw-editsection-like {
991 vertical-align: baseline
;
992 /* Reset line-height; headings tend to have it set to larger values */
994 /* As .mw-editsection is a <span> (inline element), it is treated as part */
995 /* of the heading content when selecting text by multiple clicks and thus */
996 /* selected together with heading content, despite the user-select: none; */
997 /* rule set above. This enforces non-selection without changing the look. */
998 display: inline-block
;
1001 /* Correct directionality when page dir is different from site/user dir */
1003 .mw-content-ltr
.mw-editsection
,
1004 .mw-content-rtl .mw-content-ltr .mw-editsection {
1009 .mw-content-rtl
.mw-editsection
,
1010 .mw-content-ltr .mw-content-rtl .mw-editsection {
1014 /* Prevent citations and subscripts from interfering with the line-height */