【发布时间】:2020-01-26 22:22:42
【问题描述】:
我知道标题不是很具有描述性,所以我将展示一个我需要的行为示例:
输入
@mixin superScopeMixin {
/* ... */
}
.one {
superScopeMixin {
.two {
.three {
/* ... */
}
}
}
}
输出
.one.two .three,
.one .two .three {
/* ... */
}
我希望选择器的前缀为“带空格”和“不带空格”。这可能吗?我可以使用 Less、Sass 或 Stylus。 谢谢!
【问题讨论】:
-
为什么不将
&选择器也添加到.two...例如。&.two, .two { .three { } }?