MediaWiki:Common.css: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
removing "highlight page protection" - one message is enough, this is just confusing
Removed lines 29-43: no longer necessary, per request Special:Diff/25864593
 
(130 intermediate revisions by 40 users not shown)
Line 1: Line 1:
/*
/*
* This is the common CSS for all desktop skins on Meta.
<source lang="css">
* 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 */
/* hide unneeded content when printing */
span.updatedmarker {
@media print {
color: black;
#privacy, #about, #disclaimer { display:none; }
background-color: #0f0;
}
}


/* T156351: Support for Parsoid's Cite implementation */
/* hide arrows on selected external links */
span[rel="mw:referencedBy"] {
.plainlinksneverexpand a {
counter-reset: mw-ref-linkback 0;
background:none !important;
padding:0 !important;
}
}


span[rel="mw:referencedBy"] > a::before {
/*******************
font-weight: bold;
** Hide selected content (should rarely be used, accessibility issues)
font-style: italic;
*******************/
content: counter( mw-ref-linkback, lower-alpha );
.hiddenStructure { display:none; }
.if { display:none; }

/*******************
** Table formatting
*******************/
table.wikitable,
table.prettytable {
margin:1em 1em 1em 0;
border:1px solid #AAA;
border-collapse:collapse;
background:#F9F9F9;
}
}


/* Different font-family for Farsi (fa) */
table.wikitable th, table.wikitable td,
:lang(fa) {
table.prettytable th, table.prettytable td {
font-family: Tahoma, 'Iranian Sans', 'DejaVu Sans', 'Noto Sans', 'Droid Arabic Kufi', sans-serif;
padding:0.2em;
border:1px solid #AAA;
}
}


/* Reset italic styling set by user agent */
table.wikitable th,
cite,
table.prettytable th {
dfn {
background:#F2F2F2;
font-style: inherit;
text-align:center;
}
}


/* Style for change tags */
table.wikitable caption,
.mw-tag-markers {
table.prettytable caption {
font-family: sans-serif;
margin-left:inherit;
font-style: italic;
margin-right:inherit;
font-size: 90%;
}
}


/**
/*******************
* Can be removed after the deployment of
** Infoboxes
* https://gerrit.wikimedia.org/r/#/c/286128/
*******************/
*/
.infobox {
/* @noflip */
float:right;
.rtl a.external.free,
clear:right;
.rtl a.external.autonumber {
margin-bottom:0.5em;
direction: ltr;
margin-left:1em;
unicode-bidi: -moz-isolate;
padding:0.2em;
unicode-bidi: -webkit-isolate;
border:1px solid #AAA;
unicode-bidi: isolate;
background:#F9F9F9;
display: inline-block; /* Fake bidi isolation for Microsoft browsers. */
color:black;
}
}


/**
.infobox td,
* Div based "warning" style fmbox messages for those
.infobox th {
* which are not part of [[Module:Message box]]
vertical-align:top;
* 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 caption {
/*
margin-left:inherit;
#mw-renamequeue-approve{
font-size:larger;
display: none;
}
}
*/


/**
.infobox.bordered {
* Hide Special:Log/renameuser log entries in Special:RecentChanges
border-collapse:collapse;
* 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 */
.infobox.bordered td,
@media print {
.infobox.bordered th {
#privacy,
border:1px solid #AAA;
#about,
#disclaimer {
display: none;
}
}
}

.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border:0;
}

/*******************
** Sister project templates
*******************/
.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;
text-align:left;
}

/*******************
** {{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 external link icon to Adobe icon for PDF files
*******************/
/* for 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 {
padding-right:16px;
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;
}

/* in {{PDFlink}}, for browsers that don't support the above (IE) */
span.PDFlink a {
padding-right:17px !important;
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;
}

