在SASS中,是否有方法声明引用块的子类';谁的父母?

在SASS中,是否有方法声明引用块的子类';谁的父母?,sass,Sass,我正在寻找一种方法来引用我目前正在编写声明的块的父类的某个子类 让我举例说明 而不是: .label { @extend .not-selectable; display: inline-block; line-height: 22px; } &.active .label { background-color: #eee; } .label { @extend .not-selectable; display: inline-bloc

我正在寻找一种方法来引用我目前正在编写声明的块的父类的某个子类

让我举例说明

而不是:

.label {
    @extend .not-selectable;
    display: inline-block;
    line-height: 22px;
}
&.active .label {
    background-color: #eee;
}
.label {
    @extend .not-selectable;
    display: inline-block;
    line-height: 22px;
    << &.active {
        background-color: #eee;
    }
}
然后:

.label {
    @extend .not-selectable;
    display: inline-block;
    line-height: 22px;
}
&.active .label {
    background-color: #eee;
}
.label {
    @extend .not-selectable;
    display: inline-block;
    line-height: 22px;
    << &.active {
        background-color: #eee;
    }
}
我想写一些像这样的东西:

.label {
    @extend .not-selectable;
    display: inline-block;
    line-height: 22px;
}
&.active .label {
    background-color: #eee;
}
.label {
    @extend .not-selectable;
    display: inline-block;
    line-height: 22px;
    << &.active {
        background-color: #eee;
    }
}
.label{
@扩展。不可选择;
显示:内联块;
线高:22px;
你能参考一下吗。