Created
April 22, 2013 12:33
-
-
Save tarolandia/5434575 to your computer and use it in GitHub Desktop.
Sass: mixin that let you change placeholder font color.
This file contains hidden or 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-color($color) { | |
&::-webkit-input-placeholder { /* WebKit browsers */ | |
color: $color; | |
} | |
&:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | |
color: $color; | |
} | |
&::-moz-placeholder { /* Mozilla Firefox 19+ */ | |
color: $color; | |
} | |
&:-ms-input-placeholder { /* Internet Explorer 10+ */ | |
color: $color; | |
} | |
} |
Awesome! I was looking around and no other code worked!
Works like a charm 🌟
This works great!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, dude. very helpful!