我使用compass和blueprint已经有一段时间了,有一件事我不明白,那就是为什么它会生成所有基本的blueprint css类。如下所示:
#container .span-3 { width: 110px; }
#container .span-4 { width: 150px; }我在创建compass项目时指定了--using blueprint/semantic,并且我的源代码中没有@include blueprint。为什么要生成这些类,如何让compass不包含它们?
发布于 2011-08-18 11:00:30
我试着重现你的问题,但我做不到。以下是我所做的和我得到的:
compass create my_project --using blueprint/semantic生成的screen.scss文件似乎希望您@import "blueprint",因为它最初包含以下行:
// Import all the default blueprint modules so that we can access their mixins.
@import "blueprint";生成的screen.css文件不包含.span-x anywhere,并且#container出现的唯一位置是body.two-col #container {。
我修改了screen.scss文件并重新编译。没有变化-- screen.css中没有显示非语义类。
希望这能帮到你。
(使用指南针版本0.11.5、Ruby1.8.7、FreeBSD 8.2进行测试)
https://stackoverflow.com/questions/7036357
复制相似问题