naive-ui
Version:
A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
24 lines • 531 B
JavaScript
import { c, cB, cM } from "../../../_utils/cssr/index.mjs";
// vars:
// --n-bezier
// --n-color
// --n-opacity
export default cB('icon', `
height: 1em;
width: 1em;
line-height: 1em;
text-align: center;
display: inline-block;
position: relative;
fill: currentColor;
`, [cM('color-transition', {
transition: 'color .3s var(--n-bezier)'
}), cM('depth', {
color: 'var(--n-color)'
}, [c('svg', {
opacity: 'var(--n-opacity)',
transition: 'opacity .3s var(--n-bezier)'
})]), c('svg', {
height: '1em',
width: '1em'
})]);