张敏 a0dcec4dc5 [refactor] Field & Stepper 自定义组件改造 (#168)
* [refactor] Field & Stepper 自定义组件改造

* Field & Stepper remove componentId
2018-03-28 15:10:35 +08:00

55 lines
804 B
Plaintext

@import '../cell/index';
.zan-field {
padding: 7px 15px;
color: #333;
}
.zan-field--wrapped {
margin: 10px 15px;
background-color: #fff;
&::after {
left: 0;
border-width: 1px;
border-radius: 4px;
}
}
/* 圆角输入框,强制展示边框 */
.zan-field.zan-field--wrapped::after {
display: block;
}
.zan-field--error {
color: #f40;
}
/* 圆角输入框出现错误时,将边框也置红 */
.zan-field--wrapped.zan-field--error::after {
border-color: #f40;
}
.zan-field__title {
color: #333;
min-width: 65px;
padding-right: 10px;
}
.zan-field__input {
flex: 1;
line-height: 1.6;
padding: 4px 0;
min-height: 22px;
height: auto;
font-size: 14px;
}
.zan-field__placeholder {
font-size: 14px;
}
.zan-field__input--right {
text-align: right;
}