-// Common LESS mixin library for MediaWiki
+// Common Less mixin library for MediaWiki
//
// By default the folder containing this file is included in $wgResourceLoaderLESSImportPaths,
// which makes this file importable by all less files via '@import "mediawiki.mixins";'.
background-image: e('/* @embed */') url(@url);
}
+// Deprecated in MW 1.27
.background-size(@width, @height) {
- // Vendor prefix for certain older opera browsers e.g. nintendo ds
- -o-background-size: @width @height;
// Vendor prefix is added to support Android 2
-webkit-background-size: @width @height;
background-size: @width @height;
}
-
.vertical-gradient(@startColor: gray, @endColor: white, @startPos: 0, @endPos: 100%) {
background-color: @endColor;
background-image: -moz-linear-gradient( top, @startColor @startPos, @endColor @endPos ); // Firefox 3.6+
// is not worth the harm done to modern ones.
.background-image-svg(@svg, @fallback) {
background-image: url(@fallback);
- background-image: -webkit-linear-gradient(transparent, transparent), e('/* @embed */') url(@svg);
background-image: linear-gradient(transparent, transparent), e('/* @embed */') url(@svg);
// Do not serve SVG to Opera 12, bad rendering with border-radius or background-size (T87504)
background-image: -o-linear-gradient(transparent, transparent), url(@fallback);