aboutsummaryrefslogtreecommitdiff
path: root/lib/forms.less
diff options
context:
space:
mode:
Diffstat (limited to 'lib/forms.less')
-rw-r--r--lib/forms.less13
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