fixed floating label focused size

This commit is contained in:
Kevin Ross 2015-11-17 15:43:00 -06:00
parent daa68e6624
commit ea596ef223
10 changed files with 30 additions and 10 deletions

View File

@ -1940,18 +1940,23 @@
</div>
</div>
<div class="form-group">
<label for="select" class="col-lg-2 control-label">Selects</label>
<label for="select111" class="col-lg-2 control-label">Select</label>
<div class="col-lg-10">
<select class="form-control" id="select">
<select id="select111" class="form-control">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<br>
<select multiple="" class="form-control">
</div>
</div>
<div class="form-group">
<label for="select222" class="col-lg-2 control-label">Select Multiple</label>
<div class="col-lg-10">
<select id="select222" multiple="" class="form-control">
<option>1</option>
<option>2</option>
<option>3</option>

View File

@ -24369,6 +24369,8 @@ fieldset[disabled] .form-control {
.form-group.label-floating.is-focused label.control-label,
.form-group.label-floating:not(.is-empty) label.control-label {
top: -30px;
font-size: 12px;
line-height: 1.07142857;
}
.form-group.form-group-sm {
margin: 21px 0 0 0;
@ -24404,6 +24406,8 @@ fieldset[disabled] .form-control {
.form-group.form-group-sm.label-floating.is-focused label.control-label,
.form-group.form-group-sm.label-floating:not(.is-empty) label.control-label {
top: -25px;
font-size: 9px;
line-height: 1.125;
}
.form-group.form-group-lg {
margin: 30px 0 0 0;
@ -24439,6 +24443,8 @@ fieldset[disabled] .form-control {
.form-group.form-group-lg.label-floating.is-focused label.control-label,
.form-group.form-group-lg.label-floating:not(.is-empty) label.control-label {
top: -32px;
font-size: 14px;
line-height: 0.99999998;
}
.form-group .help-block {
position: absolute;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5483,6 +5483,8 @@ fieldset[disabled] .form-control {
.form-group.label-floating.is-focused label.control-label,
.form-group.label-floating:not(.is-empty) label.control-label {
top: -30px;
font-size: 12px;
line-height: 1.07142857;
}
.form-group.form-group-sm {
margin: 21px 0 0 0;
@ -5518,6 +5520,8 @@ fieldset[disabled] .form-control {
.form-group.form-group-sm.label-floating.is-focused label.control-label,
.form-group.form-group-sm.label-floating:not(.is-empty) label.control-label {
top: -25px;
font-size: 9px;
line-height: 1.125;
}
.form-group.form-group-lg {
margin: 30px 0 0 0;
@ -5553,6 +5557,8 @@ fieldset[disabled] .form-control {
.form-group.form-group-lg.label-floating.is-focused label.control-label,
.form-group.form-group-lg.label-floating:not(.is-empty) label.control-label {
top: -32px;
font-size: 14px;
line-height: 0.99999998;
}
.form-group .help-block {
position: absolute;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -117,6 +117,9 @@
&.label-floating:not(.is-empty) {
label.control-label {
top: @label-top;
// must repeat because the selector above is more specific than the general label sizing
font-size: @static-font-size;
line-height: @static-line-height;
}
}
}