Skip to content

Commit

Permalink
feat(message): 增强 message 提示的配色对比
Browse files Browse the repository at this point in the history
fix #243
  • Loading branch information
FairyEver committed Apr 21, 2020
1 parent a494560 commit c36fd8e
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/assets/style/theme/d2/setting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ $theme-bg-color: #ebf1f6;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, 0);

// 消息提示
$theme-message-info-background-color: $color-bg;
$theme-message-info-text-color: $color-text-normal;
$theme-message-info-border-color: $color-border-1;

// container组件
$theme-container-background-color: rgba(#FFF, 1);
$theme-container-header-footer-background-color: #FFF;
Expand Down
5 changes: 5 additions & 0 deletions src/assets/style/theme/line/setting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ $theme-bg-color: #f8f8f9;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, 0);

// 消息提示
$theme-message-info-background-color: $color-bg;
$theme-message-info-text-color: $color-text-normal;
$theme-message-info-border-color: $color-border-1;

// container组件
$theme-container-background-color: rgba(#FFF, .8);
$theme-container-header-footer-background-color: #FFF;
Expand Down
5 changes: 5 additions & 0 deletions src/assets/style/theme/star/setting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ $theme-bg-color: #EFF4F8;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, .3);

// 消息提示
$theme-message-info-background-color: $color-bg;
$theme-message-info-text-color: $color-text-normal;
$theme-message-info-border-color: $color-border-1;

// container组件
$theme-container-background-color: rgba(#FFF, .9);
$theme-container-header-footer-background-color: #FFF;
Expand Down
8 changes: 8 additions & 0 deletions src/assets/style/theme/theme.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
// 每个主题特有的设置
.theme-#{$theme-name} {

.el-message {
&.el-message--info {
background-color: $theme-message-info-background-color;
color: $theme-message-info-text-color;
border-color: $theme-message-info-border-color;
}
}

.el-card {
&.d2-card {
border: $theme-container-border-outer;
Expand Down
5 changes: 5 additions & 0 deletions src/assets/style/theme/tomorrow-night-blue/setting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ $theme-bg-color: #002253;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, 0);

// 消息提示
$theme-message-info-background-color: $color-bg;
$theme-message-info-text-color: $color-text-normal;
$theme-message-info-border-color: $color-border-1;

// container组件
$theme-container-background-color: rgba(#FFF, 1);
$theme-container-header-footer-background-color: #FFF;
Expand Down
5 changes: 5 additions & 0 deletions src/assets/style/theme/violet/setting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ $theme-bg-color: #000;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, 0);

// 消息提示
$theme-message-info-background-color: $color-bg;
$theme-message-info-text-color: $color-text-normal;
$theme-message-info-border-color: $color-border-1;

// container组件
$theme-container-background-color: #FFF;
$theme-container-header-footer-background-color: #FFF;
Expand Down

0 comments on commit c36fd8e

Please sign in to comment.