From e46165f126f0e849a0a34f86114474d1059843d6 Mon Sep 17 00:00:00 2001 From: iapyang Date: Thu, 16 Aug 2018 20:06:16 +0800 Subject: [PATCH] BI-30180 --- src/css/base/single/tip/tip.css | 6 ++++-- src/less/base/single/tip/tip.bubble.less | 6 +++++- src/less/lib/colors.less | 2 ++ src/less/lib/constant.less | 1 + 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/css/base/single/tip/tip.css b/src/css/base/single/tip/tip.css index fea06311e..40158d5ef 100644 --- a/src/css/base/single/tip/tip.css +++ b/src/css/base/single/tip/tip.css @@ -4,10 +4,12 @@ border-radius: 2px; } .bi-bubble .bubble-error { - background-color: rgba(255, 73, 73, 0.1); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1aff4949,endColorstr=#1aff4949); + background: #ffecec; color: #ff4949; } +.bi-theme-dark .bi-bubble .bubble-error { + background: #3A2940; +} .bi-bubble .bubble-common { background: #eaf2fd; color: #3685f2; diff --git a/src/less/base/single/tip/tip.bubble.less b/src/less/base/single/tip/tip.bubble.less index af76bedc6..b47874ea0 100644 --- a/src/less/base/single/tip/tip.bubble.less +++ b/src/less/base/single/tip/tip.bubble.less @@ -6,10 +6,14 @@ } & .bubble-error{ - .background-color(@background-color-negative, 10%); + background: @color-bi-background-light-failure; color: @color-bi-text-failure; } + .bi-theme-dark & .bubble-error { + background: @color-bi-background-dark-failure; + } + & .bubble-common{ background: @color-bi-background-light-highlight; color: @color-bi-text-highlight; diff --git a/src/less/lib/colors.less b/src/less/lib/colors.less index d4ee6fb0d..8e94c9f23 100644 --- a/src/less/lib/colors.less +++ b/src/less/lib/colors.less @@ -62,6 +62,8 @@ @color-bi-background-failure: @background-color-negative; //失败背景色(浅) @color-bi-background-light-failure: @background-color-light-negative; +//失败背景色(深) +@color-bi-background-dark-failure: @background-color-dark-negative; //警示背景色 @color-bi-background-warning: @background-color-warning; //警示背景色(浅) diff --git a/src/less/lib/constant.less b/src/less/lib/constant.less index 2621ec744..732613ed0 100644 --- a/src/less/lib/constant.less +++ b/src/less/lib/constant.less @@ -66,6 +66,7 @@ @background-color-negative: #ff4949; @background-color-light-negative: #ffecec; +@background-color-dark-negative: #3A2940; @background-color-light-warning: #feeed7; @background-color-warning: #faaa39;