From 746990b84d10ed5d972fa6d430a41cacebf77223 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 1 Aug 2017 22:18:57 +0800 Subject: [PATCH] tweak alert style, make it adaptive --- components/alert/style/index.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/alert/style/index.less b/components/alert/style/index.less index a977ea54f9..ababa3b9d7 100644 --- a/components/alert/style/index.less +++ b/components/alert/style/index.less @@ -11,7 +11,7 @@ border-radius: @border-radius-base; color: @alert-text-color; font-size: @font-size-base; - line-height: @font-size-base + 4px; + line-height: @line-height-base; &&-no-icon { padding: 8px 48px 8px 16px; @@ -19,7 +19,7 @@ &-icon { font-size: @font-size-lg; - top: 9.5px; + top: 8px + @font-size-base * @line-height-base / 2 - @font-size-lg / 2; left: 16px; position: absolute; }