|
@@ -15,22 +15,51 @@
|
|
|
align-items: center;
|
|
|
transition: opacity .2s;
|
|
|
|
|
|
+ @include when(light) {
|
|
|
+ .el-alert__closebtn {
|
|
|
+ color: $--color-text-placeholder;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @include when(dark) {
|
|
|
+ .el-alert__closebtn {
|
|
|
+ color: $--color-white;
|
|
|
+ }
|
|
|
+ .el-alert__description {
|
|
|
+ color: $--color-white;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@include when(center) {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
|
|
|
@include m(success) {
|
|
|
- background-color: $--alert-success-color;
|
|
|
- color: $--color-success;
|
|
|
-
|
|
|
- .el-alert__description {
|
|
|
+ &.is-light {
|
|
|
+ background-color: $--alert-success-color;
|
|
|
color: $--color-success;
|
|
|
+
|
|
|
+ .el-alert__description {
|
|
|
+ color: $--color-success;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &.is-dark {
|
|
|
+ background-color: $--color-success;
|
|
|
+ color: $--color-white;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@include m(info) {
|
|
|
- background-color: $--alert-info-color;
|
|
|
- color: $--color-info;
|
|
|
+ &.is-light {
|
|
|
+ background-color: $--alert-info-color;
|
|
|
+ color: $--color-info;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.is-dark {
|
|
|
+ background-color: $--color-info;
|
|
|
+ color: $--color-white;
|
|
|
+ }
|
|
|
|
|
|
.el-alert__description {
|
|
|
color: $--color-info;
|
|
@@ -38,20 +67,34 @@
|
|
|
}
|
|
|
|
|
|
@include m(warning) {
|
|
|
- background-color: $--alert-warning-color;
|
|
|
- color: $--color-warning;
|
|
|
-
|
|
|
- .el-alert__description {
|
|
|
+ &.is-light {
|
|
|
+ background-color: $--alert-warning-color;
|
|
|
color: $--color-warning;
|
|
|
+
|
|
|
+ .el-alert__description {
|
|
|
+ color: $--color-warning;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &.is-dark {
|
|
|
+ background-color: $--color-warning;
|
|
|
+ color: $--color-white;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@include m(error) {
|
|
|
- background-color: $--alert-danger-color;
|
|
|
- color: $--color-danger;
|
|
|
-
|
|
|
- .el-alert__description {
|
|
|
+ &.is-light {
|
|
|
+ background-color: $--alert-danger-color;
|
|
|
color: $--color-danger;
|
|
|
+
|
|
|
+ .el-alert__description {
|
|
|
+ color: $--color-danger;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &.is-dark {
|
|
|
+ background-color: $--color-danger;
|
|
|
+ color: $--color-white;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -84,7 +127,6 @@
|
|
|
|
|
|
@include e(closebtn) {
|
|
|
font-size: $--alert-close-font-size;
|
|
|
- color: $--color-text-placeholder;
|
|
|
opacity: 1;
|
|
|
position: absolute;
|
|
|
top: 12px;
|