naive-ui/styles/Icon.scss

37 lines
717 B
SCSS
Raw Normal View History

2019-11-29 15:34:37 +08:00
@import './mixins/mixins.scss';
@include themes-mixin {
@include b(icon) {
2020-02-21 16:48:45 +08:00
@include once {
height: 1em;
width: 1em;
2020-02-21 16:48:45 +08:00
line-height: 1em;
text-align: center;
display: inline-block;
position: relative;
transition: $--n-icon-transition;
svg {
height: 1em;
width: 1em;
}
}
2020-02-21 16:48:45 +08:00
fill: $--n-base-text-color;
stroke: $--n-base-text-color;
2020-02-19 12:35:28 +08:00
@include m(primary-depth) {
2020-02-20 15:26:12 +08:00
svg {
opacity: $--n-primary-opacity;
}
}
2020-02-19 12:35:28 +08:00
@include m(secondary-depth) {
2020-02-20 15:26:12 +08:00
svg {
opacity: $--n-secondary-opacity;
}
}
2020-02-19 12:35:28 +08:00
@include m(tertiary-depth) {
2020-02-20 15:26:12 +08:00
svg {
opacity: $--n-tertiary-opacity;
}
}
}
2019-07-03 13:23:42 +08:00
}