naive-ui/styles/GradientText.scss

27 lines
709 B
SCSS
Raw Normal View History

2019-06-04 16:01:34 +08:00
@import './mixins/mixins.scss';
@import './themes/vars.scss';
2019-06-04 16:01:34 +08:00
2019-10-16 23:20:40 +08:00
@mixin gradient-text-type-mixin ($type) {
@include m($type + '-type') {
background-image: map-get($--gradient-text-background-image, $type);
}
2019-10-16 23:20:40 +08:00
}
@include themes-mixin {
@include b(gradient-text) {
@include once {
2019-12-21 22:06:06 +08:00
display: inline-block;
2019-12-23 16:48:49 +08:00
font-weight: 500;
2019-10-16 23:20:40 +08:00
font-size: inherit;
background-clip: text;
-webkit-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);
2019-06-04 16:01:34 +08:00
}
2019-10-16 23:20:40 +08:00
}