Difference between revisions of "MediaWiki:Common.css"

From WhyAskWhy.org Wiki
Jump to: navigation, search
m (Testing some CSS rules found at http://wiki.nginx.org/skins/bluwiki_skin/main.css)
m (Rolling back changes.)
Line 37: Line 37:
 
.mw-geshi.mw-content-ltr {
 
.mw-geshi.mw-content-ltr {
 
     font-size: 1.2em;
 
     font-size: 1.2em;
}
 
 
/* Borrowing some rules from http://wiki.nginx.org/skins/bluwiki_skin/main.css */
 
 
#bodycontent .directive-ref-table {
 
    font-size: 95%;
 
    margin: 0em 1em 1em 1em;
 
    border-color: #ccc;
 
    border-width: 5px 0px;
 
}
 
 
#bodycontent .directive-ref-table td {
 
    padding: 0.5em 1em;
 
    border: none;
 
}
 
 
#bodycontent .directive-ref-table .drt-td2 {
 
    text-align: left;
 
    width: 500px;
 
}
 
 
#bodycontent .modules-index-table {
 
    font-size: 95%;
 
    margin: 1em;
 
    border-color: #ddd;
 
    border-width: 5px 0px;
 
}
 
 
#bodycontent .modules-index-table td {
 
    padding: 4px;
 
 
}
 
}

Revision as of 06:28, 2 August 2012

/* CSS placed here will be applied to all skins */

/* 
 * Using images included with MediaWiki installation, but
 * using some ideas gained from http://www.mediawiki.org/wiki/MediaWiki:Common.css

 * Selector chaining tip from http://stackoverflow.com/questions/558721/css-classes-subclasses
 * specifically, http://stackoverflow.com/a/558778
 */

.callout {
    padding: 1em 1em 1em 3em;
    min-height: 28px;
    display: inline-block;
    color: black;
    margin: 1em;
    font: normal bold larger sans-serif;
}

.callout.info {
    background: #F0F0E7  url(/skins/common/images/info-32.png) no-repeat 0.5em 1em;
}

.callout.warning {
    background: #F0CF69  url(/skins/common/images/warning-32.png) no-repeat 0.5em 1em;
}

.callout.error {
    background: black url(/skins/common/images/critical-32.png) no-repeat 0.5em 1em;
    color: white;
}

/* 
 * Trying to merge this rule with the existing one to prevent the font from being so small
 */

.mw-geshi.mw-content-ltr {
    font-size: 1.2em;
}