I'm new to sass and looking for the syntax to specify a hierarchical relationship with code in the child class definition.
Currently I have:
.my-option
color: #7E57EE
I'd like my sass to compile to the following CSS:
.my-option
color: #7E57EE
.is-active .my-option
background-color: #BADA55
I know two ways to accomplish this:
//More verbose than I'd like (and just plain css...)
.my-option
color: #7E57EE
.is-active .my-option
background-color: #BADA55
//Too generic because...don't want the is-active definition to be cluttered
.my-option
color: #7E57EE
.is-active
.my-option
background-color: #BADA55