naive-ui/styles/Result.scss

60 lines
1.5 KiB
SCSS
Raw Normal View History

2019-11-21 23:50:53 +08:00
@import './mixins/mixins.scss';
2019-12-09 17:55:21 +08:00
@mixin result-status-mixin ($status){
@include m($status + '-status') {
2019-12-09 17:55:21 +08:00
@include b(result-icon) {
@include b(icon) {
fill: map-get($--result-icon-fill, $status);
2020-02-07 20:04:20 +08:00
stroke: map-get($--result-icon-fill, $status);
2019-11-22 12:06:11 +08:00
}
}
2019-12-09 17:55:21 +08:00
}
}
@include themes-mixin {
@include b(result) {
color: $--result-description-text-color;
@include result-status-mixin('success');
@include result-status-mixin('info');
@include result-status-mixin('warning');
@include result-status-mixin('error');
@include once {
font-size: 14px;
transition: color .3s $--n-ease-in-out-cubic-bezier;
2019-11-22 12:06:11 +08:00
@include b(result-icon) {
2019-12-09 17:55:21 +08:00
display: flex;
justify-content: center;
@include e(status-image) {
width: 80px;
height: 80px;
}
2019-11-22 12:06:11 +08:00
}
2019-12-09 17:55:21 +08:00
@include b(result-content) {
margin-top: 24px;
2019-11-22 12:06:11 +08:00
}
2019-12-09 17:55:21 +08:00
@include b(result-footer) {
margin-top: 24px;
text-align: center;
2019-11-21 23:50:53 +08:00
}
}
@include b(result-header) {
@include e(title) {
2019-12-09 17:55:21 +08:00
@include once {
margin-top: 16px;
font-size: 32px;
2019-12-23 16:48:49 +08:00
font-weight: 500;
transition: color .3s $--n-ease-in-out-cubic-bezier;
2019-12-09 17:55:21 +08:00
text-align: center;
}
color: $--result-header-text-color;
2019-11-21 23:50:53 +08:00
}
2019-12-09 17:55:21 +08:00
@include once {
@include e(description) {
margin-top: 4px;
text-align: center;
font-size: 14px;
}
2019-11-21 23:50:53 +08:00
}
}
}
}