在我style.less
的定义中,所有.element
嵌套在类元素中的类元素.group
都具有与 bootstrap-class 相同的属性.col-sm-6
。
不幸的是,我不能直接将类添加.col-sm-6
到元素中。
在该项目中,引导程序位于tapestry5/bootstrap/css/bootstrap-darkly.css
与我的style.less
. (如何)我也可以在我的style.css
? 我试过了:
@import (reference) "tapestry5/bootstrap/css/bootstrap-darkly.css";
.group .element {
.col-sm-6;
}
不幸的是,我得到了一个 Less4J 异常:
Could not find mixin named ".col-sm-6". - line 4 - position 3
是不可能将 CSS 用作 mixins,还是我的语法有问题?