MediaWiki:Common.css
From BuyFag Guide
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
/* CSS placed here will be applied to all skins */
/*
* You do not need to copy `.background-image` into your code.
* It is provided by mediawiki core (in mediawiki.less). It is
* here as an example of guard syntax.
*/
.background-image( @url ) when ( embeddable( @url ) ) {
background-image: embed( @url );
background-image: url( @url )!ie;
}
.background-image( @url ) when not ( embeddable( @url ) ) {
background-image: url( @url );
}
.mw-example {
.background-image( images/example.png );
padding: 0.2em 0.5em;
border: 1px solid #aaa;
font-size: 1em;
.mw-example-thing {
display: inline-block;
/* @noflip */
float: left;
border: 1px solid #ddd;
border-radius: 2px;
padding: 1px 4px;
}
}
