|
@@ -10,25 +10,49 @@
|
|
|
position: relative;
|
|
|
background-color: $--color-white;
|
|
|
overflow: hidden;
|
|
|
- color: $--color-white;
|
|
|
opacity: 1;
|
|
|
- display: table;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
transition: opacity .2s;
|
|
|
|
|
|
+ @include when(center) {
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
+
|
|
|
@include m(success) {
|
|
|
background-color: $--alert-success-color;
|
|
|
+ color: $--color-success;
|
|
|
+
|
|
|
+ .el-alert__description {
|
|
|
+ color: $--color-success;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@include m(info) {
|
|
|
background-color: $--alert-info-color;
|
|
|
+ color: $--color-info;
|
|
|
+
|
|
|
+ .el-alert__description {
|
|
|
+ color: $--color-info;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@include m(warning) {
|
|
|
background-color: $--alert-warning-color;
|
|
|
+ color: $--color-warning;
|
|
|
+
|
|
|
+ .el-alert__description {
|
|
|
+ color: $--color-warning;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@include m(error) {
|
|
|
background-color: $--alert-danger-color;
|
|
|
+ color: $--color-danger;
|
|
|
+
|
|
|
+ .el-alert__description {
|
|
|
+ color: $--color-danger;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@include e(content) {
|
|
@@ -39,9 +63,6 @@
|
|
|
@include e(icon) {
|
|
|
font-size: $--alert-icon-size;
|
|
|
width: $--alert-icon-size;
|
|
|
- display: table-cell;
|
|
|
- color: $--color-white;
|
|
|
- vertical-align: middle;
|
|
|
@include when(big) {
|
|
|
font-size: $--alert-icon-large-size;
|
|
|
width: $--alert-icon-large-size;
|
|
@@ -57,14 +78,13 @@
|
|
|
}
|
|
|
|
|
|
& .el-alert__description {
|
|
|
- color: $--color-white;
|
|
|
font-size: $--alert-description-font-size;
|
|
|
margin: 5px 0 0 0;
|
|
|
}
|
|
|
|
|
|
@include e(closebtn) {
|
|
|
font-size: $--alert-close-font-size;
|
|
|
- color: $--color-white;
|
|
|
+ color: $--color-text-placeholder;
|
|
|
opacity: 1;
|
|
|
position: absolute;
|
|
|
top: 12px;
|