From acaeff017171fd06bf8700b849a7fff917c6d260 Mon Sep 17 00:00:00 2001 From: silentcloud Date: Thu, 25 May 2017 11:07:29 +0800 Subject: [PATCH] add theme var: @toast-fill for gitlab issue --- components/activity-indicator/style/index.less | 2 +- components/style/themes/default.less | 1 + components/toast/style/index.less | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/activity-indicator/style/index.less b/components/activity-indicator/style/index.less index f699139698..712eb7dbb2 100644 --- a/components/activity-indicator/style/index.less +++ b/components/activity-indicator/style/index.less @@ -59,7 +59,7 @@ border-radius: @radius-lg; background-clip: padding-box; color: @color-text-base-inverse; - background-color: @fill-overlay-inverse; + background-color: @toast-fill; font-size: @font-size-subhead; line-height: 40px; } diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 4f3fe87738..cab3bb338a 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -24,6 +24,7 @@ @fill-mask: rgba(0, 0, 0, 0.4); // 遮罩背景 @fill-overlay-inverse: rgba(58, 58, 58, 0.9);// 浮层背景 - 反色,用于 toast @color-icon-base: #ccc; // 许多小图标的背景,比如一些小圆点,加减号 +@toast-fill: @fill-overlay-inverse; // 透明度 @opacity-disabled: 0.3; // switch checkbox radio 等组件禁用的透明度 diff --git a/components/toast/style/index.less b/components/toast/style/index.less index f8a520fe9f..1a5425e85f 100644 --- a/components/toast/style/index.less +++ b/components/toast/style/index.less @@ -34,7 +34,7 @@ min-width: 1.2rem; border-radius: @radius-sm; color: @color-text-base-inverse; - background-color: @fill-overlay-inverse; + background-color: @toast-fill; line-height: @line-height-paragraph; padding: @v-spacing-md @h-spacing-lg;