Created
November 30, 2016 17:21
-
-
Save carolina-vallejo/7556b82d4a4eb62ad07cd3486c932ec7 to your computer and use it in GitHub Desktop.
input placeholder crossbrowser mixin sass
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
@mixin placeholder { | |
&::-webkit-input-placeholder { | |
@content; | |
} | |
&:-moz-placeholder { | |
/* Firefox 18- */ | |
@content; | |
} | |
&::-moz-placeholder { | |
/* Firefox 19+ */ | |
@content; | |
} | |
&:-ms-input-placeholder { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment