mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
37 lines
717 B
SCSS
37 lines
717 B
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@include themes-mixin {
|
|
@include b(icon) {
|
|
@include once {
|
|
height: 1em;
|
|
width: 1em;
|
|
line-height: 1em;
|
|
text-align: center;
|
|
display: inline-block;
|
|
position: relative;
|
|
transition: $--n-icon-transition;
|
|
svg {
|
|
height: 1em;
|
|
width: 1em;
|
|
}
|
|
}
|
|
fill: $--n-base-text-color;
|
|
stroke: $--n-base-text-color;
|
|
@include m(primary-depth) {
|
|
svg {
|
|
opacity: $--n-primary-opacity;
|
|
}
|
|
}
|
|
@include m(secondary-depth) {
|
|
svg {
|
|
opacity: $--n-secondary-opacity;
|
|
}
|
|
}
|
|
@include m(tertiary-depth) {
|
|
svg {
|
|
opacity: $--n-tertiary-opacity;
|
|
}
|
|
}
|
|
}
|
|
}
|