Difference between revisions of "MediaWiki:Common.css"
From Eyewire
m |
(we now have a magic word for this) |
||
Line 1: | Line 1: | ||
− | /* | + | /* <nowiki> */ |
− | + | /* {{user language}} */ | |
− | + | @import "//meta.wikimedia.org/w/index.php?title=MediaWiki:User_language.css&action=raw&ctype=text/css&r=2"; | |
− | + | ||
− | + | /* {{mbox}}, {{ambox}}, {{ombox}}, {{fmbox}}, etc... */ | |
− | + | @import "//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-enwp-boxes.css&action=raw&ctype=text/css"; | |
+ | |||
+ | /* Redirects in categories, on [[Special:Allpages]], and [[Special:Prefixindex]] */ | ||
+ | .redirect-in-category, .allpagesredirect a { | ||
+ | color: gray; | ||
} | } | ||
− | + | ||
− | + | /* Hide some code on the Main Page */ | |
− | + | body.page-Main_Page.action-view #siteSub, | |
+ | body.page-Main_Page.action-view #contentSub, | ||
+ | body.page-Main_Page.action-view .firstHeading, | ||
+ | body.page-Main_Page.action-view #jump-to-nav { | ||
+ | display: none !important; | ||
} | } | ||
− | /* | + | |
− | + | /** | |
− | + | ** User language styles ({{#babel:}}) | |
− | + | **/ | |
− | + | table.mw-babel-wrapper { | |
+ | float:right; | ||
+ | clear:right; | ||
+ | margin-right:0; | ||
+ | margin-left:1em; | ||
+ | margin-bottom: 0.5em; | ||
+ | border-width:0; | ||
+ | } | ||
+ | |||
+ | div.mw-babel-box.mw-babel-box-0, | ||
+ | div.mw-babel-box.mw-babel-box-1, | ||
+ | div.mw-babel-box.mw-babel-box-2, | ||
+ | div.mw-babel-box.mw-babel-box-3, | ||
+ | div.mw-babel-box.mw-babel-box-4, | ||
+ | div.mw-babel-box.mw-babel-box-5, | ||
+ | div.mw-babel-box.mw-babel-box-N { | ||
+ | border-width:0; | ||
+ | } | ||
+ | |||
+ | div.mw-babel-box-0 table, | ||
+ | div.mw-babel-box-1 table, | ||
+ | div.mw-babel-box-2 table, | ||
+ | div.mw-babel-box-3 table, | ||
+ | div.mw-babel-box-4 table, | ||
+ | div.mw-babel-box-5 table, | ||
+ | div.mw-babel-box-N table{ | ||
+ | background-color:#F9F9F9; | ||
+ | } | ||
+ | |||
+ | div.mw-babel-box { | ||
+ | margin:0; | ||
+ | margin-bottom:-1px; /* collapse adjacent borders */ | ||
+ | } | ||
+ | |||
+ | div.mw-babel-box table { | ||
+ | width:19em; | ||
+ | border:1px solid #AAA; | ||
+ | border-collapse:collapse; | ||
} | } | ||
− | + | div.mw-babel-box table th, | |
− | + | div.mw-babel-box table td { | |
− | + | height:auto; | |
− | + | padding:4px; | |
+ | border:1px solid #AAA; | ||
} | } | ||
+ | |||
+ | div.mw-babel-box table th { | ||
+ | width:3em; | ||
+ | background:#CCC; | ||
+ | text-align:center; | ||
+ | font-size:1.3em; | ||
+ | } | ||
+ | |||
+ | div.mw-babel-box table td { | ||
+ | width:16em; | ||
+ | font-size:0.9em; | ||
+ | line-height:1.1em; | ||
+ | } | ||
+ | |||
+ | div.mw-babel-box-1 table th { background-color:#ADA; } | ||
+ | div.mw-babel-box-2 table th { background-color:#8E8; } | ||
+ | div.mw-babel-box-3 table th { background-color:#6E6; } | ||
+ | div.mw-babel-box-4 table th { background-color:#3E3; } | ||
+ | div.mw-babel-box-5 table th { background-color:#2E2; } | ||
+ | div.mw-babel-box-N table th { background-color:#0D0; } | ||
+ | |||
+ | .mw-babel-footer { | ||
+ | display:none; | ||
+ | } | ||
+ | |||
+ | /* {{babel-plain|xx-x}} shows a single box without floating or formatting, for custom user pages */ | ||
+ | .babel-plain table.mw-babel-wrapper { | ||
+ | float:none; | ||
+ | clear:none; | ||
+ | margin:0; | ||
+ | } | ||
+ | |||
+ | .babel-plain div.mw-babel-box { | ||
+ | margin:0; | ||
+ | } | ||
+ | |||
+ | .babel-plain .mw-babel-header, | ||
+ | .babel-plain .mw-babel-footer { | ||
+ | display:none; | ||
+ | } | ||
+ | |||
+ | |||
+ | /** | ||
+ | ** Printing | ||
+ | **/ | ||
+ | /* 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; | ||
+ | } | ||
+ | |||
+ | /* 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('//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; } | ||
− | /* Allow | + | /* Allow limiting of which header levels are shown in a TOC; |
− | + | <div class="toclimit-3">, for instance, will limit to | |
+ | showing ==headings== and ===headings=== but no further | ||
+ | (as long as there are no =headings= on the page, which | ||
+ | there shouldn't be according to the MoS). */ | ||
+ | .toclimit-2 .toclevel-1 ul, | ||
+ | .toclimit-3 .toclevel-2 ul, | ||
+ | .toclimit-4 .toclevel-3 ul, | ||
+ | .toclimit-5 .toclevel-4 ul, | ||
+ | .toclimit-6 .toclevel-5 ul, | ||
+ | .toclimit-7 .toclevel-6 ul { | ||
display: none; | display: 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; | |
− | + | ||
} | } | ||
− | /* Styling for | + | /** |
− | + | ** 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; | ||
+ | } | ||
+ | |||
+ |