mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
25 lines
657 B
SCSS
25 lines
657 B
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@mixin gradient-text-type-mixin ($type) {
|
|
@include m($type + '-type') {
|
|
background-image: map-get($--gradient-text-background-image, $type);
|
|
}
|
|
}
|
|
|
|
@include themes-mixin {
|
|
@include b(gradient-text) {
|
|
@include once {
|
|
display: inline-block;
|
|
font-weight: $--n-strong-weight;
|
|
font-size: inherit;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
@include gradient-text-type-mixin(default);
|
|
@include gradient-text-type-mixin(success);
|
|
@include gradient-text-type-mixin(warning);
|
|
@include gradient-text-type-mixin(error);
|
|
@include gradient-text-type-mixin(info);
|
|
}
|
|
}
|