Last active
October 19, 2016 09:15
-
-
Save ralexandr/e84a162d10b93ec0fb52f606cb5ab5c5 to your computer and use it in GitHub Desktop.
SASS: Placeholder 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
/*-------------------------------- | |
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