Difference between revisions of "MediaWiki:Common.css"

From WhyAskWhy.org Wiki
Jump to: navigation, search
m (Added class for error callouts)
m (Making errors stand out using a negative color scheme)
Line 27: Line 27:
  
 
.callout.error {
 
.callout.error {
     background: #F0F0E7  url(/skins/common/images/critical-32.png) no-repeat 0.5em 1em;
+
     background: black url(/skins/common/images/critical-32.png) no-repeat 0.5em 1em;
 +
    color: white;
 
}
 
}
  

Revision as of 00:44, 15 July 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;
}