MediaWiki:Common.css: Difference between revisions
Content deleted Content added
Added infobox code, as per request by User:Locke Cole, see talk |
Removed lines 29-43: no longer necessary, per request Special:Diff/25864593 |
||
(176 intermediate revisions by 47 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]] */ |
|||
.hiddenStructure {display: none} |
|||
.redirect-in-category, |
|||
.allpagesredirect a { |
|||
color: gray; |
|||
} |
|||
/* To color the mention "updated since my last visit" in the history */ |
|||
.if {display: none} |
|||
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 { |
|||
/* wikitable/prettytable class for skinning normal tables */ |
|||
font-weight: bold; |
|||
font-style: italic; |
|||
content: counter( mw-ref-linkback, lower-alpha ); |
|||
} |
|||
/* Different font-family for Farsi (fa) */ |
|||
table.wikitable, |
|||
:lang(fa) { |
|||
table.prettytable { |
|||
font-family: Tahoma, 'Iranian Sans', 'DejaVu Sans', 'Noto Sans', 'Droid Arabic Kufi', sans-serif; |
|||
margin: 1em 1em 1em 0; |
|||
background: #f9f9f9; |
|||
border: 1px #aaaaaa solid; |
|||
border-collapse: collapse; |
|||
} |
} |
||
/* Reset italic styling set by user agent */ |
|||
table.wikitable th, table.wikitable td, |
|||
cite, |
|||
table.prettytable th, table.prettytable td { |
|||
dfn { |
|||
border: 1px #aaaaaa solid; |
|||
font-style: inherit; |
|||
padding: 0.2em; |
|||
} |
} |
||
/* Style for change tags */ |
|||
table.wikitable th, |
|||
.mw-tag-markers { |
|||
table.prettytable th { |
|||
font-family: sans-serif; |
|||
background: #f2f2f2; |
|||
font-style: italic; |
|||
text-align: center; |
|||
font-size: 90%; |
|||
} |
} |
||
/** |
|||
table.wikitable caption, |
|||
* Can be removed after the deployment of |
|||
table.prettytable caption { |
|||
* https://gerrit.wikimedia.org/r/#/c/286128/ |
|||
margin-left: inherit; |
|||
*/ |
|||
margin-right: inherit; |
|||
/* @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. */ |
|||
} |
} |
||
/** |
|||
.allpagesredirect { |
|||
* Div based "warning" style fmbox messages for those |
|||
font-style: italic; |
|||
* 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 */ |
|||
/* Infobox template style */ |
|||
/* |
|||
#mw-renamequeue-approve{ |
|||
display: none; |
|||
} |
|||
*/ |
|||
/** |
|||
.infobox { |
|||
* Hide Special:Log/renameuser log entries in Special:RecentChanges |
|||
border: 1px solid #aaaaaa; |
|||
* Discussion: [[Special:Permalink/15455880#Hiding Special:Log/renameuser from RecentChanges]] |
|||
background-color: #f9f9f9; |
|||
*/ |
|||
color: black; |
|||
.mw-changeslist-log-renameuser, |
|||
margin-bottom: 0.5em; |
|||
/** |
|||
margin-left: 1em; |
|||
* Hide Special:Log/translationreview log entries in Special:RecentChanges |
|||
padding: 0.2em; |
|||
* Discussion: none |
|||
float: right; |
|||
*/ |
|||
clear: right; |
|||
.mw-changeslist-log-translationreview, |
|||
} |
|||
/** |
|||
.infobox td, |
|||
* Hide save page button for anons on [[Wikimedia_Foundation_nomail_list]]. |
|||
.infobox th { |
|||
* Shown for users thru [[MediaWiki:Group-user.css]] |
|||
vertical-align: top; |
|||
*/ |
|||
} |
|||
.page-Wikimedia_Foundation_nomail_list #wpSave, |
|||
.infobox caption { |
|||
/** |
|||
font-size: larger; |
|||
* Hide stuff meant for registered users. Overridden in [[Mediawiki:Group-user.css]]. |
|||
margin-left: inherit; |
|||
* We should eventually do the same for other user groups. |
|||
} |
|||
*/ |
|||
.infobox.bordered { |
|||
.user-show, |
|||
border-collapse: collapse; |
|||
/* Hide mobile-only things on desktop (overridden in MediaWiki:Mobile.css) */ |
|||
} |
|||
.mobile-only { |
|||
.infobox.bordered td, |
|||
display: none; |
|||
.infobox.bordered th { |
|||
border: 1px solid #aaaaaa; |
|||
} |
|||
.infobox.bordered .borderless td, |
|||
.infobox.bordered .borderless th { |
|||
border: 0; |
|||
} |
} |
||
/* Hide unneeded content when printing */ |
|||
.infobox.sisterproject { |
|||
@media print { |
|||
width: 20em; |
|||
#privacy, |
|||
font-size: 90%; |
|||
#about, |
|||
#disclaimer { |
|||
display: none; |
|||
} |
|||
} |
} |
||
/* |
|||
</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;
}
}