I found this in a sass/scss
file of Bootstrap v4 :
.nav-pills {
.nav-link {
@include border-radius($nav-pills-border-radius);
&.active,
.show > & { /* <-- !!! */
color: $nav-pills-link-active-color;
background-color: $nav-pills-link-active-bg;
}
}
}
I know that &
is normally referred to the parent selector (direct):
.clasePadre {
&.claseHijo {
}
}
Equals .clasePadre.claseHijo
.
Then would it be in this case .show > &
equivalent to .show > .nav-pills .nav-link
?
That is: Is all parent selectors inherited with &
?