A mixin for stylus to style placeholder content on input html elements
placeholder()
&::-webkit-input-placeholder
{block}
&:-moz-placeholder
{block}
&::-moz-placeholder
{block}
&:-ms-input-placeholder
{block}
ps: DONT FORGET TO ADD THE "+" SIGN BEFORE THE MIXIN NAME!!!
.contact
input
+placeholder()
color #fff
The reason behind + sign: http://stylus-lang.com/docs/mixins.html#block-mixins
.contact input::-webkit-input-placeholder {
color: #fff;
}
.contact input:-moz-placeholder {
color: #fff;
}
.contact input::-moz-placeholder {
color: #fff;
}
.contact input:-ms-input-placeholder {
color: #fff;
}