2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

add html5 invalid state for super fancy errors via browser

This commit is contained in:
Mark Otto
2012-01-07 04:28:30 -08:00
parent b6d50c892d
commit 7728f7b824
3 changed files with 25 additions and 1 deletions
+13
View File
@@ -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