Kevin Ross 2015-11-19 11:07:47 -06:00
parent 20e2de04d3
commit 755a202148
10 changed files with 50 additions and 16 deletions

View File

@ -25281,9 +25281,14 @@ fieldset[disabled] .form-group .form-control {
font-size: 16px;
line-height: 1.42857143;
}
.form-group.label-static ~ label.control-label,
.form-group.label-floating.is-focused ~ label.control-label,
.form-group.label-floating:not(.is-empty) ~ label.control-label,
.form-group.label-floating input.form-control:-webkit-autofill ~ label.control-label,
.form-group.label-static label.control-label,
.form-group.label-floating.is-focused label.control-label,
.form-group.label-floating:not(.is-empty) label.control-label {
.form-group.label-floating:not(.is-empty) label.control-label,
.form-group.label-floating input.form-control:-webkit-autofill label.control-label {
top: -30px;
left: 0;
font-size: 12px;
@ -25319,9 +25324,14 @@ fieldset[disabled] .form-group .form-control {
font-size: 11px;
line-height: 1.5;
}
.form-group.form-group-sm.label-static ~ label.control-label,
.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,
.form-group.form-group-sm.label-floating input.form-control:-webkit-autofill ~ label.control-label,
.form-group.form-group-sm.label-static label.control-label,
.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 {
.form-group.form-group-sm.label-floating:not(.is-empty) label.control-label,
.form-group.form-group-sm.label-floating input.form-control:-webkit-autofill label.control-label {
top: -25px;
left: 0;
font-size: 9px;
@ -25357,9 +25367,14 @@ fieldset[disabled] .form-group .form-control {
font-size: 18px;
line-height: 1.3333333;
}
.form-group.form-group-lg.label-static ~ label.control-label,
.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,
.form-group.form-group-lg.label-floating input.form-control:-webkit-autofill ~ label.control-label,
.form-group.form-group-lg.label-static label.control-label,
.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 {
.form-group.form-group-lg.label-floating:not(.is-empty) label.control-label,
.form-group.form-group-lg.label-floating input.form-control:-webkit-autofill label.control-label {
top: -32px;
left: 0;
font-size: 14px;

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

21
dist/css/material.css vendored
View File

@ -5597,9 +5597,14 @@ fieldset[disabled] .form-group .form-control {
font-size: 16px;
line-height: 1.42857143;
}
.form-group.label-static ~ label.control-label,
.form-group.label-floating.is-focused ~ label.control-label,
.form-group.label-floating:not(.is-empty) ~ label.control-label,
.form-group.label-floating input.form-control:-webkit-autofill ~ label.control-label,
.form-group.label-static label.control-label,
.form-group.label-floating.is-focused label.control-label,
.form-group.label-floating:not(.is-empty) label.control-label {
.form-group.label-floating:not(.is-empty) label.control-label,
.form-group.label-floating input.form-control:-webkit-autofill label.control-label {
top: -30px;
left: 0;
font-size: 12px;
@ -5635,9 +5640,14 @@ fieldset[disabled] .form-group .form-control {
font-size: 11px;
line-height: 1.5;
}
.form-group.form-group-sm.label-static ~ label.control-label,
.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,
.form-group.form-group-sm.label-floating input.form-control:-webkit-autofill ~ label.control-label,
.form-group.form-group-sm.label-static label.control-label,
.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 {
.form-group.form-group-sm.label-floating:not(.is-empty) label.control-label,
.form-group.form-group-sm.label-floating input.form-control:-webkit-autofill label.control-label {
top: -25px;
left: 0;
font-size: 9px;
@ -5673,9 +5683,14 @@ fieldset[disabled] .form-group .form-control {
font-size: 18px;
line-height: 1.3333333;
}
.form-group.form-group-lg.label-static ~ label.control-label,
.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,
.form-group.form-group-lg.label-floating input.form-control:-webkit-autofill ~ label.control-label,
.form-group.form-group-lg.label-static label.control-label,
.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 {
.form-group.form-group-lg.label-floating:not(.is-empty) label.control-label,
.form-group.form-group-lg.label-floating input.form-control:-webkit-autofill label.control-label {
top: -32px;
left: 0;
font-size: 14px;

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

@ -62,10 +62,12 @@
}
}
// static or focused floating labels
// static, focused, or autofill floating labels
&.label-static,
&.label-floating.is-focused,
&.label-floating:not(.is-empty) {
&.label-floating:not(.is-empty),
&.label-floating input.form-control:-webkit-autofill {
& ~ label.control-label, // #559 webkit chrome autofill `.form-group.label-floating input.form-control:-webkit-autofill ~ label.control-label`
label.control-label {
top: @label-top;
left: 0;

View File

@ -65,10 +65,12 @@
}
}
// static or focused floating labels
// static, focused, or autofill floating labels
&.label-static,
&.label-floating.is-focused,
&.label-floating:not(.is-empty) {
&.label-floating:not(.is-empty),
&.label-floating input.form-control:-webkit-autofill {
& ~ label.control-label, // #559 webkit chrome autofill - input.form-control:-webkit-autofill ~ label.control-label
label.control-label {
top: $label-top;
left: 0;