diff options
| author | Mark Otto <[email protected]> | 2012-01-07 04:28:30 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-07 04:28:30 -0800 |
| commit | 7728f7b8241dc43292c3f897fdfe08a13f58e40b (patch) | |
| tree | 523cec3561fb426de1f9df6fd592ceaa841fb6c9 /lib | |
| parent | b6d50c892d6ae8ed42ff0bfbba4252c7dc47417e (diff) | |
| download | bootstrap-7728f7b8241dc43292c3f897fdfe08a13f58e40b.tar.xz bootstrap-7728f7b8241dc43292c3f897fdfe08a13f58e40b.zip | |
add html5 invalid state for super fancy errors via browser
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/forms.less | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/forms.less b/lib/forms.less index f0b7c2ea6..19e2aa8bc 100644 --- a/lib/forms.less +++ b/lib/forms.less @@ -299,6 +299,19 @@ textarea[readonly] { .formFieldState(#468847, #57a957, lighten(#57a957, 30%)); } +// HTML5 invalid states +// Shares styles with the .control-group.error above +input:invalid, +textarea:invalid, +select:invalid { + color: #b94a48; + border-color: #ee5f5b; + &:focus { + border-color: darken(#ee5f5b, 10%); + .box-shadow(0 0 6px lighten(#ee5f5b, 20%)); + } +} + // FORM ACTIONS |
