1
添加一个“修改”类的元素鉴于这种SCSS如何SCSS
.root {
color: red;
&-child {
color: blue;
small & {
font-size: 80%;
}
}
}
这是CSS,我得到:
.root {
color: red;
}
.root-child {
color: blue;
}
small .root-child {
font-size: 80%;
}
我想在small
风格.root-child
不同所以我需要的规则是:
small.root-child {
font-size: 80%;
}
(注意small
之后没有空格)
我该怎么做?