naive-ui/styles/Statistic.scss
2020-02-07 20:04:20 +08:00

58 lines
1.5 KiB
SCSS

@import './mixins/mixins.scss';
@include themes-mixin {
@include b(statistic) {
@include once {
font-family: $--n-font-family;
}
@include b(statistic-value) {
@include once {
margin-top: 4px;
font-weight: 500;
}
@include e(prefix) {
@include once {
font-size: 18px;
transition: .3s color $--n-ease-in-out-cubic-bezier;
}
color: $--statistic-value-prefix-text-color;
@include b(icon) {
@include once {
vertical-align: -0.125em;
}
fill: $--statistic-value-prefix-text-color;
stroke: $--statistic-value-prefix-text-color;
}
}
@include e(content) {
@include once {
font-size: 24px;
transition: .3s color $--n-ease-in-out-cubic-bezier;
}
color: $--statistic-value-content-text-color;
}
@include e(suffix) {
@include once {
font-size: 18px;
transition: .3s color $--n-ease-in-out-cubic-bezier;
}
color: $--statistic-value-suffix-text-color;
@include b(icon) {
@include once {
vertical-align: -0.125em;
}
fill: $--statistic-value-prefix-text-color;
stroke: $--statistic-value-prefix-text-color;
}
}
}
@include e(label) {
@include once {
font-weight: 500;
transition: .3s color $--n-ease-in-out-cubic-bezier;
font-size: 14px;
}
color: $--statistic-value-label-text-color;
}
}
}