Difference between revisions of "MediaWiki:Common.css"

From The iPhone Wiki
Jump to: navigation, search
m (Relocated from MediaWiki:Ios7.css.)
m (changes from iAdam1n)
Line 16: Line 16:
   
   
/* {{keys}} */
+
/* [[Template:keys]] */
 
span.keypage-filename {
 
span.keypage-filename {
 
color: #333;
 
color: #333;
Line 25: Line 25:
   
   
/* {{Archive Page}} */
+
/* [[Template:Archive Page]] */
 
.archive-page-notice {
 
.archive-page-notice {
 
background-color: #CC9 !important;
 
background-color: #CC9 !important;
Line 31: Line 31:
   
   
/* {{internal software}} */
+
/* [[Template:internal software]] */
 
.internal-software-notice {
 
.internal-software-notice {
 
background-color: #F44;
 
background-color: #F44;
Line 90: Line 90:
   
   
/* {{n/a}}, {{no}}, {{partial}}, {{yes}} */
+
/* [[Template:n/a]], [[Template:no]], [[Template:partial]], [[Template:yes]] */
 
.table-no,
 
.table-no,
 
.table-partial,
 
.table-partial,
Line 115: Line 115:
   
   
/* {{hatnote}} */
+
/* [[Template:hatnote]] */
 
.rellink,
 
.rellink,
 
.hatnote {
 
.hatnote {
Line 146: Line 146:
   
   
/* {{Horizontal TOC}} */
+
/* [[Template:Horizontal TOC]] */
 
.hlist dl,
 
.hlist dl,
 
.hlist ol,
 
.hlist ol,
Line 227: Line 227:
 
}
 
}
   
/*Mobile CSS. Created by iAdam1n*/
 
@media only screen and (max-device-width: 600px) {
 
/*Making some text bigger in order to make it easier to read.*/
 
div#p-sidebar {
 
font-size: 1.3em;
 
}
 
 
div#p-sidebar h3 {
 
font-size: 0.72em;
 
}
 
   
  +
.rcoptions legend {
div#p-personal {
 
  +
position: relative;
font-size: 1.375em;
 
  +
font-size: 1.6em;
}
 
  +
}
 
  +
.mw-recentchanges-table label {
div#p-views ul {
 
font-size: 1.2em;
+
font-size: 1.6em;
}
+
}
  +
#mw-content-text > fieldset > form > table > tbody > tr > td.mw-input > input[type="submit"]:nth-child(6) {
 
  +
font-size: 1.5em;
div#p-views #ca-move {
 
  +
}
font-size: 1.125em;
 
  +
}
 
  +
/* Mobile CSS. Created by iAdam1n */
 
  +
@media only screen and (max-device-width: 600px) {
input#searchButton.searchButton {
 
  +
/*Making some text bigger in order to make it easier to read.*/
font-size: 1.125em;
 
  +
div#p-sidebar {
}
 
  +
font-size: 1.3em;
 
  +
}
div.vectorTabs ul {
 
  +
div#p-sidebar h3 {
font-size: 1.2em;
 
  +
font-size: 0.72em;
}
 
  +
}
 
  +
div#p-personal {
div#mw-normal-catlinks.mw-normal-catlinks {
 
  +
}
}
 
  +
div#p-views ul {
 
  +
font-size: 1.2em;
#footer-info {
 
  +
}
font-size: 1.125em;
 
  +
div#p-views #ca-move {
}
 
  +
font-size: 1.125em;
 
  +
}
#footer-places {
 
  +
input#searchButton.searchButton {
font-size: 1.375em;
 
  +
font-size: 1.125em;
}
 
  +
}
 
  +
div.vectorTabs ul {
.search-types {
 
  +
}
}
 
  +
div#mw-normal-catlinks.mw-normal-catlinks {
 
  +
font-size: 1.375em;
#ca-nstab-special.selected {
 
  +
}
font-size: 1.25em;
 
  +
#footer-info {
padding-right: 1.25em;
 
  +
font-size: 1.125em;
}
 
font-size: 1.375em;
+
font-size: 1.375em;
font-size: 1em;
+
font-size: 1.2em;
  +
}
  +
#footer-places {
  +
font-size: 1.375em;
  +
}
  +
.search-types {
  +
font-size: 1em;
  +
}
  +
#ca-nstab-special.selected {
  +
font-size: 1.25em;
  +
padding-right: 1.25em;
  +
}
 
}
 
}

Revision as of 21:02, 1 March 2015

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


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


/* [[Template:Archive Page]] */
.archive-page-notice {
    background-color: #CC9 !important;
}


/* [[Template:internal software]] */
.internal-software-notice {
    background-color: #F44;
    border: 3px solid #933;
    color: white;
    margin-bottom: 0.5em;
    text-align: center;
    text-shadow: none;
    width: 100%;
    padding: 8px;
}
.internal-software-notice a {
    color: white;
    text-decoration: underline;
}




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


/* [[Template:n/a]], [[Template:no]], [[Template:partial]], [[Template: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;
}


/* [[Template:Horizontal TOC]] */
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
    display: inline;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ": ";
}
.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
/* For IE8 */
.hlist dd.hlist-last-child:after,
.hlist dt.hlist-last-child:after,
.hlist li.hlist-last-child:after {
    content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
    content: " (";
    font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
    content: ") ";
    font-weight: normal;
}
/* For IE8 */
.hlist dd dd.hlist-last-child:after, .hlist dd dt.hlist-last-child:after, .hlist dd li.hlist-last-child:after,
.hlist dt dd.hlist-last-child:after, .hlist dt dt.hlist-last-child:after, .hlist dt li.hlist-last-child:after,
.hlist li dd.hlist-last-child:after, .hlist li dt.hlist-last-child:after, .hlist li li.hlist-last-child:after {
    content: ") ";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
    counter-reset: listitem;
}
.hlist ol > li {
    counter-increment: listitem;
}
.hlist ol > li:before {
    content: " " counter(listitem) " ";
    white-space: nowrap;
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) " ";
}


.rcoptions legend {
    position: relative;
    font-size: 1.6em;
}
.mw-recentchanges-table label {
    font-size: 1.6em;
}
#mw-content-text > fieldset > form > table > tbody > tr > td.mw-input > input[type="submit"]:nth-child(6) {
    font-size: 1.5em;
}

/* Mobile CSS. Created by iAdam1n */
@media only screen and (max-device-width: 600px) {
    /*Making some text bigger in order to make it easier to read.*/
    div#p-sidebar {
         font-size: 1.3em;
    }
    div#p-sidebar h3 {
         font-size: 0.72em;
    }
    div#p-personal {
        font-size: 1.375em;
    }
    div#p-views ul {
        font-size: 1.2em;
    }
    div#p-views #ca-move {
        font-size: 1.125em;
    }
    input#searchButton.searchButton {
        font-size: 1.125em;
    }
    div.vectorTabs ul {
        font-size: 1.2em;
    }
    div#mw-normal-catlinks.mw-normal-catlinks {
        font-size: 1.375em;
    }
    #footer-info {
        font-size: 1.125em;
    }
    #footer-places {
        font-size: 1.375em;
    }
    .search-types {
        font-size: 1em;
    }
    #ca-nstab-special.selected {
        font-size: 1.25em;
        padding-right: 1.25em;
    }
}