@import "mediawiki.ui/variables";
// Mixins
-.mixin-mw-ui-icon-bgimage(@iconSvg, @iconPng) {
+.mixin-mw-ui-icon-bgimage( @iconSvg, @iconPng ) {
&.mw-ui-icon {
&:before {
- .background-image-svg(@iconSvg, @iconPng);
+ .background-image-svg( @iconSvg, @iconPng );
}
}
}
// Icons
//
// To use icons you must be using a browser that supports pseudo elements.
-// This includes support for IE8.
+// This includes support for IE 8.
// http://caniuse.com/#feat=css-gencontent
//
// For elements that are intended to have both an icon and text, browsers that
width: @width;
min-width: @width;
max-width: @width;
+
&:before {
left: 0;
right: 0;
&.mw-ui-icon-before:before,
&.mw-ui-icon-element:before {
background-position: 50% 50%;
- float: left;
- display: block;
background-repeat: no-repeat;
background-size: 100% auto;
+ float: left;
+ display: block;
min-height: @iconSize;
content: '';
}