mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
26 lines
684 B
SCSS
26 lines
684 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;
|
|
white-space: nowrap;
|
|
}
|
|
@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);
|
|
}
|
|
}
|