Last active
August 29, 2015 13:57
-
-
Save webinista/9792085 to your computer and use it in GitHub Desktop.
Clear placeholder input on focus using transparent keyword
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{ | |
&:focus::-webkit-input-placeholder{ | |
color: transparent; | |
} | |
&:focus::-moz-placeholder { | |
color: transparent; | |
} | |
&:focus:-ms-input-placeholder { | |
color: transparent; | |
} | |
&:focus:input-placeholder { | |
color: transparent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment