Simple Mixin For Compass Placeholder Text
- Add the .input-placeholder mixin from _placeholderText.scss to your stylesheet (or reference it in an @import statement)
- In your stylesheet, call the .input-placeholder {} mixin anywhere you want to style your placeholder text
input {
@include input-placeholder {
color: #ccc;
background: #F00;
}
}
input.placeholder {
color: #ccc;
background: #F00;
}
input:-moz-placeholder {
color: #ccc;
background: #F00;
}
input::-moz-placeholder {
color: #ccc;
background: #F00;
}
input:-ms-input-placeholder {
color: #ccc;
background: #F00;
}
input::-webkit-input-placeholder {
color: #ccc;
background: #F00;
}