I have this SASS code:
.card.job.card-border-color-6:hover .button {
background: #ffdedb;
transition: background 400ms ease-in-out;
}
.card.job.card-border-color-6 .button:hover {
background: hsl(14, 100%, 53%);
color: white;
transition: background 400ms ease-in-out;
}
But I want to make it generic, with some kind of wildcard syntax, something like this:
.card.job.card-border-color-*:hover .button {
background: #ffdedb;
transition: background 400ms ease-in-out;
}
.card.job.card-border-color-* .button:hover {
background: hsl(14, 100%, 53%);
color: white;
transition: background 400ms ease-in-out;
}
However this syntax is not correct, what is the correct way in Sass to write this code to make it generic?