Trying to figure out what the & does in the below code?
.controls-container {
.flex-control-nav {
li a {
&.flex-active {
filter: none;
background: @color_links!important;
}
}
}
}
I know you can do something like &:hover, but not familiar with showing a class right after it?
It’s the same logic here: chaining the inner selector to whatever is represented by the outer selector. Pseudo-classes like
:hoverand classes like.flex-activebehave the same with&.Compiling that to CSS will result in a rule with the selector