2017-03-20 17:20:30 +08:00

88 lines
1.4 KiB
CSS

@import './common/var.css';
@import './mixins/border_retina.css';
@import './cell.css';
@component-namespace zan {
@b field {
width: 100%;
@m hastextarea {
.zan-field__control {
min-height: 60px;
}
}
@m nolabel {
.zan-cell__title {
display: none;
}
.zan-cell__value {
width: 100%;
padding-left: 0;
}
}
@m disabled {
.zan-field__control {
color: $c-gray-dark;
}
}
@m error {
.zan-field__control {
color: $c-red;
}
}
@m border {
.zan-field__control {
padding-left: 10px;
}
&::after {
border-radius: 2px;
@mixin border-retina (top, right, bottom, left);
}
&:last-child::after {
@mixin border-retina (bottom);
}
}
@m autosize {
.zan-field__control {
min-height: 0px;
}
}
.zan-cell__title,
.zan-cell__value {
float: none;
box-sizing: border-box;
}
.zan-cell__title {
width: 90px;
position: absolute;
top: 10px;
left: 0;
}
.zan-cell__value {
width: 100%;
padding-left: 90px;
}
@e control {
border: 0;
font-size: 14px;
line-height: 22px;
display: block;
width: 100%;
resize: none;
outline: 0;
}
}
}