mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
59 lines
1.4 KiB
SCSS
59 lines
1.4 KiB
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@mixin result-status-mixin ($status){
|
|
@include e($status + '-status') {
|
|
@include b(result-icon) {
|
|
@include b(icon) {
|
|
fill: 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 $default-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: 700;
|
|
transition: color .3s $default-cubic-bezier;
|
|
text-align: center;
|
|
}
|
|
color: $--result-header-text-color;
|
|
}
|
|
@include once {
|
|
@include e(description) {
|
|
margin-top: 4px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |