Created
March 8, 2013 16:46
-
-
Save johnlindquist/5117860 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.container input:checked + label, | |
.container input:checked + label:hover{ | |
} |
Ah. Here we go:
.container {
input {
&:checked {
& + label,
& + label:hover {
color: red;
}
}
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could do this:
But that introduces some unnecessary repetition. Honestly, I might be inclined to keep your original example as-is, depending on the context.