Difference between revisions of "MediaWiki:Common.css"

From The iPhone Wiki
Jump to: navigation, search
m (Made the background for {yes} cells brighter— hopefully this is a little more colorblind-friendly.)
Line 1: Line 1:
/* [[Main Page]] specifics */
+
/* [[Main Page]] */
 
body.page-Main_Page h1.firstHeading {
 
body.page-Main_Page h1.firstHeading {
 
display: none;
 
display: none;
 
}
 
}
 
body.page-Main_Page div.mw-headline {
 
body.page-Main_Page div.mw-headline {
padding: 0.2em 0.4em;
 
margin: 10px 0 10px 0;
 
 
border-bottom: 4px solid #A3BFB1;
 
border-bottom: 4px solid #A3BFB1;
 
border-bottom: 4px solid rgba(163, 191, 177, 0.5);
 
border-bottom: 4px solid rgba(163, 191, 177, 0.5);
Line 13: Line 11:
 
font-size: 120%;
 
font-size: 120%;
 
font-weight: bold;
 
font-weight: bold;
  +
margin: 10px 0 10px 0;
  +
padding: 0.2em 0.4em;
 
}
 
}
   
   
  +
/* {{keys}} */
 
/* [[Template:keys]] page file names */
 
 
span.keypage-filename {
 
span.keypage-filename {
color: #000;
+
color: #333;
 
float: right;
 
float: right;
  +
font-size: 1rem; /* [http://snook.ca/archives/html_and_css/font-size-with-rem] */
 
text-transform: none;
 
text-transform: none;
font-size: 1rem;
 
 
}
 
}
   
   
  +
  +
  +
/* ============================================================================
  +
* Borrowed from [[wikipedia:MediaWiki:Common.css]] */
  +
* ============================================================================
  +
*/
  +
  +
  +
/* Infobox */
 
.infobox {
 
.infobox {
 
border: 1px solid #aaa;
 
border: 1px solid #aaa;
 
background-color: #f9f9f9;
 
background-color: #f9f9f9;
  +
clear: right;
 
color: black;
 
color: black;
margin: 0.5em 0 0.5em 1em;
 
padding: 0.2em;
 
 
float: right;
 
float: right;
clear: right;
 
text-align: left;
 
 
font-size: 88%;
 
font-size: 88%;
 
line-height: 1.5em;
 
line-height: 1.5em;
  +
margin: 0.5em 0 0.5em 1em;
  +
padding: 0.2em;
  +
text-align: left;
 
}
 
}
 
.infobox caption {
 
.infobox caption {
Line 46: Line 54:
 
vertical-align: top;
 
vertical-align: top;
 
}
 
}
  +
   
 
table.wikitable {
 
table.wikitable {
font-size:smaller;
+
font-size:smaller;
 
}
 
}
 
table#archive-page-notice {
 
table#archive-page-notice {
font-size:small;
+
font-size:small;
 
}
 
}
 
table.wikitable * {
 
table.wikitable * {
text-align:center;
+
text-align:center;
 
}
 
}
  +
  +
  +
/* {{n/a}}, {{no}}, {{partial}}, {{yes}} */
 
.table-no,
 
.table-no,
 
.table-partial,
 
.table-partial,
 
.table-yes {
 
.table-yes {
color:#000;
+
color:#000;
text-align:center;
+
text-align:center;
vertical-align:middle;
+
vertical-align:middle;
 
}
 
}
 
.table-no {
 
.table-no {
background-color:#FF9090;
+
background-color:#FF9090;
 
}
 
}
 
.table-partial {
 
.table-partial {
background-color:#FFA;
+
background-color:#FFA;
 
}
 
}
 
.table-yes {
 
.table-yes {
background-color:#AFA;
+
background-color:#AFA;
 
}
 
}
 
.table-na {
 
.table-na {
background-color:#ECECEC;
+
background-color:#ECECEC;
color:gray;
+
color:gray;
text-align:center;
+
text-align:center;
vertical-align:middle;
+
vertical-align:middle;
  +
}
  +
  +
  +
/* [[Template:Hatnote]] */
  +
.rellink,
  +
.hatnote {
  +
font-style: italic;
  +
}
  +
.rellink i,
  +
.hatnote i {
  +
font-style: normal;
  +
}
  +
div.rellink,
  +
div.hatnote {
  +
padding-left: 1.6em;
  +
margin-bottom: 0.5em;
 
}
 
}
   
/* Borrowed from Wikipedia's Common.css */
 
   
 
/* Allow limiting of which header levels are shown in a TOC;
 
/* Allow limiting of which header levels are shown in a TOC;
Line 92: Line 119:
 
.toclimit-6 .toclevel-5 ul,
 
.toclimit-6 .toclevel-5 ul,
 
.toclimit-7 .toclevel-6 ul {
 
.toclimit-7 .toclevel-6 ul {
display: none;
+
display: none;
 
}
 
}

Revision as of 21:00, 9 November 2014

/* [[Main Page]] */
body.page-Main_Page h1.firstHeading {
    display: none;
}
body.page-Main_Page div.mw-headline {
    border-bottom: 4px solid #A3BFB1;
    border-bottom: 4px solid rgba(163, 191, 177, 0.5);
    background-color: white;
    background-color: rgba(255, 255, 255, 0.4);
    color: black;
    font-size: 120%;
    font-weight: bold;
    margin: 10px 0 10px 0;
    padding: 0.2em 0.4em;
}


/* {{keys}} */
span.keypage-filename {
    color: #333;
    float: right;
    font-size: 1rem; /* [http://snook.ca/archives/html_and_css/font-size-with-rem] */
    text-transform: none;
}




/* ============================================================================
 * Borrowed from [[wikipedia:MediaWiki:Common.css]] */
 * ============================================================================
 */


/* Infobox */
.infobox {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    clear: right;
    color: black;
    float: right;
    font-size: 88%;
    line-height: 1.5em;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    text-align: left;
}
.infobox caption {
    font-size: 125%;
    font-weight: bold;
}
.infobox td,
.infobox th {
    vertical-align: top;
}


table.wikitable {
    font-size:smaller;
}
table#archive-page-notice {
    font-size:small;
}
table.wikitable * {
    text-align:center;
}


/* {{n/a}}, {{no}}, {{partial}}, {{yes}} */
.table-no,
.table-partial,
.table-yes {
    color:#000;
    text-align:center;
    vertical-align:middle;
}
.table-no {
    background-color:#FF9090;
}
.table-partial {
    background-color:#FFA;
}
.table-yes {
    background-color:#AFA;
}
.table-na {
    background-color:#ECECEC;
    color:gray;
    text-align:center;
    vertical-align:middle;
}


/* [[Template:Hatnote]] */
.rellink,
.hatnote {
    font-style: italic;
}
.rellink i,
.hatnote i {
    font-style: normal;
}
div.rellink,
div.hatnote {
    padding-left: 1.6em;
    margin-bottom: 0.5em;
}


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