Difference between revisions of "MediaWiki:Common.css"

From Eyewire
Jump to: navigation, search
(we now have a magic word for this)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
/* <nowiki> */
+
body.page-Main_Page h1.firstHeading { display: none; }
/* {{user language}} */
+
body.page-Retinal_Neuron_Classification h1.firstHeading { display: none; }
@import "//meta.wikimedia.org/w/index.php?title=MediaWiki:User_language.css&action=raw&ctype=text/css&r=2";
+
/* Reset italic styling set by user agent */
 
+
cite, dfn {
/* {{mbox}}, {{ambox}}, {{ombox}}, {{fmbox}}, etc... */
+
    font-style: inherit;
@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 */
+
/* Straight quote marks for <q> */
body.page-Main_Page.action-view #siteSub,
+
q {
body.page-Main_Page.action-view #contentSub,
+
     quotes: '"' '"' "'" "'";
body.page-Main_Page.action-view .firstHeading,
+
body.page-Main_Page.action-view #jump-to-nav {
+
     display: none !important;
+
 
}
 
}
  
 
+
/* Avoid collision of blockquote with floating elements by swapping margin and padding */
/**
+
blockquote {
** User language styles ({{#babel:}})
+
    overflow: hidden;
**/
+
    margin: 1em 0;
table.mw-babel-wrapper {
+
    padding: 0 40px;
  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,
+
/* Prevent the 'double bold' bug in Firefox when using DirectWrite */
div.mw-babel-box table td {
+
strong.selflink {
  height:auto;
+
    font-weight: 700;
  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 */
+
/* Consistent size for <sub> and <sup> */
.babel-plain table.mw-babel-wrapper {
+
.mw-body sub,
  float:none;
+
.mw-body sup,
  clear:none;
+
span.reference /* for Parsoid */ {
  margin:0;
+
    font-size: 80%;
 
}
 
}
  
.babel-plain div.mw-babel-box {
+
/* Main page fixes */
  margin:0;
+
#interwiki-completelist {
 +
    font-weight: bold;
 
}
 
}
 
+
body.page-Main_Page #ca-delete {
.babel-plain .mw-babel-header,
+
    display: none !important;
.babel-plain .mw-babel-footer {
+
  display:none;
+
 
}
 
}
 
+
body.page-Main_Page #mp-topbanner {
 
+
    clear: both;
/**
+
** Printing
+
**/
+
/* hide unneeded content when printing */
+
@media print {
+
#privacy, #about, #disclaimer {
+
display: none;
+
}
+
 
}
 
}
  
/**
+
/* Unhorrify 'Changed since last visit' colors */
** Hide selected content (should rarely be used, backwards compatibility)
+
.updatedmarker {
**/
+
    background-color: transparent;
.hiddenStructure, .if {
+
    color: #006400;
display: none;
+
 
}
 
}
  
/**
+
/* Edit window toolbar */
** Infoboxes
+
#toolbar {
**/
+
    height: 22px;
.infobox {
+
    margin-bottom: 6px;
float: right;
+
clear: right;
+
margin-bottom: 0.5em;
+
margin-left: 1em;
+
padding: 0.2em;
+
border: 1px solid #AAA;
+
background: #F9F9F9;
+
color: black;
+
 
}
 
}
  
.infobox td,
+
/* Hide charinsert base for those not using the gadget */
.infobox th {
+
#editpage-specialchars {
vertical-align: top;
+
    display: none;
 
}
 
}
  
.infobox caption {
+
/* Highlight linked elements (such as clicked references) in blue */
margin-left: inherit;
+
body.action-info :target,
  font-size: larger;
+
.citation:target {
 +
    background-color: #DEF/* Fallback */
 +
    background-color: rgba(0, 127, 255, 0.133);
 
}
 
}
  
.infobox.bordered {
+
/* Styling for citations. Breaks long urls, etc., rather than overflowing box */
border-collapse: collapse;
+
.citation {
 +
    word-wrap: break-word;
 
}
 
}
  
.infobox.bordered td,
+
/* For linked citation numbers and document IDs, where the number need not be shown
.infobox.bordered th {
+
  on a screen or a handheld, but should be included in the printed version */
border: 1px solid #AAA;
+
@media screen, handheld {
 +
    .citation .printonly {
 +
        display: none;
 +
    }
 
}
 
}
  
.infobox.bordered .borderless td,
+
/* Make the list of references smaller */
.infobox.bordered .borderless th {
+
ol.references,
border: 0;
+
div.reflist,
 +
div.refbegin {
 +
    font-size: 90%;            /* Default font-size */
 +
    margin-bottom: 0.5em;
 
}
 
}
 
+
div.refbegin-100 {
/**
+
    font-size: 100%;           /* Option for normal fontsize in {{refbegin}} */
** Sister project templates
+
**/
+
.infobox.sisterproject {
+
width: 20em;
+
font-size: 90%;
+
 
}
 
}
 
+
div.reflist ol.references {
.sister-project {
+
    font-size: 100%;           /* Reset font-size when nested in div.reflist */
clear: right;
+
    list-style-type: inherit; /* Enable custom list style types */
float: right;
+
width: 250px;
+
margin: 0 0 1em 3em;
+
padding: 4px;
+
border: 1px solid #AAA;
+
background: #F9F9F9;
+
font-size: 0.8em;
+
text-align: left;
+
 
}
 
}
  
/**
+
/* Ensure refs in table headers and the like aren't bold or italic */
** {{other languages}}
+
sup.reference {
**/
+
    font-weight: normal;
#otherlangs {
+
    font-style: normal;
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 */
+
/* Allow hidden ref errors to be shown by user CSS */
.logtable pre {
+
span.brokenref {
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 {
+