/*******************
** Collapsible navigation boxes (see [[en:Wikipedia:NavFrame]])
*******************/
div.Boxmerge,
div.NavFrame {
margin:0px;
padding:4px;
border:1px solid #AAA;
border-collapse:collapse;
text-align:center;
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 {
float:left;
margin:0px;
padding:2px;
background:#FFF;
}
div.NavFrame div.NavHead {
position:relative;
height:1.6em;
background:#CCF;
font-weight:bold;
}
div.NavFrame p {
font-size:100%;
}
div.NavFrame div.NavContent {
font-size:100%;
}
div.NavFrame div.NavContent p {
font-size:100%;
}
div.NavEnd {
clear:both;
margin:0px;
padding:0px;
line-height:1px;
}
a.NavToggle {
position:absolute;
top:0px;
right:3px;
font-size:smaller;
font-weight:normal;
}

/*******************
** Messagebox templates
** Imported from [[en:MediaWiki:Common.css]] on 2007-07-13
*******************/
.messagebox {
width:80%;
margin:0 auto 1em auto;
padding:0.2em;
border:1px solid #AAA;
background:#F9F9F9;
}
.messagebox.merge {
border:1px solid #C0B8CC;
background:#F0E5FF;
text-align:center;
}
.messagebox.cleanup {
border:1px solid #9F9FFF;
background:#EFEFFF;
text-align:center;
}
.messagebox .standard-talk {
border:1px solid #C0C090;
background:#F8EABA;
}
.messagebox.nested-talk {
width:100%;
margin:2px 4px 2px 4px;
border:1px solid #C0C090;
background:#F8EABA;
}
.messagebox.small {
float:right;
clear:both;
width:238px;
margin:0 0 1em 1em;
font-size:85%;
line-height:1.25em;
}

/*******************
** Template documentation
*******************/
.template-documentation {
clear:both;
margin:1em 0 0 0;
padding:5px;
border:1px solid #AAA;
background:#ECFCF4;
}

.hidden-redlink a.new { display:none; }

/*******************
** Allow limiting which header levels are shown in a TOC
** ie, <div class="toclimit-3">__TOC__</div> will only show top 3 header levels.
*******************/
.toclimit-2 .toclevel-2 { display:none; }
.toclimit-3 .toclevel-3 { display:none; }
.toclimit-4 .toclevel-4 { display:none; }
.toclimit-5 .toclevel-5 { display:none; }
.toclimit-6 .toclevel-6 { display:none; }
.toclimit-7 .toclevel-7 { display:none; }

/*******************
** Faciliate RTL translation
*******************/
.persian {
direction:rtl;
font-family:Tahoma;
}

#bodyContent .persian a, #bodyContent .persian a.external {
padding-right:0;
background:none;
}

.persian #toctitle {
direction:ltr;
}

.persian .toclevel-1, .persian .toclevel-2, .persian .toclevel-3, .persian .toclevel-4 {
text-align:right;
}

.persian .toclevel-2 {
margin-right:10px;
}

.persian .toclevel-3 {
margin-right:20px;
}

.persian .toclevel-4 {
margin-right:30px;
}

.persian .editsection {
float:left;
}

.persian UL {
margin-right:16px;
display:table;
}

.persian OL {
margin-right:16px;
display:table;
}

#bodyContent .arabic a {
padding-right:0;
background:none;
}

/*******************
** Default style for PrettyTextBox and InformationBox class of templates
** ie, {{warning}}, {{info}}, etc
*******************/
.InformationBox {
width:80%;
clear:both;
margin:0.5em auto;
padding:3px;
border:1px solid #999;
background:#F8F8F8;
color:#000;
}

.PrettyTextBox {
padding:.2em;
border:1px solid #AAA;
background:#F9F9F9;
color:#000;
}

/*******************
** Highlight clicked reference in blue to help navigation
*******************/
ol.references > li:target {
background:#DEF;
}

sup.reference:target {
background:#DEF;
}

/*
</source>
*/

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;
	}
}