Permalink
Browse files

added default background colors for input:valid and input:invalid

  • Loading branch information...
1 parent 7c63a52 commit 34c0003bae9fd8af82a88a35031458606a854206 James A. Rosen committed with paulirish Aug 20, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 css/style.css
View
@@ -144,6 +144,9 @@ input[type="checkbox"] { vertical-align: bottom; }
/* hand cursor on clickable input elements */
label, input[type=button], input[type=submit], button { cursor: pointer; }
+/* colors for form validity */
+input:invalid { background-color: #f0dddd; }
+input:valid { background-color: #ddf0dd; }
/* These selection declarations have to be separate.
No text-shadow: twitter.com/miketaylr/status/12228805301

0 comments on commit 34c0003

Please sign in to comment.