mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
60 lines
1.5 KiB
SCSS
60 lines
1.5 KiB
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@mixin result-status-mixin ($status){
|
|
@include m($status + '-status') {
|
|
@include b(result-icon) {
|
|
@include b(icon) {
|
|
fill: map-get($--result-icon-fill, $status);
|
|
stroke: map-get($--result-icon-fill, $status);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@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;
|
|
@include b(result-icon) {
|
|
display: flex;
|
|
justify-content: center;
|
|
@include e(status-image) {
|
|
width: 80px;
|
|
height: 80px;
|
|
}
|
|
}
|
|
@include b(result-content) {
|
|
margin-top: 24px;
|
|
}
|
|
@include b(result-footer) {
|
|
margin-top: 24px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
@include b(result-header) {
|
|
@include e(title) {
|
|
@include once {
|
|
margin-top: 16px;
|
|
font-size: 32px;
|
|
font-weight: 500;
|
|
transition: color .3s $--n-ease-in-out-cubic-bezier;
|
|
text-align: center;
|
|
}
|
|
color: $--result-header-text-color;
|
|
}
|
|
@include once {
|
|
@include e(description) {
|
|
margin-top: 4px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |