MediaWiki:Common.css: Difference between revisions
Content deleted Content added
mNo edit summary |
consistent whitespace |
||
Line 1: | Line 1: | ||
⚫ | |||
/******************* |
|||
** Minor tweaks |
|||
*******************/ |
|||
⚫ | |||
.redirect-in-category, .allpagesredirect a { |
.redirect-in-category, .allpagesredirect a { |
||
color:gray; |
color: gray; |
||
} |
} |
||
/* hide unneeded content when printing */ |
/* hide unneeded content when printing */ |
||
@media print { |
@media print { |
||
#privacy, #about, #disclaimer { |
#privacy, #about, #disclaimer { |
||
display: none; |
|||
} |
|||
} |
} |
||
/** |
|||
/******************* |
|||
** Hide selected content (should rarely be used, |
** Hide selected content (should rarely be used, backwards compatibility) |
||
**/ |
|||
*******************/ |
|||
.hiddenStructure |
.hiddenStructure, .if { |
||
display: none; |
|||
} |
|||
.if { display:none; } |
|||
/** |
|||
/******************* |
|||
** Infoboxes |
** Infoboxes |
||
**/ |
|||
*******************/ |
|||
.infobox { |
.infobox { |
||
float:right; |
float: right; |
||
clear:right; |
clear: right; |
||
margin-bottom:0.5em; |
margin-bottom: 0.5em; |
||
margin-left:1em; |
margin-left: 1em; |
||
padding:0.2em; |
padding: 0.2em; |
||
border:1px solid #AAA; |
border: 1px solid #AAA; |
||
background:#F9F9F9; |
background: #F9F9F9; |
||
color:black; |
color: black; |
||
} |
} |
||
.infobox td, |
.infobox td, |
||
.infobox th { |
.infobox th { |
||
vertical-align:top; |
vertical-align: top; |
||
} |
} |
||
.infobox caption { |
.infobox caption { |
||
margin-left:inherit; |
margin-left: inherit; |
||
font-size:larger; |
font-size: larger; |
||
} |
} |
||
.infobox.bordered { |
.infobox.bordered { |
||
border-collapse:collapse; |
border-collapse: collapse; |
||
} |
} |
||
.infobox.bordered td, |
.infobox.bordered td, |
||
.infobox.bordered th { |
.infobox.bordered th { |
||
border:1px solid #AAA; |
border: 1px solid #AAA; |
||
} |
} |
||
.infobox.bordered .borderless td, |
.infobox.bordered .borderless td, |
||
.infobox.bordered .borderless th { |
.infobox.bordered .borderless th { |
||
border:0; |
border: 0; |
||
} |
} |
||
/** |
|||
/******************* |
|||
** Sister project templates |
** Sister project templates |
||
**/ |
|||
*******************/ |
|||
.infobox.sisterproject { |
.infobox.sisterproject { |
||
width:20em; |
width: 20em; |
||
font-size:90%; |
font-size: 90%; |
||
} |
} |
||
.sister-project { |
.sister-project { |
||
clear:right; |
clear: right; |
||
float:right; |
float: right; |
||
width:250px; |
width: 250px; |
||
margin:0 0 1em 3em; |
margin: 0 0 1em 3em; |
||
padding:4px; |
padding: 4px; |
||
border:1px solid #AAA; |
border: 1px solid #AAA; |
||
background:#F9F9F9; |
background: #F9F9F9; |
||
font-size:0.8em; |
font-size: 0.8em; |
||
text-align:left; |
text-align: left; |
||
} |
} |
||
/** |
|||
/******************* |
|||
** {{other languages}} |
** {{other languages}} |
||
**/ |
|||
*******************/ |
|||
#otherlangs { |
#otherlangs { |
||
margin:0.5em; |
margin: 0.5em; |
||
padding:2px; |
padding: 2px; |
||
border:1px solid #CCC; |
border: 1px solid #CCC; |
||
background:#FAFAFA; |
background: #FAFAFA; |
||
font-size:0.9em; |
font-size: 0.9em; |
||
} |
} |
||
#otherlangs span { |
#otherlangs span { |
||
margin:0 2px; |
margin: 0 2px; |
||
padding-left:2px; |
padding-left: 2px; |
||
border-left:1px solid gray; |
border-left: 1px solid gray; |
||
} |
} |
||
#otherlangs span.firstlang { |
#otherlangs span.firstlang { |
||
border:none; |
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 */ |
/* Spam blacklist/log */ |
||
.logtable pre { |
.logtable pre { |
||
margin:0; |
margin: 0; |
||
padding:0; |
padding: 0; |
||
border:0; |
border: 0; |
||
} |
} |
||
/* Fundraising email feedback */ |
/* Fundraising email feedback */ |
||
.page-Talk_Fundraising_2010_Feedback #firstHeading {display:none; } |
.page-Talk_Fundraising_2010_Feedback #firstHeading {display: none; } |
||
/* in {{PDFlink}}, for browsers that don't support the above (IE) */ |
/* in {{PDFlink}}, for browsers that don't support the above (IE) */ |
||
span.PDFlink a { |
span.PDFlink a { |
||
padding-right:17px !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; |
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]]) |
** 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; |
border-collapse: collapse; |
||
text-align:center; |
text-align: center; |
||
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; |
float: left; |
||
margin:0px; |
margin: 0px; |
||
padding:2px; |
padding: 2px; |
||
background:#FFF; |
background: #FFF; |
||
} |
} |
||
div.NavFrame div.NavHead { |
div.NavFrame div.NavHead { |
||
position:relative; |
position: relative; |
||
height:1.6em; |
height: 1.6em; |
||
background:#CCF; |
background: #CCF; |
||
font-weight:bold; |
font-weight: bold; |
||
} |
} |
||
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; |
clear: both; |
||
margin:0px; |
margin: 0px; |
||
padding:0px; |
padding: 0px; |
||
line-height:1px; |
line-height: 1px; |
||
} |
} |
||
a.NavToggle { |
a.NavToggle { |
||
position:absolute; |
position: absolute; |
||
top:0px; |
top: 0px; |
||
right:3px; |
right: 3px; |
||
font-size:smaller; |
font-size: smaller; |
||
font-weight:normal; |
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%; |
width: 80%; |
||
margin:0 auto 1em auto; |
margin: 0 auto 1em auto; |
||
padding:0.2em; |
padding: 0.2em; |
||
border:1px solid #AAA; |
border: 1px solid #AAA; |
||
background:#F9F9F9; |
background: #F9F9F9; |
||
} |
} |
||
.messagebox.merge { |
.messagebox.merge { |
||
border:1px solid #C0B8CC; |
border: 1px solid #C0B8CC; |
||
background:#F0E5FF; |
background: #F0E5FF; |
||
text-align:center; |
text-align: center; |
||
} |
} |
||
.messagebox.cleanup { |
.messagebox.cleanup { |
||
border:1px solid #9F9FFF; |
border: 1px solid #9F9FFF; |
||
background:#EFEFFF; |
background: #EFEFFF; |
||
text-align:center; |
text-align: center; |
||
} |
} |
||
.messagebox .standard-talk { |
.messagebox .standard-talk { |
||
border:1px solid #C0C090; |
border: 1px solid #C0C090; |
||
background:#F8EABA; |
background: #F8EABA; |
||
} |
} |
||
.messagebox.nested-talk { |
.messagebox.nested-talk { |
||
width:100%; |
width: 100%; |
||
margin:2px 4px 2px 4px; |
margin: 2px 4px 2px 4px; |
||
border:1px solid #C0C090; |
border: 1px solid #C0C090; |
||
background:#F8EABA; |
background: #F8EABA; |
||
} |
} |
||
.messagebox.small { |
.messagebox.small { |
||
float:right; |
float: right; |
||
clear:both; |
clear: both; |
||
width:238px; |
width: 238px; |
||
margin:0 0 1em 1em; |
margin: 0 0 1em 1em; |
||
font-size:85%; |
font-size: 85%; |
||
line-height:1.25em; |
line-height: 1.25em; |
||
} |
} |
||
/* To color the mention "updated since my last visit" in the history */ |
/* To color the mention "updated since my last visit" in the history */ |
||
span.updatedmarker { |
span.updatedmarker { |
||
color: black; |
color: black; |
||
background-color: #0f0; |
background-color: #0f0; |
||
} |
} |
||
/** |
|||
/******************* |
|||
** Template documentation |
** Template documentation |
||
**/ |
|||
*******************/ |
|||
.template-documentation { |
.template-documentation { |
||
clear:both; |
clear: both; |
||
margin:1em 0 0 0; |
margin: 1em 0 0 0; |
||
padding:5px; |
padding: 5px; |
||
border:1px solid #AAA; |
border: 1px solid #AAA; |
||
background:#ECFCF4; |
background: #ECFCF4; |
||
} |
} |
||
.hidden-redlink a.new { display:none; } |
.hidden-redlink a.new { display: none; } |
||
/** |
/** |
||
** TOC Limit |
|||
** 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, |
.toclimit-2 .toclevel-2, |
||
.toclimit-3 .toclevel-3, |
.toclimit-3 .toclevel-3, |
||
Line 243: | Line 243: | ||
.toclimit-6 .toclevel-6, |
.toclimit-6 .toclevel-6, |
||
.toclimit-7 .toclevel-7 { |
.toclimit-7 .toclevel-7 { |
||
display:none; |
display: none; |
||
} |
} |
||
/** |
|||
/******************* |
|||
** Faciliate RTL translation |
** Faciliate RTL translation |
||
**/ |
|||
*******************/ |
|||
.persian, .rtl { |
.persian, .rtl { |
||
direction:rtl; |
direction: rtl; |
||
font-family:Tahoma; |
font-family: Tahoma; |
||
} |
} |
||
#bodyContent .persian a, #bodyContent .persian a.external, #bodyContent .rtl a, #bodyContent .rtl a.external { |
#bodyContent .persian a, #bodyContent .persian a.external, #bodyContent .rtl a, #bodyContent .rtl a.external { |
||
padding-right:0; |
padding-right: 0; |
||
background:none; |
background: none; |
||
} |
} |
||
.persian #toctitle, .rtl #toctitle { |
.persian #toctitle, .rtl #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; |
||
} |
} |
||
.rtl .toclevel-1, .rtl .toclevel-2, .rtl .toclevel-3, .rtl .toclevel-4 { |
.rtl .toclevel-1, .rtl .toclevel-2, .rtl .toclevel-3, .rtl .toclevel-4 { |
||
text-align:right; |
text-align: right; |
||
} |
} |
||
.persian .toclevel-2, .rtl .toclevel-2 { |
.persian .toclevel-2, .rtl .toclevel-2 { |
||
margin-right:10px; |
margin-right: 10px; |
||
} |
} |
||
.persian .toclevel-3, .rtl .toclevel-3 { |
.persian .toclevel-3, .rtl .toclevel-3 { |
||
margin-right:20px; |
margin-right: 20px; |
||
} |
} |
||
.persian .toclevel-4, .rtl .toclevel-4 { |
.persian .toclevel-4, .rtl .toclevel-4 { |
||
margin-right:30px; |
margin-right: 30px; |
||
} |
} |
||
.persian .editsection, .rtl .editsection { |
.persian .editsection, .rtl .editsection { |
||
float:left; |
float: left; |
||
} |
} |
||
.persian UL, .rtl UL { |
.persian UL, .rtl UL { |
||
margin-right:16px; |
margin-right: 16px; |
||
display:table; |
display: table; |
||
} |
} |
||
.persian OL, .rtl OL { |
.persian OL, .rtl OL { |
||
margin-right:16px; |
margin-right: 16px; |
||
display:table; |
display: table; |
||
} |
} |
||
#bodyContent .arabic a, #bodyContent .rtl a { |
#bodyContent .arabic a, #bodyContent .rtl a { |
||
padding-right:0; |
padding-right: 0; |
||
background:none; |
background: none; |
||
} |
} |
||
/** |
|||
/******************* |
|||
** Default style for PrettyTextBox and InformationBox class of templates |
** Default style for PrettyTextBox and InformationBox class of templates |
||
** ie, {{warning}}, {{info}}, etc |
** ie, {{warning}}, {{info}}, etc |
||
**/ |
|||
*******************/ |
|||
.InformationBox { |
.InformationBox { |
||
width:80%; |
width: 80%; |
||
clear:both; |
clear: both; |
||
margin:0.5em auto; |
margin: 0.5em auto; |
||
padding:3px; |
padding: 3px; |
||
border:1px solid #999; |
border: 1px solid #999; |
||
background:#F8F8F8; |
background: #F8F8F8; |
||
color:#000; |
color: #000; |
||
} |
} |
||
.PrettyTextBox { |
.PrettyTextBox { |
||
padding:.2em; |
padding: .2em; |
||
border:1px solid #AAA; |
border: 1px solid #AAA; |
||
background:#F9F9F9; |
background: #F9F9F9; |
||
color:#000; |
color: #000; |
||
} |
} |
||
/** |
|||
/******************* |
|||
** Highlight clicked reference in blue to help navigation |
** Highlight clicked reference in blue to help navigation |
||
**/ |
|||
*******************/ |
|||
ol.references > li:target { |
ol.references > li: target { |
||
background:#DEF; |
background: #DEF; |
||
} |
} |
||
sup.reference:target { |
sup.reference: target { |
||
background:#DEF; |
background: #DEF; |
||
} |
} |
||
Line 337: | Line 337: | ||
body.page-Toolserver_watcher a.new:link, |
body.page-Toolserver_watcher a.new:link, |
||
body.page-Toolserver_watcher a.new:visited { |
body.page-Toolserver_watcher a.new:visited { |
||
color: grey; |
|||
} |
} |
Revision as of 21:51, 15 February 2011
/* Redirects in categories, on [[Special:Allpages]], and [[Special:Prefixindex]] */
.redirect-in-category, .allpagesredirect a {
color: gray;
}
/* hide unneeded content when printing */
@media print {
#privacy, #about, #disclaimer {
display: none;
}
}
/**
** Hide selected content (should rarely be used, backwards compatibility)
**/
.hiddenStructure, .if {
display: none;
}
/**
** 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;
}
/* Fundraising email feedback */
.page-Talk_Fundraising_2010_Feedback #firstHeading {display: none; }
/* 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;
}
/* To color the mention "updated since my last visit" in the history */
span.updatedmarker {
color: black;
background-color: #0f0;
}
/**
** 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; }
/**
** TOC Limit
** 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,
.toclimit-3 .toclevel-3,
.toclimit-4 .toclevel-4,
.toclimit-5 .toclevel-5,
.toclimit-6 .toclevel-6,
.toclimit-7 .toclevel-7 {
display: none;
}
/**
** Faciliate RTL translation
**/
.persian, .rtl {
direction: rtl;
font-family: Tahoma;
}
#bodyContent .persian a, #bodyContent .persian a.external, #bodyContent .rtl a, #bodyContent .rtl a.external {
padding-right: 0;
background: none;
}
.persian #toctitle, .rtl #toctitle {
direction: ltr;
}
.persian .toclevel-1, .persian .toclevel-2, .persian .toclevel-3, .persian .toclevel-4 {
text-align: right;
}
.rtl .toclevel-1, .rtl .toclevel-2, .rtl .toclevel-3, .rtl .toclevel-4 {
text-align: right;
}
.persian .toclevel-2, .rtl .toclevel-2 {
margin-right: 10px;
}
.persian .toclevel-3, .rtl .toclevel-3 {
margin-right: 20px;
}
.persian .toclevel-4, .rtl .toclevel-4 {
margin-right: 30px;
}
.persian .editsection, .rtl .editsection {
float: left;
}
.persian UL, .rtl UL {
margin-right: 16px;
display: table;
}
.persian OL, .rtl OL {
margin-right: 16px;
display: table;
}
#bodyContent .arabic a, #bodyContent .rtl 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;
}
/* Have redlinks show up as grey on [[Toolserver/watcher]] */
body.page-Toolserver_watcher a.new:link,
body.page-Toolserver_watcher a.new:visited {
color: grey;
}