1 @import "mediawiki.mixins";
2 @import "mediawiki.ui/variables";
5 .mixin-mw-ui-icon-bgimage( @iconSvg, @iconPng ) {
8 .background-image-svg( @iconSvg, @iconPng );
15 // To use icons you must be using a browser that supports pseudo elements.
16 // This includes support for IE 8.
17 // http://caniuse.com/#feat=css-gencontent
19 // For elements that are intended to have both an icon and text, browsers that
20 // do not support pseudo-selectors will degrade to text-only.
22 // However, icon-only elements do not yet degrade to text-only elements in these
29 min-height: @iconSize;
35 // <div class="mw-ui-icon mw-ui-icon-element mw-ui-icon-ok">OK</div><br/>
36 // <div class="mw-ui-icon mw-ui-icon-element mw-ui-icon-ok mw-ui-button mw-ui-progressive">OK</div><br/>
37 // <button class="mw-ui-icon mw-ui-icon-ok mw-ui-icon-element mw-ui-button mw-ui-quiet" title="">Close</button>
40 &.mw-ui-icon-element {
41 @width: @iconSize + ( 2 * @iconGutterWidth );
53 margin: 0 @iconGutterWidth;
57 &.mw-ui-icon-before:before,
58 &.mw-ui-icon-element:before {
59 background-position: 50% 50%;
60 background-repeat: no-repeat;
61 background-size: 100% auto;
64 min-height: @iconSize;
71 // <div class="mw-ui-icon mw-ui-icon-before mw-ui-icon-ok">OK</div>
72 // <div class="mw-ui-icon mw-ui-icon-before mw-ui-icon-ok mw-ui-progressive mw-ui-button">OK</div>
79 margin-right: @iconGutterWidth;