mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
25 lines
642 B
SCSS
25 lines
642 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: 500;
|
|
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);
|
|
}
|
|
}
|