mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-24 03:40:10 +00:00
Set validation states also for addons
This commit is contained in:
parent
45c5b4e45c
commit
df5ddeb7cc
18
docs/assets/css/bootstrap.css
vendored
18
docs/assets/css/bootstrap.css
vendored
@ -1544,6 +1544,12 @@ fieldset[disabled] input[type="checkbox"] {
|
|||||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.has-warning .input-group-addon {
|
||||||
|
color: #c09853;
|
||||||
|
background-color: #fcf8e3;
|
||||||
|
border-color: #c09853;
|
||||||
|
}
|
||||||
|
|
||||||
.has-error .control-label {
|
.has-error .control-label {
|
||||||
color: #b94a48;
|
color: #b94a48;
|
||||||
}
|
}
|
||||||
@ -1561,6 +1567,12 @@ fieldset[disabled] input[type="checkbox"] {
|
|||||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.has-error .input-group-addon {
|
||||||
|
color: #b94a48;
|
||||||
|
background-color: #f2dede;
|
||||||
|
border-color: #b94a48;
|
||||||
|
}
|
||||||
|
|
||||||
.has-success .control-label {
|
.has-success .control-label {
|
||||||
color: #468847;
|
color: #468847;
|
||||||
}
|
}
|
||||||
@ -1578,6 +1590,12 @@ fieldset[disabled] input[type="checkbox"] {
|
|||||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.has-success .input-group-addon {
|
||||||
|
color: #468847;
|
||||||
|
background-color: #dff0d8;
|
||||||
|
border-color: #468847;
|
||||||
|
}
|
||||||
|
|
||||||
input:focus:invalid,
|
input:focus:invalid,
|
||||||
textarea:focus:invalid,
|
textarea:focus:invalid,
|
||||||
select:focus:invalid {
|
select:focus:invalid {
|
||||||
|
@ -486,4 +486,10 @@
|
|||||||
.box-shadow(@shadow);
|
.box-shadow(@shadow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Set validation states also for addons
|
||||||
|
.input-group-addon {
|
||||||
|
color: @text-color;
|
||||||
|
border-color: @border-color;
|
||||||
|
background-color: @background-color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user