From: jdlrobson Date: Wed, 11 Apr 2018 20:47:11 +0000 (-0700) Subject: Ensure that span.mw-ui-icon is inline-block X-Git-Tag: 1.31.0-rc.0~116^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=70b76e37dd659d26fa7e08a234e5745fedfcad5f;p=lhc%2Fweb%2Fwiklou.git Ensure that span.mw-ui-icon is inline-block In the Minerva skin there are several icons that are spans. This seems a sensible default and I'd rather keep this rule with the other definitions rather than inside Minerva Change-Id: I3d1ed6e4a165f48244e760752342c712047a07d8 --- diff --git a/resources/src/mediawiki.ui/components/icons.less b/resources/src/mediawiki.ui/components/icons.less index d185b24ab2..461de2f0ff 100644 --- a/resources/src/mediawiki.ui/components/icons.less +++ b/resources/src/mediawiki.ui/components/icons.less @@ -30,6 +30,11 @@ min-height: @iconSize; min-width: @iconSize; + // If an inline element has been marked as a mw-ui-icon element it must be inline-block + span& { + display: inline-block; + } + // Standalone icons // // Markup: