Before pseudo elements are not always perfectly in line
authorRob Moen <rmoen@wikimedia.org>
Tue, 2 Dec 2014 22:29:20 +0000 (14:29 -0800)
committerMaxSem <maxsem.wiki@gmail.com>
Wed, 3 Dec 2014 18:40:20 +0000 (18:40 +0000)
This results in the psudo element's top inline with the element's
top

Change-Id: Iadd741f02155a9b5ddeb6cd8ff64fa13ae5506d7

resources/src/mediawiki.ui/components/icons.less

index 0912554..40d1723 100644 (file)
@@ -49,6 +49,7 @@
                min-width: @width;
                max-width: @width;
                &:before {
+                       top: 0;
                        left: 0;
                        right: 0;
                        position: absolute;