Created
February 13, 2014 16:08
-
-
Save DougSisk/8977964 to your computer and use it in GitHub Desktop.
Saas placeholder mixin
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
@mixin placeholder { | |
&::-webkit-input-placeholder { | |
@content; | |
} | |
&:-moz-placeholder { /* Firefox 18- */ | |
@content; | |
} | |
&::-moz-placeholder { /* Firefox 19+ */ | |
@content; | |
} | |
&:-ms-input-placeholder { | |
@content; | |
} | |
&.placeholder { /* for use with jQuery placeholder plugin: https://github.com/mathiasbynens/jquery-placeholder */ | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment