chore(form): simplify cssr

This commit is contained in:
07akioni 2020-11-16 01:12:19 +08:00
parent cb21b1d8a9
commit 4db3125fe6

View File

@ -34,14 +34,10 @@ export default c([
])
]),
cTB('form-item', {
raw: `
width: 100%;
`
width: '100%'
}, [
cM('top-labelled', {
raw: `
margin-right: 18px;
`
marginRight: '18px'
}, [
cB('form-item-label', {
raw: `
@ -67,21 +63,15 @@ export default c([
`
}),
cB('form-item-control', {
raw: `
flex-grow: 1;
`
flexGrow: 1
})
]),
cM('right-label-aligned', [
cB('form-item-label', {
raw: `
text-align: right;
`
textAlign: 'right'
}, [
c('&::after', {
raw: `
display: none;
`
display: 'none'
})
])
]),
@ -128,11 +118,8 @@ export default c([
color: labelTextColor
}, [
c('&::after', {
raw: `
transition: color .3s ${cubicBezierEaseInOut};
`
transition: `color .3s ${cubicBezierEaseInOut}`
})
]),
cB('form-item-feedback-wrapper', {
raw: `