MediaWiki:Common.css: Difference between revisions
Content deleted Content added
margin required for Gecko browsers (doesn't have a significant effect on others) |
Removed lines 29-43: no longer necessary, per request Special:Diff/25864593 |
||
(150 intermediate revisions by 41 users not shown) | |||
Line 1: | Line 1: | ||
/* |
/* |
||
* This is the common CSS for all desktop skins on Meta. |
|||
<pre> |
|||
* Styling inside .mw-parser-output should generally use TemplateStyles. |
|||
*/ |
|||
*/ |
|||
/* Redirects in categories, on [[Special:Allpages]], and [[Special:Prefixindex]] */ |
|||
/***** |
|||
.redirect-in-category, |
|||
** Minor tweaks |
|||
.allpagesredirect a { |
|||
*****/ |
|||
color: gray; |
|||
/* redirects in categories, on [[Special:Allpages]], and [[Special:Prefixindex]] */ |
|||
} |
|||
.redirect-in-category, .allpagesredirect { |
|||
font-style: italic; |
|||
color:gray; |
|||
} |
|||
/* To color the mention "updated since my last visit" in the history */ |
|||
span.updatedmarker { |
|||
color: black; |
|||
background-color: #0f0; |
|||
} |
|||
/* T156351: Support for Parsoid's Cite implementation */ |
|||
span[rel="mw:referencedBy"] { |
|||
counter-reset: mw-ref-linkback 0; |
|||
} |
|||
span[rel="mw:referencedBy"] > a::before { |
|||
/* hide unneeded content when printing */ |
|||
font-weight: bold; |
|||
@media print { |
|||
font-style: italic; |
|||
#privacy, #about, #disclaimer {display:none;} |
|||
content: counter( mw-ref-linkback, lower-alpha ); |
|||
} |
|||
} |
|||
/* Different font-family for Farsi (fa) */ |
|||
:lang(fa) { |
|||
/* hide arrows on selected external links */ |
|||
font-family: Tahoma, 'Iranian Sans', 'DejaVu Sans', 'Noto Sans', 'Droid Arabic Kufi', sans-serif; |
|||
.plainlinksneverexpand a { |
|||
background:none !important; |
|||
padding:0 !important; |
|||
} |
|||
/***** |
|||
** Hide selected content |
|||
*****/ |
|||
.hiddenStructure {display: none} |
|||
.if {display: none} |
|||
/***** |
|||
** Table formatting |
|||
*****/ |
|||
table.wikitable, |
|||
table.prettytable { |
|||
margin:1em 1em 1em 0; |
|||
background:#F9F9F9; |
|||
border:1px #AAA solid; |
|||
border-collapse:collapse; |
|||
} |
|||
table.wikitable th, table.wikitable td, |
|||
table.prettytable th, table.prettytable td { |
|||
border:1px #AAA solid; |
|||
padding:0.2em; |
|||
} |
|||
table.wikitable th, |
|||
table.prettytable th { |
|||
background:#F2F2F2; |
|||
text-align:center; |
|||
} |
|||
table.wikitable caption, |
|||
table.prettytable caption { |
|||
margin-left:inherit; |
|||
margin-right:inherit; |
|||
} |
|||
/***** |
|||
** box formatting |
|||
*****/ |
|||
.infobox { |
|||
float:right; |
|||
clear:right; |
|||
margin-bottom:0.5em; |
|||
margin-left:1em; |
|||
padding:0.2em; |
|||
border:1px solid #AAA; |
|||
background:#F9F9F9; |
|||
color:black; |
|||
} |
|||
.infobox td, |
|||
.infobox th { |
|||
vertical-align:top; |
|||
} |
|||
.infobox caption { |
|||
font-size:larger; |
|||
margin-left:inherit; |
|||
} |
|||
.infobox.bordered { |
|||
border-collapse:collapse; |
|||
} |
|||
.infobox.bordered td, |
|||
.infobox.bordered th { |
|||
border:1px solid #AAA; |
|||
} |
|||
.infobox.bordered .borderless td, |
|||
.infobox.bordered .borderless th { |
|||
border:0; |
|||
} |
|||
.infobox.sisterproject { |
|||
width:20em; |
|||
font-size:90%; |
|||
} |
|||
.sister-project { |
|||
clear:right; |
|||
float:right; |
|||
width:250px; |
|||
margin:0 0 1em 3em; |
|||
padding:4px; |
|||
border:1px solid #AAA; |
|||
background:#F9F9F9; |
|||
font-size:0.8em; |
|||
spacing:0px; |
|||
text-align:left; |
|||
} |
|||
/* [[template:other languages]] */ |
|||
#otherlangs { |
|||
margin:0.5em; |
|||
padding:2px; |
|||
border:1px solid #CCC; |
|||
background:#FAFAFA; |
|||
font-size:0.9em; |
|||
} |
|||
#otherlangs span { |
|||
margin:0 2px; |
|||
padding-left:2px; |
|||
border-left:1px solid gray; |
|||
} |
|||
#otherlangs span.firstlang { |
|||
border:none; |
|||
} |
|||
/***** |
|||
** Specific pages (keep to a minimum) |
|||
*****/ |
|||
/* Spam blacklist */ |
|||
body.page-Talk_Spam_blacklist #ca-addsection {display:none;} |
|||
/* Spam blacklist/log */ |
|||
.logtable pre { |
|||
margin:0; |
|||
padding:0; |
|||
border:0; |
|||
} |
|||
/***** |
|||
** Bytecounter colours |
|||
*****/ |
|||
strong.mw-plusminus-neg |
|||
{ |
|||
color: #c00; |
|||
} |
|||
span.mw-plusminus-neg |
|||
{ |
|||
color: #900; |
|||
} |
|||
span.mw-plusminus-pos |
|||
{ |
|||
color: #060; |
|||
} |
|||
/* Change the external link icon to an Adobe icon for all PDF files */ |
|||
/* (in browsers that support these CSS selectors, like Mozilla and Opera) */ |
|||
#bodyContent a[href$=".pdf"].external, |
|||
#bodyContent a[href*=".pdf?"].external, |
|||
#bodyContent a[href*=".pdf#"].external, |
|||
#bodyContent a[href$=".PDF"].external, |
|||
#bodyContent a[href*=".PDF?"].external, |
|||
#bodyContent a[href*=".PDF#"].external { |
|||
background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Icons-mini-file_acrobat.gif/15px-Icons-mini-file_acrobat.gif) center right no-repeat; |
|||
padding-right: 16px; |
|||
} |
} |
||
/* Reset italic styling set by user agent */ |
|||
/* Change the external link icon to an Adobe icon anywhere the PDFlink class */ |
|||
cite, |
|||
/* is used (notably Template:PDFlink). This works in IE, unlike the above. */ |
|||
dfn { |
|||
span.PDFlink a { |
|||
font-style: inherit; |
|||
background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Icons-mini-file_acrobat.gif/15px-Icons-mini-file_acrobat.gif) center right no-repeat !important; |
|||
padding-right: 17px !important; |
|||
} |
} |
||
/* Style for change tags */ |
|||
/* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at [[Wikipedia:NavFrame]]. */ |
|||
.mw-tag-markers { |
|||
font-family: sans-serif; |
|||
div.Boxmerge, |
|||
font-style: italic; |
|||
div.NavFrame { |
|||
font-size: 90%; |
|||
margin: 0px; |
|||
padding: 4px; |
|||
border: 1px solid #aaa; |
|||
text-align: center; |
|||
border-collapse: collapse; |
|||
font-size: 95%; |
|||
} |
|||
div.Boxmerge div.NavFrame { |
|||
border-style: none; |
|||
border-style: hidden; |
|||
} |
|||
div.NavFrame + div.NavFrame { |
|||
border-top-style: none; |
|||
border-top-style: hidden; |
|||
} |
|||
div.NavPic { |
|||
background-color: #fff; |
|||
margin: 0px; |
|||
padding: 2px; |
|||
float: left; |
|||
} |
|||
div.NavFrame div.NavHead { |
|||
height: 1.6em; |
|||
font-weight: bold; |
|||
background-color: #ccccff; |
|||
position:relative; |
|||
} |
|||
div.NavFrame p { |
|||
font-size: 100%; |
|||
} |
|||
div.NavFrame div.NavContent { |
|||
font-size: 100%; |
|||
} |
|||
div.NavFrame div.NavContent p { |
|||
font-size: 100%; |
|||
} |
|||
div.NavEnd { |
|||
margin: 0px; |
|||
padding: 0px; |
|||
line-height: 1px; |
|||
clear: both; |
|||
} |
|||
a.NavToggle { |
|||
position:absolute; |
|||
top:0px; |
|||
right:3px; |
|||
font-weight:normal; |
|||
font-size:smaller; |
|||
} |
} |
||
/* |
/** |
||
* Can be removed after the deployment of |
|||
* Messagebox templates |
|||
* https://gerrit.wikimedia.org/r/#/c/286128/ |
|||
* Imported from [[en:MediaWiki:Common.css]] on 2007-07-13 |
|||
*/ |
*/ |
||
/* @noflip */ |
|||
.messagebox { |
|||
.rtl a.external.free, |
|||
border: 1px solid #aaa; |
|||
.rtl a.external.autonumber { |
|||
background-color: #f9f9f9; |
|||
direction: ltr; |
|||
width: 80%; |
|||
unicode-bidi: -moz-isolate; |
|||
margin: 0 auto 1em auto; |
|||
unicode-bidi: -webkit-isolate; |
|||
padding: .2em; |
|||
unicode-bidi: isolate; |
|||
} |
|||
display: inline-block; /* Fake bidi isolation for Microsoft browsers. */ |
|||
.messagebox.merge { |
|||
border: 1px solid #c0b8cc; |
|||
background-color: #f0e5ff; |
|||
text-align: center; |
|||
} |
|||
.messagebox.cleanup { |
|||
border: 1px solid #9f9fff; |
|||
background-color: #efefff; |
|||
text-align: center; |
|||
} |
|||
.messagebox.standard-talk { |
|||
border: 1px solid #c0c090; |
|||
background-color: #f8eaba; |
|||
} |
|||
.messagebox.nested-talk { |
|||
border: 1px solid #c0c090; |
|||
background-color: #f8eaba; |
|||
width: 100%; |
|||
margin: 2px 4px 2px 4px; |
|||
} |
|||
.messagebox.small { |
|||
width: 238px; |
|||
font-size: 85%; |
|||
float: right; |
|||
clear: both; |
|||
margin: 0 0 1em 1em; |
|||
line-height: 1.25em; |
|||
} |
|||
/* For template documentation */ |
|||
.template-documentation { |
|||
clear: both; |
|||
margin: 1em 0 0 0; |
|||
border: 1px solid #aaa; |
|||
background-color: #ecfcf4; |
|||
padding: 5px; |
|||
} |
} |
||
/** |
|||
.hidden-redlink a.new { display: none; } |
|||
* Div based "warning" style fmbox messages for those |
|||
* which are not part of [[Module:Message box]] |
|||
/* Allow limiting of which header levels are shown in a TOC; <div class="toclimit-3">, for |
|||
* and its TemplateStyles subpages. |
|||
instance, will limit to showing ==headings== and ===headings=== but no further (as long as |
|||
* From [[:mw:MediaWiki:Gadget-enwp-boxes.css]] |
|||
there are no =headings= on the page, which there shouldn't be according to the MOS). |
|||
* @see [[Special:Permalink/24680955#en-wp-boxes]] |
|||
Thanks to w:en:User:Ais523 for that code.*/ |
|||
* @source <https://www.mediawiki.org/?oldid=4789734#L-283> |
|||
.toclimit-2 .toclevel-2 {display:none;} |
|||
*/ |
|||
.toclimit-3 .toclevel-3 {display:none;} |
|||
div.mw-warning-with-logexcerpt, |
|||
.toclimit-4 .toclevel-4 {display:none;} |
|||
div.mw-lag-warn-high, |
|||
.toclimit-5 .toclevel-5 {display:none;} |
|||
div.mw-cascadeprotectedwarning, |
|||
.toclimit-6 .toclevel-6 {display:none;} |
|||
div#mw-protect-cascadeon, |
|||
.toclimit-7 .toclevel-7 {display:none;} |
|||
div.titleblacklist-warning { |
|||
clear: both; |
|||
/* This section facilitates rtl translations */ |
|||
margin: 0.2em 0; |
|||
.persian { |
|||
border: 1px solid #bb7070; |
|||
direction: rtl; |
|||
background-color: #ffdbdb; |
|||
font-family: Tahoma; |
|||
padding: 0.25em 0.9em; |
|||
} |
|||
box-sizing: border-box; |
|||
#bodyContent .persian a{ |
|||
background:none; |
|||
padding-right:0; |
|||
} |
} |
||
/* Hide "accept rename" button next time renames are stuck */ |
|||
.persian #toctitle { |
|||
/* |
|||
direction:ltr; |
|||
#mw-renamequeue-approve{ |
|||
display: none; |
|||
} |
} |
||
*/ |
|||
/** |
|||
.persian .toclevel-1 { |
|||
* Hide Special:Log/renameuser log entries in Special:RecentChanges |
|||
text-align:right; |
|||
* Discussion: [[Special:Permalink/15455880#Hiding Special:Log/renameuser from RecentChanges]] |
|||
*/ |
|||
.mw-changeslist-log-renameuser, |
|||
/** |
|||
* Hide Special:Log/translationreview log entries in Special:RecentChanges |
|||
* Discussion: none |
|||
*/ |
|||
.mw-changeslist-log-translationreview, |
|||
/** |
|||
* Hide save page button for anons on [[Wikimedia_Foundation_nomail_list]]. |
|||
* Shown for users thru [[MediaWiki:Group-user.css]] |
|||
*/ |
|||
.page-Wikimedia_Foundation_nomail_list #wpSave, |
|||
/** |
|||
* Hide stuff meant for registered users. Overridden in [[Mediawiki:Group-user.css]]. |
|||
* We should eventually do the same for other user groups. |
|||
*/ |
|||
.user-show, |
|||
/* Hide mobile-only things on desktop (overridden in MediaWiki:Mobile.css) */ |
|||
.mobile-only { |
|||
display: none; |
|||
} |
} |
||
/* Hide unneeded content when printing */ |
|||
.persian .editsection { |
|||
@media print { |
|||
float:left; |
|||
#privacy, |
|||
#about, |
|||
#disclaimer { |
|||
display: none; |
|||
} |
|||
} |
} |
||
.persian UL { |
|||
margin-right:10px; |
|||
} |
|||
#bodyContent .arabic a{ |
|||
background:none; |
|||
padding-right:0; |
|||
} |
|||
/* |
|||
</pre> |
|||
*/ |
Latest revision as of 19:22, 13 November 2023
/*
* This is the common CSS for all desktop skins on Meta.
* Styling inside .mw-parser-output should generally use TemplateStyles.
*/
/* Redirects in categories, on [[Special:Allpages]], and [[Special:Prefixindex]] */
.redirect-in-category,
.allpagesredirect a {
color: gray;
}
/* To color the mention "updated since my last visit" in the history */
span.updatedmarker {
color: black;
background-color: #0f0;
}
/* T156351: Support for Parsoid's Cite implementation */
span[rel="mw:referencedBy"] {
counter-reset: mw-ref-linkback 0;
}
span[rel="mw:referencedBy"] > a::before {
font-weight: bold;
font-style: italic;
content: counter( mw-ref-linkback, lower-alpha );
}
/* Different font-family for Farsi (fa) */
:lang(fa) {
font-family: Tahoma, 'Iranian Sans', 'DejaVu Sans', 'Noto Sans', 'Droid Arabic Kufi', sans-serif;
}
/* Reset italic styling set by user agent */
cite,
dfn {
font-style: inherit;
}
/* Style for change tags */
.mw-tag-markers {
font-family: sans-serif;
font-style: italic;
font-size: 90%;
}
/**
* Can be removed after the deployment of
* https://gerrit.wikimedia.org/r/#/c/286128/
*/
/* @noflip */
.rtl a.external.free,
.rtl a.external.autonumber {
direction: ltr;
unicode-bidi: -moz-isolate;
unicode-bidi: -webkit-isolate;
unicode-bidi: isolate;
display: inline-block; /* Fake bidi isolation for Microsoft browsers. */
}
/**
* Div based "warning" style fmbox messages for those
* which are not part of [[Module:Message box]]
* and its TemplateStyles subpages.
* From [[:mw:MediaWiki:Gadget-enwp-boxes.css]]
* @see [[Special:Permalink/24680955#en-wp-boxes]]
* @source <https://www.mediawiki.org/?oldid=4789734#L-283>
*/
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon,
div.titleblacklist-warning {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: #ffdbdb;
padding: 0.25em 0.9em;
box-sizing: border-box;
}
/* Hide "accept rename" button next time renames are stuck */
/*
#mw-renamequeue-approve{
display: none;
}
*/
/**
* Hide Special:Log/renameuser log entries in Special:RecentChanges
* Discussion: [[Special:Permalink/15455880#Hiding Special:Log/renameuser from RecentChanges]]
*/
.mw-changeslist-log-renameuser,
/**
* Hide Special:Log/translationreview log entries in Special:RecentChanges
* Discussion: none
*/
.mw-changeslist-log-translationreview,
/**
* Hide save page button for anons on [[Wikimedia_Foundation_nomail_list]].
* Shown for users thru [[MediaWiki:Group-user.css]]
*/
.page-Wikimedia_Foundation_nomail_list #wpSave,
/**
* Hide stuff meant for registered users. Overridden in [[Mediawiki:Group-user.css]].
* We should eventually do the same for other user groups.
*/
.user-show,
/* Hide mobile-only things on desktop (overridden in MediaWiki:Mobile.css) */
.mobile-only {
display: none;
}
/* Hide unneeded content when printing */
@media print {
#privacy,
#about,
#disclaimer {
display: none;
}
}