【问题标题】:Compass + Blueprint non semantic classesCompass + Blueprint 非语义类
【发布时间】:2011-10-25 13:37:09
【问题描述】:

我已经使用带有蓝图的指南针有一段时间了,我不明白为什么它会生成所有基本的蓝图 css 类。像这些:

#container .span-3 { width: 110px; }
#container .span-4 { width: 150px; }

我在创建指南针项目时指定了--using blueprint/semantic,但我的源代码中没有@include blueprint。为什么会生成这些类以及如何让指南针不包含它们?

【问题讨论】:

    标签: css compass-sass sass blueprint-css


    【解决方案1】:

    我试图重现您的问题,但我不能。以下是我所做的和得到的:

    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,而#container出现的唯一地方是body.two-col #container {

    我修改了 screen.scss 文件并重新编译。没有变化——screen.css 中没有出现非语义类。

    希望这会有所帮助...

    (使用 Compass 版本 0.11.5、Ruby 1.8.7、FreeBSD 8.2 测试)

    【讨论】:

      猜你喜欢
      • 2014-02-21
      • 2011-09-04
      • 1970-01-01
      • 2011-06-23
      • 2023-03-21
      • 1970-01-01
      • 1970-01-01
      • 2011-02-23
      • 2013-05-10
      相关资源
      最近更新 更多