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><br/>
40 // <div class="mw-ui-icon mw-ui-icon-element mw-ui-icon-ok mw-ui-button mw-ui-progressive">OK</div><br/>
41 // <button class="mw-ui-icon mw-ui-icon-ok mw-ui-icon-element mw-ui-button mw-ui-quiet" title="">Close</button>
44 &.mw-ui-icon-element {
45 @width: @iconSize + ( 2 * @gutterWidth );
56 margin: 0 @gutterWidth;
60 &.mw-ui-icon-after:after,
61 &.mw-ui-icon-before:before,
62 &.mw-ui-icon-element:before {
63 background-position: 50% 50%;
66 background-repeat: no-repeat;
67 background-size: 100% auto;
68 min-height: @iconSize;
76 // <div class="mw-ui-icon mw-ui-icon-before mw-ui-icon-ok">OK</div>
77 // <div class="mw-ui-icon mw-ui-icon-before mw-ui-icon-ok mw-ui-progressive mw-ui-button">OK</div>
84 margin-right: @gutterWidth;
88 // Icons with text before
91 // <div class="mw-ui-icon mw-ui-icon-after mw-ui-icon-ok mw-ui-progressive mw-ui-button">OK</div>
99 margin-left: @gutterWidth;
106 .mixin-mw-ui-icon-bgimage('images/ok.svg', 'images/ok.png');