|
|
|
@import "../mixins/index";
|
|
|
|
|
|
|
|
.reset-form();
|
|
|
|
|
|
|
|
label {
|
|
|
|
position: relative;
|
|
|
|
&[required]:before {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 4px;
|
|
|
|
content: "*";
|
|
|
|
font-family: SimSun;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
color: @label-required-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .@{iconfont-css-prefix} {
|
|
|
|
vertical-align: top;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Input styles
|
|
|
|
.@{css-prefix}input {
|
|
|
|
.input;
|
|
|
|
}
|
|
|
|
|
|
|
|
//== Input type: with extra icon
|
|
|
|
.has-feedback {
|
|
|
|
.input-with-icon();
|
|
|
|
}
|
|
|
|
|
|
|
|
//== Style for input-group: input with label, with button or dropdown...
|
|
|
|
.@{css-prefix}input-group {
|
|
|
|
.input-group(~"@{css-prefix}input");
|
|
|
|
}
|
|
|
|
|
|
|
|
// Radio && Checkbox
|
|
|
|
input[type="radio"],
|
|
|
|
input[type="checkbox"] {
|
|
|
|
&[disabled],
|
|
|
|
&.disabled,
|
|
|
|
fieldset[disabled] & {
|
|
|
|
cursor: @cursor-disabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// These classes are used directly on <label>s
|
|
|
|
.@{css-prefix}radio-inline,
|
|
|
|
.@{css-prefix}radio-vertical,
|
|
|
|
.@{css-prefix}checkbox-inline,
|
|
|
|
.@{css-prefix}checkbox-vertical {
|
|
|
|
&.disabled,
|
|
|
|
fieldset[disabled] & {
|
|
|
|
cursor: @cursor-disabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// These classes are used on elements with <label> descendants
|
|
|
|
.@{css-prefix}radio,
|
|
|
|
.@{css-prefix}checkbox {
|
|
|
|
&.disabled,
|
|
|
|
fieldset[disabled] & {
|
|
|
|
label {
|
|
|
|
cursor: @cursor-disabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Form items
|
|
|
|
// You should wrap labels and controls in .@{css-prefix}form-item for optimum spacing
|
|
|
|
.@{css-prefix}form-item {
|
|
|
|
font-size: @font-size-base;
|
|
|
|
margin-bottom: @form-item-margin-bottom;
|
|
|
|
color: #666;
|
|
|
|
|
|
|
|
> label {
|
|
|
|
color: @label-color;
|
|
|
|
text-align: right;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
&:lang(en) {
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{css-prefix}switch {
|
|
|
|
margin: 4px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{css-prefix}form-text,
|
|
|
|
.@{css-prefix}form-split {
|
|
|
|
margin: 0!important;
|
|
|
|
padding-top: 7px;
|
|
|
|
padding-bottom: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{css-prefix}form-text {
|
|
|
|
display: inline-block;
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{css-prefix}form-split {
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{css-prefix}form-explain {
|
|
|
|
position: absolute;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
line-height: @line-height-base;
|
|
|
|
bottom: -@line-height-computed;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 表单下的输入框尺寸唯一: 大尺寸
|
|
|
|
form {
|
|
|
|
.has-feedback {
|
|
|
|
.@{iconfont-css-prefix} {
|
|
|
|
.square(@input-height-lg);
|
|
|
|
line-height: @input-height-lg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.@{css-prefix}input,
|
|
|
|
.@{css-prefix}input-group .@{css-prefix}input,
|
|
|
|
.@{css-prefix}input-group .@{css-prefix}input-group-addon {
|
|
|
|
.input-lg();
|
|
|