From 5bb8f585dee4954b16ab0230f475f9085b4e6de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Thu, 5 Mar 2020 20:39:03 +0800 Subject: [PATCH] add outline-fade less variable (#20227) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 偏右 --- components/input/style/mixin.less | 2 +- components/style/themes/default.less | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/input/style/mixin.less b/components/input/style/mixin.less index da0969150c..110e509f23 100644 --- a/components/input/style/mixin.less +++ b/components/input/style/mixin.less @@ -26,7 +26,7 @@ } border-right-width: @border-width-base !important; outline: 0; - box-shadow: @input-outline-offset @outline-blur-size @outline-width fade(@color, 20%); + box-shadow: @input-outline-offset @outline-blur-size @outline-width fade(@color, @outline-fade); .@{input-rtl-cls} & { border-right-width: 0; diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 973278e0b0..e5013ea725 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -126,6 +126,7 @@ @outline-blur-size: 0; @outline-width: 2px; @outline-color: @primary-color; +@outline-fade: 20%; @background-color-light: hsv(0, 0, 98%); // background of header and selected item @background-color-base: hsv(0, 0, 96%); // Default grey background color