1 @import "mediawiki.mixins";
8 .mixin-mw-ui-icon-bgimage(@iconSvg, @iconPng) {
12 .background-image-svg(@iconSvg, @iconPng);
19 // To use icons you must be using a browser that supports pseudo elements.
20 // This includes support for IE8.
21 // http://caniuse.com/#feat=css-gencontent
23 // For elements that are intended to have both an icon and text, browsers that
24 // do not support pseudo-selectors will degrade to text-only.
26 // However, icon-only elements do not yet degrade to text-only elements in these
33 min-height: @iconSize;
39 // <div class="mw-ui-icon mw-ui-icon-element mw-ui-icon-ok">OK</div>
40 // <div class="mw-ui-icon mw-ui-icon-element mw-ui-icon-ok mw-ui-button mw-ui-progressive">OK</div>
43 &.mw-ui-icon-element {
44 @width: @iconSize + ( 2 * @gutterWidth );
55 margin: 0 @gutterWidth;
59 &.mw-ui-icon-after:after,
60 &.mw-ui-icon-before:before,
61 &.mw-ui-icon-element:before {
62 background-position: 50% 50%;
65 background-repeat: no-repeat;
66 background-size: 100% auto;
67 min-height: @iconSize;
75 // <div class="mw-ui-icon mw-ui-icon-before mw-ui-icon-ok">OK</div>
76 // <div class="mw-ui-icon mw-ui-icon-before mw-ui-icon-ok mw-ui-progressive mw-ui-button">OK</div>
83 margin-right: @gutterWidth;
87 // Icons with text before
90 // <div class="mw-ui-icon mw-ui-icon-after mw-ui-icon-ok mw-ui-progressive mw-ui-button">OK</div>
98 margin-left: @gutterWidth;
105 .mixin-mw-ui-icon-bgimage('images/ok.svg', 'images/ok.png');