Last active
April 4, 2016 10:05
-
-
Save paulmelero/5f59214dcd3721f2a0aa to your computer and use it in GitHub Desktop.
Styling placeholders Cross Browser SCSS mixin
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
// Usage example: | |
// input[type="text"] { | |
// @include placeholders { | |
// color: currentColor; | |
// } | |
// } | |
// | |
// See: https://css-tricks.com/almanac/selectors/p/placeholder/ | |
@mixin placeholders { | |
&::-webkit-input-placeholder { @content; } | |
&:-moz-placeholder { @content; } | |
&::-moz-placeholder { /*opacity: 1;*/ @content; } | |
&:-ms-input-placeholder{ @content; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment