Created
April 16, 2011 08:43
-
-
Save jhilden/922985 to your computer and use it in GitHub Desktop.
A SASS mixin to set all the different (pseudo-) classes to style the color of placeholder text in e.g. an input field. What other styles besides color would be interesting?
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 input-placeholder($color) | |
&.placeholder | |
color: $color | |
&:-moz-placeholder | |
color: $color | |
&::-webkit-input-placeholder | |
color: $color |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@imjared: check out this fork: https://gist.github.com/1071716 that should work for customizing any property of the input field