Created
December 9, 2013 19:38
-
-
Save ryanburgess/7879429 to your computer and use it in GitHub Desktop.
Change the default input field placeholder text with the placeholder color SASS mixin.
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
// ----------------------------------------- | |
// Change placeholder text color | |
// ------------------------------------------- | |
// example: @include placeholder-color(#333); | |
@mixin placeholder-color($color){ | |
&.placeholder{ | |
color: $color | |
} | |
&:-moz-placeholder{ | |
color: $color | |
} | |
&::-webkit-input-placeholder{ | |
color: $color | |
} | |
&:-ms-input-placeholder{ | |
color: $color | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used this today - Thanks.