Skip to content

Instantly share code, notes, and snippets.

@chrisvoncsefalvay
Created March 21, 2014 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisvoncsefalvay/9697918 to your computer and use it in GitHub Desktop.
Save chrisvoncsefalvay/9697918 to your computer and use it in GitHub Desktop.
Sass snippets
.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