naive-ui
Version:
A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
37 lines • 906 B
JavaScript
import { c, cB, cM } from "../../../_utils/cssr/index.mjs";
// vars:
// --n-bezier
// --n-font-size
// --n-margin
// --n-bar-color
// --n-bar-width
// --n-font-weight
// --n-text-color
// --n-prefix-width
export default cB('h', `
font-size: var(--n-font-size);
font-weight: var(--n-font-weight);
margin: var(--n-margin);
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`, [c('&:first-child', {
marginTop: 0
}), cM('prefix-bar', {
position: 'relative',
paddingLeft: 'var(--n-prefix-width)'
}, [cM('align-text', {
paddingLeft: 0
}, [c('&::before', {
left: 'calc(-1 * var(--n-prefix-width))'
})]), c('&::before', `
content: "";
width: var(--n-bar-width);
border-radius: calc(var(--n-bar-width) / 2);
transition: background-color .3s var(--n-bezier);
left: 0;
top: 0;
bottom: 0;
position: absolute;
`), c('&::before', {
backgroundColor: 'var(--n-bar-color)'
})])]);