mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
Set additional min-width on icons
Prevents icons from being scaled in flexbox containers
This commit is contained in:
parent
51882c4984
commit
10ca6d1507
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user