About The Nesting At-Rule: @nest
.foo {
color: red;
@nest .parent & {
color: blue;
}
}
/* equivalent to
.foo { color: red; }
.parent .foo { color: blue; }
*/
if .parent have three child selectors ".foo",".foo2",".foo3",I must write "@nest .parent &" in every child selectors,this is very tedious