Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sass 使用引导5中的SCS导入间距(边距、填充等)_Sass_Bootstrap 5 - Fatal编程技术网

Sass 使用引导5中的SCS导入间距(边距、填充等)

Sass 使用引导5中的SCS导入间距(边距、填充等),sass,bootstrap-5,Sass,Bootstrap 5,我可能在这里遗漏了一些明显的东西——我正在尝试使用SCS编译我的引导程序,所以我可以选择我需要的文件。在我进入边距和填充类(如mt-0)之前,一切都很好。我以为这些是utilities.scs的一部分,但显然不是,我似乎无法找到它们。我是否遗漏了一个明显的包含 @import "../../node_modules/bootstrap/scss/functions"; @import "../../node_modules/bootstrap/scss/variab

我可能在这里遗漏了一些明显的东西——我正在尝试使用SCS编译我的引导程序,所以我可以选择我需要的文件。在我进入边距和填充类(如mt-0)之前,一切都很好。我以为这些是utilities.scs的一部分,但显然不是,我似乎无法找到它们。我是否遗漏了一个明显的包含

@import "../../node_modules/bootstrap/scss/functions";
@import "../../node_modules/bootstrap/scss/variables";
@import "../../node_modules/bootstrap/scss/mixins";
@import "../../node_modules/bootstrap/scss/utilities";


// Optional
@import "../../node_modules/bootstrap/scss/root";
@import "../../node_modules/bootstrap/scss/reboot";
@import "../../node_modules/bootstrap/scss/type";
@import "../../node_modules/bootstrap/scss/images";
@import "../../node_modules/bootstrap/scss/containers";
@import "../../node_modules/bootstrap/scss/grid";

边距和填充类(例如mt-0)的映射位于_utilities.scss[1]文件中,但它使用utilities/_api.scss[2]生成类,因此您需要在下面的实用程序导入中:

@import "../../node_modules/bootstrap/scss/utilities/api";
参考资料

[1] 实用程序文件()


[2] 实用程序API文件()

解决了这个问题-非常感谢:)