Set additional min-width on icons

Prevents icons from being scaled in flexbox containers
This commit is contained in:
ines 2017-05-26 12:39:59 +02:00
parent 51882c4984
commit 10ca6d1507
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ mixin svg(file, name, width, height)
size - [integer] icon width and height (default: 20)
mixin icon(name, size)
+svg("icons", name, size || 20).o-icon&attributes(attributes)
- var size = size || 20
+svg("icons", name, size).o-icon(style="min-width: #{size}px")&attributes(attributes)
//- Pro/Con/Neutral icon