mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Merge pull request #5786 from cvrebert/2.2.2-wip
fixes #5494: style invalid fields as invalid regardless of required-ness
This commit is contained in:
commit
f3b3814606
12
docs/assets/css/bootstrap.css
vendored
12
docs/assets/css/bootstrap.css
vendored
@ -1588,16 +1588,16 @@ input[type="checkbox"][readonly] {
|
|||||||
border-color: #3a87ad;
|
border-color: #3a87ad;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:focus:required:invalid,
|
input:focus:invalid,
|
||||||
textarea:focus:required:invalid,
|
textarea:focus:invalid,
|
||||||
select:focus:required:invalid {
|
select:focus:invalid {
|
||||||
color: #b94a48;
|
color: #b94a48;
|
||||||
border-color: #ee5f5b;
|
border-color: #ee5f5b;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:focus:required:invalid:focus,
|
input:focus:invalid:focus,
|
||||||
textarea:focus:required:invalid:focus,
|
textarea:focus:invalid:focus,
|
||||||
select:focus:required:invalid:focus {
|
select:focus:invalid:focus {
|
||||||
border-color: #e9322d;
|
border-color: #e9322d;
|
||||||
-webkit-box-shadow: 0 0 6px #f8b9b7;
|
-webkit-box-shadow: 0 0 6px #f8b9b7;
|
||||||
-moz-box-shadow: 0 0 6px #f8b9b7;
|
-moz-box-shadow: 0 0 6px #f8b9b7;
|
||||||
|
@ -366,9 +366,9 @@ input[type="checkbox"][readonly] {
|
|||||||
|
|
||||||
// HTML5 invalid states
|
// HTML5 invalid states
|
||||||
// Shares styles with the .control-group.error above
|
// Shares styles with the .control-group.error above
|
||||||
input:focus:required:invalid,
|
input:focus:invalid,
|
||||||
textarea:focus:required:invalid,
|
textarea:focus:invalid,
|
||||||
select:focus:required:invalid {
|
select:focus:invalid {
|
||||||
color: #b94a48;
|
color: #b94a48;
|
||||||
border-color: #ee5f5b;
|
border-color: #ee5f5b;
|
||||||
&:focus {
|
&:focus {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user