Created
March 10, 2015 19:38
-
-
Save zuDevonRW/1b0cfb6dcefe445ae8ac to your computer and use it in GitHub Desktop.
Generate placeholder psuedo-elements
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
=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