2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-27 14:46:01 +03:00

Form validation and horizontal row update

* changed .row-label to .control-label as used elsewhere already
* changed .formFieldState mixin to .form-field-validation
This commit is contained in:
Mark Otto
2013-05-16 20:17:42 -07:00
parent 55a1416789
commit 1983ca03ec
4 changed files with 12 additions and 12 deletions
+5 -5
View File
@@ -268,15 +268,15 @@ input[type="checkbox"] {
// Warning
.has-warning {
.formFieldState(@state-warning-text, @state-warning-text, @state-warning-bg);
.form-field-validation(@state-warning-text, @state-warning-text, @state-warning-bg);
}
// Error
.has-error {
.formFieldState(@state-danger-text, @state-danger-text, @state-danger-bg);
.form-field-validation(@state-danger-text, @state-danger-text, @state-danger-bg);
}
// Success
.has-success {
.formFieldState(@state-success-text, @state-success-text, @state-success-bg);
.form-field-validation(@state-success-text, @state-success-text, @state-success-bg);
}
// HTML5 invalid states
@@ -443,14 +443,14 @@ select:focus:invalid {
.row + .row {
margin-top: 15px;
}
.row-label {
.control-label {
padding-top: 6px;
}
}
// Only right aline form labels here when the columns stop stacking
@media (min-width: 768px) {
.form-horizontal .row-label {
.form-horizontal .control-label {
text-align: right;
}
}