Skip to content

Instantly share code, notes, and snippets.

@erikpantzar
Created August 15, 2014 14:22
Show Gist options
  • Save erikpantzar/b6f988d114905f6b7cd8 to your computer and use it in GitHub Desktop.
Save erikpantzar/b6f988d114905f6b7cd8 to your computer and use it in GitHub Desktop.
sass mixin for input::placeholder style
// Mixin to fix all prefixed versions to style placeholder :)
// source https://github.com/michaelsacca/Compass-Placeholder-Text-Mixin
@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