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
;
119 /* Comment portions of RC entries */
125 * Add a bit of margin space between the preview and the toolbar.
126 * This replaces the ugly <p><br /></p> we used to insert into the page source
132 /* Stop floats from intruding into edit area in previews */
143 span
.history-deleted
{
144 text-decoration: line-through
;
153 background-color: #ffa;
182 vertical-align: middle
;
194 .mw-input-with-label {
201 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
205 .mw-content-ltr .thumbcaption {
210 .mw-content-ltr .magnify {
215 .mw-content-rtl .thumbcaption {
220 .mw-content-rtl .magnify {
229 * Overrides text justification (user preference)
240 list-style-type: none
;
241 list-style-image: none
;
242 vertical-align: middle
!ie
;
246 display: inline-block
;
248 border-left: 1px solid
#AAA;
255 .catlinks li:first-child {
256 padding-left: 0.25em;
260 /* (bug 5346) make category redirects italic */
261 .catlinks li a.mw-redirect {
268 .mw-hidden-cats-hidden {
272 .catlinks-allhidden {
277 * Convenience links to edit delete and protect reasons
279 p
.mw-protect-editreasons
,
280 p
.mw-filedelete-editreasons
,
281 p
.mw-delete-editreasons
{
286 /* Page history styling */
288 /* The auto-generated edit comments */
293 #pagehistory .history-user
{
299 border: 1px solid white
;
302 #pagehistory li
.selected
{
303 background-color: #f9f9f9;
304 border: 1px dashed
#aaa;
307 .mw-history-revisionactions {
311 /** Generic minor/bot/newpage styling (recent changes) */
319 * Recreating deleted page warning
320 * Reupload file warning
321 * Page protection warning
322 * incl. log entries for these warnings
324 div
.mw-warning-with-logexcerpt
{
327 border: 2px solid
#2F6FAB;
331 div
.mw-warning-with-logexcerpt ul li
{
335 /* (show/hide) revision deletion links */
336 span
.mw-revdelundel-link
,
337 strong
.mw-revdelundel-link
{
341 span
.mw-revdelundel-hidden
,
342 input
.mw-revdelundel-hidden
{
346 td
.mw-revdel-checkbox
,
347 th
.mw-revdel-checkbox
{
352 /* red links; see bug 36276 */
357 /* Plainlinks - this can be used to switch
358 * off special external link styling */
359 .plainlinks a.external {
360 background: none
!important
;
361 padding: 0 !important
;
364 /* External URLs should always be treated as LTR (bug 4330) */
365 /* @noflip */ .rtl a
.external
.free
,
366 .rtl a.external.autonumber {
372 * wikitable class for skinning normal tables
373 * keep in sync with commonPrint.css
377 background-color: #f9f9f9;
378 border: 1px solid
#aaa;
379 border-collapse: collapse
;
383 table
.wikitable
> tr
> th
,
384 table
.wikitable
> tr
> td
,
385 table
.wikitable
> * > tr
> th
,
386 table
.wikitable
> * > tr
> td
{
387 border: 1px solid
#aaa;
388 padding: 0.2em 0.4em;
391 table
.wikitable
> tr
> th
,
392 table
.wikitable
> * > tr
> th
{
393 background-color: #f2f2f2;
397 table
.wikitable
> caption
{
401 /* success and error messages */
426 display: inline-block
;
444 border-color: #fac5c5;
445 background-color: #fae3e3;
450 border-color: #fde29b;
451 background-color: #fdf1d1;
456 border-color: #b7fdb5;
457 background-color: #e1fddf;
460 /* general info/warning box for SP */
462 border: 2px solid
#ff7f00;
475 margin: 0.5em 0.5em 0.5em 49px;
478 /* Note on preview page */
496 * Transparent table with suddle borders
497 * and blue row-highlighting.
500 border-collapse: collapse
;
506 border: 1px solid
#aaaaaa;
507 padding: 0 0.15em 0 0.15em;
511 background-color: #ddddff;
515 background-color: #ffffff;
518 .mw-datatable tr:hover td {
519 background-color: #eeeeff;
522 /* Classes for Exif data display */
526 margin-bottom: 0.5em;
530 table
.mw_metadata caption
{
534 table
.mw_metadata th
{
538 table
.mw_metadata td
{
544 border-collapse: collapse
;
547 table
.mw_metadata td
,
548 table
.mw_metadata th
{
550 border: 1px solid
#aaaaaa;
555 table
.mw_metadata th
{
556 background-color: #f9f9f9;
559 table
.mw_metadata td
{
560 background-color: #fcfcfc;
563 table
.mw_metadata ul
.metadata-langlist
{
564 list-style-type: none
;
565 list-style-image: none
;
571 /* Correct directionality when page dir is different from site/user dir */
573 .mw-content-rtl .mw-content-ltr ul {
575 margin: 0.3em 0 0 1.6em;
580 .mw-content-ltr .mw-content-rtl ul {
582 margin: 0.3em 1.6em 0 0;
587 .mw-content-rtl .mw-content-ltr ol {
589 margin: 0.3em 0 0 3.2em;
594 .mw-content-ltr .mw-content-rtl ol {
596 margin: 0.3em 3.2em 0 0;
602 .mw-content-rtl .mw-content-ltr dd {
609 .mw-content-ltr .mw-content-rtl dd {
615 background-image: url
(images
/ajax-loader
.gif
);
616 background-position: center center
;
617 background-repeat: no-repeat
;
624 padding: 10px !important
;
626 background-image: url
(images/spinner.gif);
627 background-position: center center
;
628 background-repeat: no-repeat
;
631 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
632 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
635 h1:lang
(bh
), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
654 line-height: 1.6em !important
;
657 h2:lang
(anp
), h3:lang
(anp
), h4:lang
(anp
), h5:lang
(anp
), h6:lang
(anp
),
658 h2:lang
(as
), h3:lang
(as
), h4:lang
(as
), h5:lang
(as
), h6:lang
(as
),
659 h2:lang
(bho
), h3:lang
(bho
), h4:lang
(bho
), h5:lang
(bho
), h6:lang
(bho
),
660 h2:lang
(bh
), h3:lang
(bh
), h4:lang
(bh
), h5:lang
(bh
), h6:lang
(bh
),
661 h2:lang
(bn
), h3:lang
(bn
), h4:lang
(bn
), h5:lang
(bn
), h6:lang
(bn
),
662 h2:lang
(gu
), h3:lang
(gu
), h4:lang
(gu
), h5:lang
(gu
), h6:lang
(gu
),
663 h2:lang
(hi
), h3:lang
(hi
), h4:lang
(hi
), h5:lang
(hi
), h6:lang
(hi
),
664 h2:lang
(kn
), h3:lang
(kn
), h4:lang
(kn
), h5:lang
(kn
), h6:lang
(kn
),
665 h2:lang
(ks
), h3:lang
(ks
), h4:lang
(ks
), h5:lang
(ks
), h6:lang
(ks
),
666 h2:lang
(ml
), h3:lang
(ml
), h4:lang
(ml
), h5:lang
(ml
), h6:lang
(ml
),
667 h2:lang
(mr
), h3:lang
(mr
), h4:lang
(mr
), h5:lang
(mr
), h6:lang
(mr
),
668 h2:lang
(my
), h3:lang
(my
), h4:lang
(my
), h5:lang
(my
), h6:lang
(my
),
669 h2:lang
(mai
), h3:lang
(mai
), h4:lang
(mai
), h5:lang
(mai
), h6:lang
(mai
),
670 h2:lang
(ne
), h3:lang
(ne
), h4:lang
(ne
), h5:lang
(ne
), h6:lang
(ne
),
671 h2:lang
(new
), h3:lang
(new
), h4:lang
(new
), h5:lang
(new
), h6:lang
(new
),
672 h2:lang
(or
), h3:lang
(or
), h4:lang
(or
), h5:lang
(or
), h6:lang
(or
),
673 h2:lang
(pa
), h3:lang
(pa
), h4:lang
(pa
), h5:lang
(pa
), h6:lang
(pa
),
674 h2:lang
(pi
), h3:lang
(pi
), h4:lang
(pi
), h5:lang
(pi
), h6:lang
(pi
),
675 h2:lang
(sa
), h3:lang
(sa
), h4:lang
(sa
), h5:lang
(sa
), h6:lang
(sa
),
676 h2:lang
(ta
), h3:lang
(ta
), h4:lang
(ta
), h5:lang
(ta
), h6:lang
(ta
),
677 h2:lang
(te
), h3:lang
(te
), h4:lang
(te
), h5:lang
(te
), h6:lang
(te
) {
681 /* Localised ordered list numbering for some languages */
692 list-style-type: -moz-persian
;
693 list-style-type: persian
;
698 list-style-type: -moz-arabic-indic
;
699 list-style-type: arabic-indic
;
704 list-style-type: -moz-devanagari
;
705 list-style-type: devanagari
;
710 list-style-type: -moz-bengali
;
711 list-style-type: bengali
;
715 list-style-type: -moz-oriya
;
716 list-style-type: oriya
;
723 /* Correct directionality when page dir is different from site/user dir */
724 /* @noflip */ .mw-content-ltr
.toc ul
,
725 .mw-content-ltr #toc ul
,
726 .mw-content-rtl
.mw-content-ltr
.toc ul
,
727 .mw-content-rtl .mw-content-ltr #toc ul {
731 /* @noflip */ .mw-content-rtl
.toc ul
,
732 .mw-content-rtl #toc ul
,
733 .mw-content-ltr
.mw-content-rtl
.toc ul
,
734 .mw-content-ltr .mw-content-rtl #toc ul {
738 /* @noflip */ .mw-content-ltr
.toc ul ul
,
739 .mw-content-ltr #toc ul ul
,
740 .mw-content-rtl
.mw-content-ltr
.toc ul ul
,
741 .mw-content-rtl .mw-content-ltr #toc ul ul {
745 /* @noflip */ .mw-content-rtl
.toc ul ul
,
746 .mw-content-rtl #toc ul ul
,
747 .mw-content-ltr
.mw-content-rtl
.toc ul ul
,
748 .mw-content-ltr .mw-content-rtl #toc ul ul {
760 .mw-help-field-hint {
765 background-image: url
(images
/help-question
.gif
);
766 background-position: left center
;
767 background-repeat: no-repeat
;
770 text-decoration: underline
;
774 .mw-help-field-hint:hover {
775 background-image: url
(images
/help-question-hover
.gif
);
778 .mw-help-field-data {
780 background-color: #d6f3ff;
781 padding: 5px 8px 4px 8px;
782 border: 1px solid
#5dc9f4;
795 /* Correct user & content directionality when viewing a diff */
796 .diff-currentversion-title
,
802 /* @noflip */ .diff-contentalign-right td
{
807 /* @noflip */ .diff-contentalign-left td
{
816 direction: ltr
!important
;
821 #mw-revision-info-current,
829 /* @noflip */ div
.tright
,
836 /* @noflip */ div
.tleft
,
860 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
863 /* Print footer should be hidden by default in screen. */
876 -moz-user-select: none
;
877 -webkit-user-select: none
;
878 -ms-user-select: none
;
882 /* Display editsection links smaller and next to headings */
884 .mw-editsection-like {
888 vertical-align: baseline
;
889 /* Reset line-height; headings tend to have it set to larger values */
891 /* As .mw-editsection is a <span> (inline element), it is treated as part */
892 /* of the heading content when selecting text by multiple clicks and thus */
893 /* selected together with heading content, despite the user-select: none; */
894 /* rule set above. This enforces non-selection without changing the look. */
895 display: inline-block
;
898 /* Correct directionality when page dir is different from site/user dir */
900 .mw-content-ltr
.mw-editsection
,
901 .mw-content-rtl .mw-content-ltr .mw-editsection {
906 .mw-content-rtl
.mw-editsection
,
907 .mw-content-ltr .mw-content-rtl .mw-editsection {
911 /* Prevent citations and subscripts from interfering with the line-height */