naive-ui/styles/Alert.scss

81 lines
1.8 KiB
SCSS
Raw Normal View History

@import './mixins/mixins.scss';
@import './themes/vars.scss';
@include b(alert) {
// color: rgba(255, 146, 164, 1);
border-radius: 6px;
position: relative;
2019-07-02 14:48:49 +08:00
.n-alert__icon {
position: absolute;
left: 15px;
top: 15px;
2019-07-02 14:48:49 +08:00
align-items: center;
justify-content: center;
width: 19px;
height: 19px;
2019-07-02 14:48:49 +08:00
.n-icon {
margin-left: -2px;
margin-top: -2px;
font-size: 23px;
2019-07-02 14:48:49 +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;
// color: rgba(255, 255, 255, 0.8);
}
}
&.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);
.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);
.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);
.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);
.n-icon {
color:rgba(255, 146, 164, 1);
}
.n-alert__title {
color:rgba(255, 146, 164, 1);
}
}
}