1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-20 04:11:39 +02:00

Fixes #5912: User correct selector for form field states.

Previously, we were using a generic label selector, but as this was changed in the main forms awhile back, we need to change it here.
This commit is contained in:
Mark Otto
2012-11-16 01:16:27 -08:00
parent 5702e1be6e
commit 88c2497368
2 changed files with 5 additions and 5 deletions

View File

@@ -1432,7 +1432,7 @@ input[type="checkbox"][readonly] {
background-color: transparent; background-color: transparent;
} }
.control-group.warning > label, .control-group.warning .control-label,
.control-group.warning .help-block, .control-group.warning .help-block,
.control-group.warning .help-inline { .control-group.warning .help-inline {
color: #c09853; color: #c09853;
@@ -1471,7 +1471,7 @@ input[type="checkbox"][readonly] {
border-color: #c09853; border-color: #c09853;
} }
.control-group.error > label, .control-group.error .control-label,
.control-group.error .help-block, .control-group.error .help-block,
.control-group.error .help-inline { .control-group.error .help-inline {
color: #b94a48; color: #b94a48;
@@ -1510,7 +1510,7 @@ input[type="checkbox"][readonly] {
border-color: #b94a48; border-color: #b94a48;
} }
.control-group.success > label, .control-group.success .control-label,
.control-group.success .help-block, .control-group.success .help-block,
.control-group.success .help-inline { .control-group.success .help-inline {
color: #468847; color: #468847;
@@ -1549,7 +1549,7 @@ input[type="checkbox"][readonly] {
border-color: #468847; border-color: #468847;
} }
.control-group.info > label, .control-group.info .control-label,
.control-group.info .help-block, .control-group.info .help-block,
.control-group.info .help-inline { .control-group.info .help-inline {
color: #3a87ad; color: #3a87ad;

View File

@@ -163,7 +163,7 @@
// Mixin for form field states // Mixin for form field states
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) { .formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
// Set the text color // Set the text color
> label, .control-label,
.help-block, .help-block,
.help-inline { .help-inline {
color: @textColor; color: @textColor;