Skip to content

Instantly share code, notes, and snippets.

@ralexandr
Last active October 19, 2016 09:15
Show Gist options
  • Save ralexandr/e84a162d10b93ec0fb52f606cb5ab5c5 to your computer and use it in GitHub Desktop.
Save ralexandr/e84a162d10b93ec0fb52f606cb5ab5c5 to your computer and use it in GitHub Desktop.
SASS: Placeholder mixin
/*--------------------------------
Form input placeholder text
example:
input,
textarea {
@include input-placeholder {
color: $grey;
}
}
*/
@mixin input-placeholder {
&.placeholder { @content; }
&:-moz-placeholder { @content; }
&::-moz-placeholder { @content; }
&:-ms-input-placeholder { @content; }
&::-webkit-input-placeholder { @content; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment