Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Mixin for styling the placeholder attribute on form fields
// Usage
// @include placeholder {
// font-style:italic;
// color: white;
// font-weight:100;
// }
@mixin placeholder {
::-webkit-input-placeholder {@content}
:-moz-placeholder {@content}
::-moz-placeholder {@content}
:-ms-input-placeholder {@content}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment