2019-07-02 13:06:03 +08:00
|
|
|
@import './mixins/mixins.scss';
|
2019-09-17 19:21:07 +08:00
|
|
|
@import './themes/vars.scss';
|
2019-07-02 13:06:03 +08:00
|
|
|
|
|
|
|
@include b(alert) {
|
2019-10-11 17:01:23 +08:00
|
|
|
// color: rgba(255, 146, 164, 1);
|
|
|
|
border-radius: 6px;
|
2019-07-29 15:45:42 +08:00
|
|
|
position: relative;
|
2019-07-02 14:48:49 +08:00
|
|
|
.n-alert__icon {
|
2019-07-29 15:45:42 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 15px;
|
|
|
|
top: 15px;
|
2019-07-02 14:48:49 +08:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2019-07-29 15:45:42 +08:00
|
|
|
width: 19px;
|
|
|
|
height: 19px;
|
2019-07-02 14:48:49 +08:00
|
|
|
.n-icon {
|
2019-07-29 15:45:42 +08:00
|
|
|
margin-left: -2px;
|
|
|
|
margin-top: -2px;
|
|
|
|
font-size: 23px;
|
2019-07-02 14:48:49 +08:00
|
|
|
}
|
|
|
|
}
|
2019-07-29 15:45:42 +08:00
|
|
|
.n-alert__body-wrapper {
|
|
|
|
padding: 15px 19px 15px 47px;
|
|
|
|
.n-alert__title {
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 19px;
|
|
|
|
margin-bottom: 9px;
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
.n-alert__content {
|
|
|
|
font-size: 14px;
|
2019-10-11 17:01:23 +08:00
|
|
|
// color: rgba(255, 255, 255, 0.8);
|
2019-07-29 15:45:42 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.n-alert--no-icon {
|
|
|
|
.n-alert__body-wrapper {
|
|
|
|
padding-left: 19px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.n-alert--success {
|
2019-09-04 16:06:07 +08:00
|
|
|
background-color: rgba(99, 226, 183, 0.2);
|
|
|
|
box-shadow: inset 0 0 0 1.2px rgba(99, 226, 183, .5);
|
2019-07-29 15:45:42 +08:00
|
|
|
.n-icon {
|
|
|
|
color: rgba(99, 226, 183, 1);
|
|
|
|
}
|
|
|
|
.n-alert__title {
|
|
|
|
color: rgba(99, 226, 183, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.n-alert--info {
|
2019-09-04 16:06:07 +08:00
|
|
|
background-color: rgba(98,187,252,0.2);
|
|
|
|
box-shadow: inset 0 0 0 1.2px rgba(98,187,252, .5);
|
2019-07-29 15:45:42 +08:00
|
|
|
.n-icon {
|
|
|
|
color: rgba(98, 187, 252, 1);
|
|
|
|
}
|
|
|
|
.n-alert__title {
|
|
|
|
color: rgba(98, 187, 252, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.n-alert--warning {
|
2019-09-04 16:06:07 +08:00
|
|
|
background-color: rgba(245, 166, 35, 0.2);
|
|
|
|
box-shadow: inset 0 0 0 1.2px rgba(245, 166, 35, .5);
|
2019-07-29 15:45:42 +08:00
|
|
|
.n-icon {
|
|
|
|
color: rgba(245, 166, 35, 1);
|
|
|
|
}
|
|
|
|
.n-alert__title {
|
|
|
|
color:rgba(245, 166, 35, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.n-alert--error {
|
2019-09-04 16:06:07 +08:00
|
|
|
background-color: rgba(255, 146, 164, 0.2);
|
|
|
|
box-shadow: inset 0 0 0 1.2px rgba(255, 146, 164, 0.5);
|
2019-07-29 15:45:42 +08:00
|
|
|
.n-icon {
|
|
|
|
color:rgba(255, 146, 164, 1);
|
|
|
|
}
|
|
|
|
.n-alert__title {
|
|
|
|
color:rgba(255, 146, 164, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 13:06:03 +08:00
|
|
|
}
|