Created
March 21, 2014 22:36
-
-
Save chrisvoncsefalvay/9697918 to your computer and use it in GitHub Desktop.
Sass snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.validationclass | |
// add invalidated style here | |
display: none | |
& + input:focus | |
display: block | |
& + input:focus:required:valid | |
// add validated style | |
&.invalid + input:focus:required:valid | |
display: none | |
&.invalid + input:focus:required:invalid | |
display: none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment