#box:hover::placeholder {
color:red;
}
&:hover
&::placeholder
color: red
&:hover::placeholder
color: red
@mixin placeholder-color($color)
{
&::-webkit-input-placeholder
{
/* WebKit, Blink, Edge */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
&:-moz-placeholder
{
/* Mozilla Firefox 4 to 18 */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
&::-moz-placeholder
{
/* Mozilla Firefox 19+ */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
&:-ms-input-placeholder
{
/* Internet Explorer 10-11 */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
&::-ms-input-placeholder
{
/* Microsoft Edge */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
&::placeholder
{
/* Most modern browsers support this now. */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
}
.link {
@include placeholder-color(#ccc);
&:hover {
@include placeholder-color(#000);
}
}