Answer the question
In order to leave comments, you need to log in
CSS in SASS. How would this construct look like in SASS?
How would this construct look like in SASS?
Does it read like this? When hovering over a pseudo-element, toggle the radio input to - selected.
input[type="radio"]:checked + span::before {
background-position: 0 -12px;
}
.checkbox[type="checkbox"] + span::before {
background-position: 0 -24px;
}
input[type="checkbox"]:checked + span::before {
background-position: 0 -36px;
}
Answer the question
In order to leave comments, you need to log in
input[type="radio"]:checked
& + span
&::before
background-position: 0 -12px
.checkbox[type="checkbox"]
& + span
&::before
background-position: 0 -24px
input[type="checkbox"]:checked
& + span
&::before
background-position: 0 -36px
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question