What is and how to use the '&' operator in SASS
&
operator in SASS?// plain css:
.some-class.another-class {}
// in SASS
.some-class {
&.another.class {}
}
&
when nesting parent and child elements:// in SASS
.parent {
.child {}
}
// can also be written as:
.parent {
& .child {}
// notice the space after the ampersand!!!
}