2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-27 14:46:01 +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
+11 -1
View File
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Sat Jan 7 04:20:37 PST 2012
* Date: Sat Jan 7 04:26:09 PST 2012
*/
html, body {
margin: 0;
@@ -824,6 +824,16 @@ textarea[readonly] {
background-color: #bcddbc;
border-color: #468847;
}
input:invalid, textarea:invalid, select:invalid {
color: #b94a48;
border-color: #ee5f5b;
}
input:invalid:focus, textarea:invalid:focus, select:invalid:focus {
border-color: #e9322d;
-webkit-box-shadow: 0 0 6px #f8b9b7;
-moz-box-shadow: 0 0 6px #f8b9b7;
box-shadow: 0 0 6px #f8b9b7;
}
.form-actions {
padding: 17px 20px 18px;
margin-top: 18px;