From 10ca6d150725bf643fd4c576dc44daea410ad609 Mon Sep 17 00:00:00 2001 From: ines Date: Fri, 26 May 2017 12:39:59 +0200 Subject: [PATCH] Set additional min-width on icons Prevents icons from being scaled in flexbox containers --- website/_includes/_mixins-base.jade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/_includes/_mixins-base.jade b/website/_includes/_mixins-base.jade index c42994e8f..c6132df74 100644 --- a/website/_includes/_mixins-base.jade +++ b/website/_includes/_mixins-base.jade @@ -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