I write mobile websites and I look after him with sass.
I would like to change the label color of a textinput object, but I cannot do this.
This is mixin for placeholder
@mixin placeholder($color) { ::-webkit-input-placeholder {color: $color} :-moz-placeholder {color: $color} ::-moz-placeholder {color: $color} :-ms-input-placeholder {color: $color} }
And then I use it in the class
.input-class { @include placeholder(
Finally, set the class to input
<input class="input-class" ...>
But nothing happens. Also, my IDE fixed an error on mixins lines that tell me: "Unknown pseudo-sector -webkit-input-placeholder" and chrome don't seem to recognize this tag.
How can I change the color of the placeholder? Regardless of whether the response is in sass or css.
Thanks in advance.
html css placeholder sass webkit
guest9119
source share