naive-ui/styles/GradientText.scss

33 lines
888 B
SCSS
Raw Normal View History

2019-06-04 16:01:34 +08:00
@import './mixins/mixins.scss';
@import './theme/default.scss';
2019-06-04 16:01:34 +08:00
2019-06-17 18:06:42 +08:00
@include b(gradient-text) {
display: inline-block;
position: relative;
font-weight: 700;
font-size: 16px;
background: $default-text-gradient;
background-clip: text;
-webkit-background-clip: text;
color: transparent;
&.n-gradient-text--default-type {
2019-06-17 18:06:42 +08:00
background: $default-text-gradient;
-webkit-background-clip: text;
2019-06-17 18:06:42 +08:00
background-clip: text;
}
&.n-gradient-text--warning-type {
background: $default-text-gradient-warning;
-webkit-background-clip: text;
background-clip: text;
}
&.n-gradient-text--danger-type {
background: $default-text-gradient-danger;
2019-06-17 18:06:42 +08:00
-webkit-background-clip: text;
background-clip: text;
}
&.n-gradient-text--success-type {
background: $default-text-gradient-success;
-webkit-background-clip: text;
background-clip: text;
2019-06-04 16:01:34 +08:00
}
}