Add mw-ui-icon
authorSam Smith <git@samsmith.io>
Wed, 16 Jul 2014 16:16:29 +0000 (09:16 -0700)
committerSam Smith <git@samsmith.io>
Tue, 23 Sep 2014 12:45:20 +0000 (13:45 +0100)
commit7e931c1a456efadd7dd65d435456e18cee666bd2
tree4d45cd28e08873785e2a36f19d22263d7e988958
parent368a948bb6aeee7ce8e0f5da06ab81cef7029574
Add mw-ui-icon

Compatible with IE8+ (because of the use of pseudo-elements).
This includes support for icons on the left of the element and
icons which hide the text of the containing element.

I attempted to make an mw-ui-icon-element which didn't use pseudo
elements but the problem with this is how it plays with things such
as mw-ui-button and the gutter. I'd suggest exploring this later as this gets greater
adoption.

In addition to this I have dropped mw-ui-icon-after since I don't see any
clear use cases for this yet and I think it is overengineering the solution.

Bug: 55535
Change-Id: I68a1b207d8a4af57879361921a5f8c3aeda3fd9a
docs/kss/Makefile
resources/Resources.php
resources/src/mediawiki.ui/components/icons.less [new file with mode: 0644]
resources/src/mediawiki.ui/components/images/ok.png [new file with mode: 0644]
resources/src/mediawiki.ui/components/images/ok.svg [new file with mode: 0644]