Difference between revisions of "MediaWiki:Common.css"

From BuyFag Guide
Jump to: navigation, search
(Created page with "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)....")
 
(No difference)

Latest revision as of 00:02, 21 July 2016

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