naive-ui/styles/GradientText.scss

35 lines
894 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;
.n-gradient-text__content {
background: $default-text-gradient;
background-clip: text;
-webkit-background-clip: text;
color: transparent;
&.is-default {
background: $default-text-gradient;
-webkit-background-clip: text;
2019-06-17 19:11:37 +08:00
background-clip: text;
2019-06-17 18:06:42 +08:00
}
&.is-warning {
background: $default-text-gradient-warning;
-webkit-background-clip: text;
2019-06-17 19:11:37 +08:00
background-clip: text;
2019-06-17 18:06:42 +08:00
}
&.is-danger {
background: $default-text-gradient-danger;
-webkit-background-clip: text;
2019-06-17 19:11:37 +08:00
background-clip: text;
2019-06-17 18:06:42 +08:00
}
&.is-success {
background: $default-text-gradient-success;
2019-06-04 16:01:34 +08:00
-webkit-background-clip: text;
2019-06-17 19:11:37 +08:00
background-clip: text;
2019-06-04 16:01:34 +08:00
}
}
}