Skip to content

Instantly share code, notes, and snippets.

@zuDevonRW
Created March 10, 2015 19:38
Show Gist options
  • Save zuDevonRW/1b0cfb6dcefe445ae8ac to your computer and use it in GitHub Desktop.
Save zuDevonRW/1b0cfb6dcefe445ae8ac to your computer and use it in GitHub Desktop.
Generate placeholder psuedo-elements
=input-placeholder
&.placeholder
@content
&:-moz-placeholder
@content
&::-moz-placeholder
@content
&:-ms-input-placeholder
@content
&::-webkit-input-placeholder
@content
// example usage
input
+input-placeholder
color: red
// generates
input.placeholder
color: red
input:-moz-placeholder
color: red
input::-moz-placeholder
color: red
input:-ms-input-placeholder
color: red
input::-webkit-input-placeholder
color: red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment