Created
May 14, 2012 12:40
-
-
Save bchapuis/2693725 to your computer and use it in GitHub Desktop.
Less: mixin for placeholder color
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
.placeholder(@color) { | |
&::-webkit-input-placeholder { | |
color: @color; | |
} | |
&:-moz-placeholder { | |
color: @color; | |
} | |
} |
Not under IE 10. You could add these two:
&::-moz-placeholder { /* Firefox 19+ */
color: @color;
}
&:-ms-input-placeholder { /* IE 10+ */
color: @color;
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does it work with IE ?