Skip to content

Commit c36fd8e

Browse files
committed
feat(message): 增强 message 提示的配色对比
fix #243
1 parent a494560 commit c36fd8e

File tree

6 files changed

+33
-0
lines changed

6 files changed

+33
-0
lines changed

src/assets/style/theme/d2/setting.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ $theme-bg-color: #ebf1f6;
55
// 主题背景图片遮罩
66
$theme-bg-mask: rgba(#000, 0);
77

8+
// 消息提示
9+
$theme-message-info-background-color: $color-bg;
10+
$theme-message-info-text-color: $color-text-normal;
11+
$theme-message-info-border-color: $color-border-1;
12+
813
// container组件
914
$theme-container-background-color: rgba(#FFF, 1);
1015
$theme-container-header-footer-background-color: #FFF;

src/assets/style/theme/line/setting.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ $theme-bg-color: #f8f8f9;
55
// 主题背景图片遮罩
66
$theme-bg-mask: rgba(#000, 0);
77

8+
// 消息提示
9+
$theme-message-info-background-color: $color-bg;
10+
$theme-message-info-text-color: $color-text-normal;
11+
$theme-message-info-border-color: $color-border-1;
12+
813
// container组件
914
$theme-container-background-color: rgba(#FFF, .8);
1015
$theme-container-header-footer-background-color: #FFF;

src/assets/style/theme/star/setting.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ $theme-bg-color: #EFF4F8;
55
// 主题背景图片遮罩
66
$theme-bg-mask: rgba(#000, .3);
77

8+
// 消息提示
9+
$theme-message-info-background-color: $color-bg;
10+
$theme-message-info-text-color: $color-text-normal;
11+
$theme-message-info-border-color: $color-border-1;
12+
813
// container组件
914
$theme-container-background-color: rgba(#FFF, .9);
1015
$theme-container-header-footer-background-color: #FFF;

src/assets/style/theme/theme.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
// 每个主题特有的设置
22
.theme-#{$theme-name} {
33

4+
.el-message {
5+
&.el-message--info {
6+
background-color: $theme-message-info-background-color;
7+
color: $theme-message-info-text-color;
8+
border-color: $theme-message-info-border-color;
9+
}
10+
}
11+
412
.el-card {
513
&.d2-card {
614
border: $theme-container-border-outer;

src/assets/style/theme/tomorrow-night-blue/setting.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ $theme-bg-color: #002253;
55
// 主题背景图片遮罩
66
$theme-bg-mask: rgba(#000, 0);
77

8+
// 消息提示
9+
$theme-message-info-background-color: $color-bg;
10+
$theme-message-info-text-color: $color-text-normal;
11+
$theme-message-info-border-color: $color-border-1;
12+
813
// container组件
914
$theme-container-background-color: rgba(#FFF, 1);
1015
$theme-container-header-footer-background-color: #FFF;

src/assets/style/theme/violet/setting.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ $theme-bg-color: #000;
55
// 主题背景图片遮罩
66
$theme-bg-mask: rgba(#000, 0);
77

8+
// 消息提示
9+
$theme-message-info-background-color: $color-bg;
10+
$theme-message-info-text-color: $color-text-normal;
11+
$theme-message-info-border-color: $color-border-1;
12+
813
// container组件
914
$theme-container-background-color: #FFF;
1015
$theme-container-header-footer-background-color: #FFF;

0 commit comments

Comments
 (0)