Skip to content

Instantly share code, notes, and snippets.

@alexandr-kazakov
Created July 18, 2016 08:33
Show Gist options
  • Save alexandr-kazakov/d8c3266aac7a5dcc963072edbdbf30f2 to your computer and use it in GitHub Desktop.
Save alexandr-kazakov/d8c3266aac7a5dcc963072edbdbf30f2 to your computer and use it in GitHub Desktop.
body input:focus:required:invalid,
body textarea:focus:required:invalid {
color: red;
box-shadow: 0 0 10px #ff6347;
border: 3px solid #ff6347}
body input:required:valid,
body textarea:required:valid {
color: green;
box-shadow: 0 0 10px green;
border: 3px solid green}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment