我可以用screen.css中的以下代码将整个蓝图css框架加载到我的项目中:
@import "compass";
@import "blueprint";
@include blueprint;
然而,我只想包括特定的组件,如"蓝图/网格"one_answers"蓝图/按钮":
@import "compass";
@import "blueprint/grid";
@import "blueprint/buttons";
@include blueprint;
当我试图只导入这些片段时,我会得到以下错误:
error resources/sass/screen.scss (Line 12: Undefined mixin 'blueprint'.)
有人知道如何包括蓝图的一部分,但不是全部吗?
blueprint mixin位于根样式表中。这意味着你所做的一切都是正确的,但你仍然需要做@import"blueprint"来获得主要的mixin。
@import "compass";
@import "blueprint";
@import "blueprint/grid";
@import "blueprint/buttons";
@include blueprint;