From 5150f1358ddd1346e80b1d3c02916ea1df30623f Mon Sep 17 00:00:00 2001 From: Volker E Date: Thu, 18 Aug 2016 15:44:33 -0700 Subject: [PATCH] Add `.mw-ui-icon-small` to icon classes Adding small icon class `.mw-ui-icon-small`. Also adapting documentation. Change-Id: Ia140779d488dddf9014087e8d48852c8c53977e3 --- resources/src/mediawiki.ui/components/icons.less | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/resources/src/mediawiki.ui/components/icons.less b/resources/src/mediawiki.ui/components/icons.less index b4edc50db7..0035601697 100644 --- a/resources/src/mediawiki.ui/components/icons.less +++ b/resources/src/mediawiki.ui/components/icons.less @@ -33,8 +33,8 @@ // Standalone icons // // Markup: - //
OK

- //
OK

+ //
OK

+ //
OK

// // // Styleguide 6.1.1. @@ -80,4 +80,14 @@ margin-right: @iconGutterWidth; } } -} + + // Icons small for elements like indicators + // + // Markup: + //
+ // + // Styleguide 6.1.3 + &.mw-ui-icon-small:before { + background-size: 66.67% auto; // 66.67% of 24px equals 16px + } +} \ No newline at end of file -- 2.20.1