MediaWiki:Common.css: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
m rv (unneeded)
made style consistent
Line 2: Line 2:
<source lang="css">
<source lang="css">
*/
*/

/*****
/*******************
** Minor tweaks
** Minor tweaks
*****/
*******************/
/* redirects in categories, on [[Special:Allpages]], and [[Special:Prefixindex]] */
/* redirects in categories, on [[Special:Allpages]], and [[Special:Prefixindex]] */
.redirect-in-category, .allpagesredirect {
.redirect-in-category, .allpagesredirect {
font-style: italic;
font-style:italic;
color:gray;
color:gray;
}
}


/* hide unneeded content when printing */
@media print {
#privacy, #about, #disclaimer { display:none; }
}


/* hide arrows on selected external links */
.plainlinksneverexpand a {
background:none !important;
padding:0 !important;
}


/*******************
/* hide unneeded content when printing */
** Hide selected content (should rarely be used, accessibility issues)
@media print {
*******************/
#privacy, #about, #disclaimer {display:none;}
.hiddenStructure { display:none; }
}
.if { display:none; }


/*******************

/* hide arrows on selected external links */
.plainlinksneverexpand a {
background:none !important;
padding:0 !important;
}


/*****
** Hide selected content
*****/
.hiddenStructure {display: none}

.if {display: none}


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


table.wikitable th, table.wikitable td,
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
table.prettytable th, table.prettytable td {
padding:0.2em;
border:1px #AAA solid;
border:1px solid #AAA;
padding:0.2em;
}
}


table.wikitable th,
table.wikitable th,
table.prettytable th {
table.prettytable th {
background:#F2F2F2;
background:#F2F2F2;
text-align:center;
text-align:center;
}
}


table.wikitable caption,
table.wikitable caption,
table.prettytable caption {
table.prettytable caption {
margin-left:inherit;
margin-left:inherit;
margin-right:inherit;
margin-right:inherit;
}
}


/*******************
** Infoboxes
*******************/
.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 {
** box formatting
vertical-align:top;
*****/
}
.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 caption {
margin-left:inherit;
.infobox th {
font-size:larger;
vertical-align:top;
}
}


.infobox caption {
.infobox.bordered {
border-collapse:collapse;
font-size:larger;
}
margin-left:inherit;
}


.infobox.bordered {
.infobox.bordered td,
.infobox.bordered th {
border-collapse:collapse;
border:1px solid #AAA;
}
}


.infobox.bordered td,
.infobox.bordered .borderless td,
.infobox.bordered th {
.infobox.bordered .borderless th {
border:1px solid #AAA;
border:0;
}
}


/*******************
.infobox.bordered .borderless td,
** Sister project templates
.infobox.bordered .borderless th {
*******************/
border:0;
.infobox.sisterproject {
}
width:20em;
font-size:90%;
}


.sister-project {
.infobox.sisterproject {
clear:right;
width:20em;
float:right;
font-size:90%;
width:250px;
}
margin:0 0 1em 3em;
padding:4px;
border:1px solid #AAA;
background:#F9F9F9;
font-size:0.8em;
text-align:left;
}


/*******************
.sister-project {
** {{other languages}}
clear:right;
*******************/
float:right;
#otherlangs {
width:250px;
margin:0 0 1em 3em;
margin:0.5em;
padding:4px;
padding:2px;
border:1px solid #AAA;
border:1px solid #CCC;
background:#F9F9F9;
background:#FAFAFA;
font-size:0.8em;
font-size:0.9em;
}
text-align:left;
#otherlangs span {
}
margin:0 2px;
/* [[template:other languages]] */
padding-left:2px;
#otherlangs {
border-left:1px solid gray;
margin:0.5em;
}
padding:2px;
#otherlangs span.firstlang {
border:1px solid #CCC;
border:none;
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)
** Specific pages (keep to a minimum)
*****/
*******************/
/* Spam blacklist */
/* Spam blacklist */
body.page-Talk_Spam_blacklist #ca-addsection {display:none;}
body.page-Talk_Spam_blacklist #ca-addsection { display:none; }


/* Spam blacklist/log */
.logtable pre {
margin:0;
padding:0;
border:0;
}


/*******************
/* Spam blacklist/log */
.logtable pre {
margin:0;
padding:0;
border:0;
}

/*****
** Bytecounter colours
** Bytecounter colours
*****/
*******************/
strong.mw-plusminus-neg
strong.mw-plusminus-neg { color:#C00; }
span.mw-plusminus-neg { color:#900; }
{
color: #c00;
span.mw-plusminus-pos { color:#060; }
}


/*******************
span.mw-plusminus-neg
** Change external link icon to Adobe icon for PDF files
{
*******************/
color: #900;
/* for browsers that support these CSS selectors, like Mozilla and Opera */
}
#bodyContent a[href$=".pdf"].external,

#bodyContent a[href*=".pdf?"].external,
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,
#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;
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;
}
}


/* in {{PDFlink}}, for browsers that don't support the above (IE) */
/* Change the external link icon to an Adobe icon anywhere the PDFlink class */
/* is used (notably Template:PDFlink). This works in IE, unlike the above. */
span.PDFlink a {
span.PDFlink a {
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;
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;
}
}


/*******************
/* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at [[Wikipedia:NavFrame]]. */
** Collapsible navigation boxes (see [[en:Wikipedia:NavFrame]])

