Just chain the class selector like you would with a pseudo-class:
ul {
li {
&.active {
}
}
}
You can do this with any one or more simple selectors that isn't a type or *
selector, as well as with a pseudo-element. The &
can occur in most places where a selector fragment can be injected into another without causing a syntax error; the examples given in the documentation with pseudo-classes and pseudo-elements are not the only ones. The documentation has an entire section on using &
which can be found here.