2017-01-03 18:13:59 +08:00
|
|
|
@form-prefix-cls: ~"@{css-prefix}form";
|
|
|
|
@form-item-prefix-cls: ~"@{form-prefix-cls}-item";
|
|
|
|
|
|
|
|
.@{form-prefix-cls} {
|
|
|
|
.@{form-item-prefix-cls}-label {
|
|
|
|
text-align: right;
|
|
|
|
vertical-align: middle;
|
|
|
|
float: left;
|
|
|
|
font-size: @font-size-small;
|
|
|
|
color: @text-color;
|
|
|
|
line-height: 1;
|
|
|
|
padding: 10px 12px 10px 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
&-label-left .@{form-item-prefix-cls}-label {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
&-label-top .@{form-item-prefix-cls}-label {
|
|
|
|
float: none;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0 0 10px 0;
|
|
|
|
}
|
|
|
|
&-inline{
|
|
|
|
.@{form-item-prefix-cls} {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 10px;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{form-item-prefix-cls} {
|
|
|
|
margin-bottom: 24px;
|
|
|
|
vertical-align: top;
|
|
|
|
.clearfix();
|
|
|
|
&-content {
|
|
|
|
position: relative;
|
2017-01-04 14:55:16 +08:00
|
|
|
line-height: 32px;
|
2017-01-03 18:13:59 +08:00
|
|
|
font-size: @font-size-small;
|
|
|
|
}
|
2017-01-06 11:30:01 +08:00
|
|
|
& & {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
& & &-content {
|
|
|
|
margin-left: 0!important;
|
|
|
|
}
|
2017-01-03 18:13:59 +08:00
|
|
|
|
2017-01-04 17:37:16 +08:00
|
|
|
&-error-tip{
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
|
|
|
line-height: 1;
|
|
|
|
padding-top: 6px;
|
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
|
2017-01-03 18:13:59 +08:00
|
|
|
&-required {
|
|
|
|
.@{form-item-prefix-cls}-label:before {
|
|
|
|
content: '*';
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 4px;
|
|
|
|
line-height: 1;
|
|
|
|
font-family: SimSun;
|
|
|
|
font-size: @font-size-small;
|
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-error {
|
|
|
|
// todo
|
|
|
|
}
|
|
|
|
}
|