*******************/
div.Boxmerge,
div.Boxmerge,
div.NavFrame {
div.NavFrame {
margin: 0px;
margin:0px;
padding: 4px;
padding:4px;
border: 1px solid #aaa;
border:1px solid #AAA;
border-collapse:collapse;
text-align: center;
text-align:center;
border-collapse: collapse;
font-size: 95%;
font-size:95%;
}
}
div.Boxmerge div.NavFrame {
div.Boxmerge div.NavFrame {
border-style: none;
border-style:none;
border-style: hidden;
border-style:hidden;
}
}
div.NavFrame + div.NavFrame {
div.NavFrame + div.NavFrame {
border-top-style: none;
border-top-style:none;
border-top-style: hidden;
border-top-style:hidden;
}
}
div.NavPic {
div.NavPic {
float:left;
background-color: #fff;
margin: 0px;
margin:0px;
padding: 2px;
padding:2px;
background:#FFF;
float: left;
}
}
div.NavFrame div.NavHead {
div.NavFrame div.NavHead {
position:relative;
height: 1.6em;
height:1.6em;
font-weight: bold;
background-color: #ccccff;
background:#CCF;
font-weight:bold;
position:relative;
}
}
div.NavFrame p {
div.NavFrame p {
font-size: 100%;
font-size:100%;
}
}
div.NavFrame div.NavContent {
div.NavFrame div.NavContent {
font-size: 100%;
font-size:100%;
}
}
div.NavFrame div.NavContent p {
div.NavFrame div.NavContent p {
font-size: 100%;
font-size:100%;
}
}
div.NavEnd {
div.NavEnd {
clear:both;
margin: 0px;
padding: 0px;
margin:0px;
padding:0px;
line-height: 1px;
line-height:1px;
clear: both;
}
}
a.NavToggle {
a.NavToggle {
position:absolute;
position:absolute;
top:0px;
top:0px;
right:3px;
right:3px;
font-weight:normal;
font-size:smaller;
font-size:smaller;
font-weight:normal;
}
}


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

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


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


/*******************
/* Allow limiting of which header levels are shown in a TOC; <div class="toclimit-3">, for
** Allow limiting which header levels are shown in a TOC
instance, will limit to showing ==headings== and ===headings=== but no further (as long as
** ie, <div class="toclimit-3">__TOC__</div> will only show top 3 header levels.
there are no =headings= on the page, which there shouldn't be according to the MOS).
*******************/
Thanks to w:en:User:Ais523 for that code.*/
.toclimit-2 .toclevel-2 {display:none;}
.toclimit-2 .toclevel-2 { display:none; }
.toclimit-3 .toclevel-3 {display:none;}
.toclimit-3 .toclevel-3 { display:none; }
.toclimit-4 .toclevel-4 {display:none;}
.toclimit-4 .toclevel-4 { display:none; }
.toclimit-5 .toclevel-5 {display:none;}
.toclimit-5 .toclevel-5 { display:none; }
.toclimit-6 .toclevel-6 {display:none;}
.toclimit-6 .toclevel-6 { display:none; }
.toclimit-7 .toclevel-7 {display:none;}
.toclimit-7 .toclevel-7 { display:none; }


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

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


.persian #toctitle {
.persian #toctitle {
direction:ltr;
direction:ltr;
}
}


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


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


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


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


.persian .editsection {
.persian .editsection {
float:left;
float:left;
}
}


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


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

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


/*******************
/* Default style for PrettyTextBox and InformationBox class of templates */
/* Default style for Template:Warning, Template:Info, and the like */
** Default style for PrettyTextBox and InformationBox class of templates
** ie, {{warning}}, {{info}}, etc
.InformationBox {
*******************/
width: 80%;
.InformationBox {
border: solid #999999 1px;
width:80%;
background: #F8F8F8;
clear:both;
margin: 0.5em auto;
margin:0.5em auto;
clear: both;
padding:3px;
color: #000000;
border:1px solid #999;
padding: 3px;
background:#F8F8F8;
}
color:#000;
}
.PrettyTextBox {
background-color: #F9F9F9;
color: #000000;
border: 1px solid #AAAAAA;
padding: .2em;
}


.PrettyTextBox {
/* Highlight clicked reference in blue to help navigation */
padding:.2em;
border:1px solid #AAA;
background:#F9F9F9;
color:#000;
}

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

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



Revision as of 06:58, 18 September 2009

/*
<source lang="css">
*/

/*******************
** Minor tweaks
*******************/
/* redirects in categories, on [[Special:Allpages]], and [[Special:Prefixindex]] */
.redirect-in-category, .allpagesredirect {
	font-style:italic;
	color:gray;
}

/* hide unneeded content when printing */
@media print {
#privacy, #about, #disclaimer { display:none; }
}

/* hide arrows on selected external links */
.plainlinksneverexpand a {
	background:none !important;
	padding:0 !important;
}

/*******************
** Hide selected content (should rarely be used, accessibility issues)
*******************/
.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;
}

table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
	padding:0.2em;
	border:1px solid #AAA;
}

table.wikitable th,
table.prettytable th {
	background:#F2F2F2;
	text-align:center;
}

table.wikitable caption,
table.prettytable caption {
	margin-left:inherit;
	margin-right:inherit;
}

/*******************
** Infoboxes
*******************/
.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 {
	margin-left:inherit;
	font-size:larger;
}

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

/*******************
** 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>
*/