@mdsfe/mds-ui
Version:
A set of enterprise-class Vue UI components.
139 lines (138 loc) • 2.95 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */
.mds-alert {
width: 100%;
padding: 8px 16px;
margin: 0;
box-sizing: border-box;
border-radius: 4px;
position: relative;
background-color: #fff;
overflow: hidden;
opacity: 1;
display: flex;
align-items: center;
transition: opacity .2s;
}
.mds-alert.is-light .mds-alert__closebtn {
color: inherit;
}
.mds-alert.is-dark .mds-alert__closebtn,
.mds-alert.is-dark .mds-alert__description {
color: #fff;
}
.mds-alert.is-center {
justify-content: center;
}
.mds-alert--success.is-light {
background-color: #f0f9eb;
color: #67c23a;
}
.mds-alert--success.is-light .mds-alert__description {
color: #67c23a;
}
.mds-alert--success.is-dark {
background-color: #67c23a;
color: #fff;
}
.mds-alert--info.is-light {
background-color: #f4f4f5;
color: #909399;
}
.mds-alert--info.is-dark {
background-color: #909399;
color: #fff;
}
.mds-alert--info .mds-alert__description {
color: #909399;
}
.mds-alert--warning.is-light {
background-color: #fdf6ec;
color: #e6a23c;
}
.mds-alert--warning.is-light .mds-alert__description {
color: #e6a23c;
}
.mds-alert--warning.is-dark {
background-color: #e6a23c;
color: #fff;
}
.mds-alert--error.is-light {
background-color: #fef0f0;
color: #f56c6c;
}
.mds-alert--error.is-light .mds-alert__description {
color: #f56c6c;
}
.mds-alert--error.is-dark {
background-color: #f56c6c;
color: #fff;
}
.mds-alert--normal.is-light {
background-color: #fff;
border: 1px solid #29adff;
color: #29adff;
}
.mds-alert--normal.is-light .mds-alert__description {
color: #29adff;
}
.mds-alert--normal.is-dark {
background-color: #29adff;
color: #fff;
}
.mds-alert--question.is-light {
background-color: #fff;
border: 1px solid #ffcc01;
color: #ffcc01;
}
.mds-alert--question.is-light .mds-alert__description {
color: #ffcc01;
}
.mds-alert--question.is-dark {
background-color: #ffcc01;
color: #fff;
}
.mds-alert__content {
display: table-cell;
padding: 0 8px;
}
.mds-alert__icon {
font-size: 16px;
width: 16px;
}
.mds-alert__icon.is-big {
font-size: 28px;
width: 28px;
}
.mds-alert__message {
font-size: 13px;
line-height: 18px;
}
.mds-alert__message.is-bold {
font-weight: 700;
}
.mds-alert__description {
font-size: 12px;
margin: 5px 0 0;
}
.mds-alert__closebtn {
font-size: 12px;
opacity: 1;
position: absolute;
top: 12px;
right: 15px;
cursor: pointer;
}
.mds-alert__closebtn.is-customed {
font-style: normal;
font-size: 13px;
top: 9px;
}
.mds-alert-fade-enter,
.mds-alert-fade-leave-active {
opacity: 0;
}
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */