X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.ui%2Fcomponents%2Ficons.less;h=a7ce2e760bd47b10841e15f4741663af34905866;hp=f169d1b603ef6496620611447c31ad19a6daab49;hb=5fa4cdf860c79b32ab6ef034c6d9420c2727f695;hpb=cbac334f116c6546c422a67ce99d2a56eb792d30 diff --git a/resources/src/mediawiki.ui/components/icons.less b/resources/src/mediawiki.ui/components/icons.less index f169d1b603..a7ce2e760b 100644 --- a/resources/src/mediawiki.ui/components/icons.less +++ b/resources/src/mediawiki.ui/components/icons.less @@ -39,7 +39,9 @@ // // Styleguide 6.1.1. &.mw-ui-icon-element { - @width: @iconSize + ( 2 * @iconGutterWidth ); + @marginIcon: 2 * @iconGutterWidth; + @width: @iconSize + @marginIcon; + @sizeIconLarge: ( @iconSize * 1.75) + @marginIcon; text-indent: -999px; overflow: hidden; @@ -53,6 +55,18 @@ position: absolute; margin: 0 @iconGutterWidth; } + + &.mw-ui-icon-large { + width: @sizeIconLarge; + min-width: @sizeIconLarge; + max-width: @sizeIconLarge; + line-height: @sizeIconLarge; + min-height: @sizeIconLarge; + + &:before { + min-height: @sizeIconLarge; + } + } } &.mw-ui-icon-before:before,