1 @import "mediawiki.mixins";
8 .mixin-mw-ui-icon-bgimage(@iconSvg, @iconPng) {
10 .background-image-svg(@iconSvg, @iconPng);
16 // To use icons you must be using a browser that supports pseudo elements.
17 // This includes support for IE8.
18 // http://caniuse.com/#feat=css-gencontent
19 // Browsers that do not support either of these selectors will degrade to text only.
25 min-height: @iconSize;
31 // <div class="mw-ui-icon mw-ui-icon-element mw-ui-icon-ok">OK</div>
32 // <div class="mw-ui-icon mw-ui-icon-element mw-ui-icon-ok mw-ui-button mw-ui-progressive">OK</div>
35 &.mw-ui-icon-element {
36 @width: @iconSize + ( 2 * @gutterWidth );
47 margin: 0 @gutterWidth;
52 background-position: 50% 50%;
55 background-repeat: no-repeat;
56 background-size: 100% auto;
58 min-height: @iconSize;
66 // <div class="mw-ui-icon mw-ui-icon-before mw-ui-icon-ok">OK</div>
67 // <div class="mw-ui-icon mw-ui-icon-before mw-ui-icon-ok mw-ui-progressive mw-ui-button">OK</div>
73 margin-right: @gutterWidth;
80 .mixin-mw-ui-icon-bgimage('images/ok.svg', 'images/ok.png');