我想自定义引导源代码,以便获得更多w-XX类。我想扩展它,以便我同时拥有w-40和w-60。我在文档中看到我必须修改$sizes变量。
所以在我的 custom.scss 中,我就是这样做的:
$sizes: (
25: 25%,
40: 40%,
50: 50%,
60: 60%,
75: 75%,
100: 100%,
auto: auto
);
然后我编译我的 scss 文件,但没有生成我想要的新类。我错过了什么?
您需要bootstrap.scss
在它之后导入。
$sizes: (
25: 25%,
40: 40%,
50: 50%,
60: 60%,
75: 75%,
100: 100%,
auto: auto
);
@import "~bootstrap/scss/bootstrap";
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句