【问题标题】:Getting compass blueprint and sass to work in ruby on rails让指南针蓝图和 sass 在 ruby​​ on rails 中工作
【发布时间】:2011-05-14 03:00:52
【问题描述】:

我已经建立了一个新项目并使用 compass 来生成蓝图样式表。现在我的 screen.scss 中有以下代码

body.bp {
  @include blueprint-typography(true);
  @include blueprint-utilities;
  @include blueprint-debug;
  @include blueprint-interaction;

    $font-color: #C6C6C6;
}

我文档中的字体没有改变。仅使用 color:#C6C6C6; 可以正常工作。我在这里错过了什么

【问题讨论】:

    标签: ruby-on-rails blueprint-css compass-sass


    【解决方案1】:

    $font-color 是一个变量,而不是颜色规范本身,所以它应该是这样的:

    $font-color: #C6C6C6;
    
    body.bp {
      @include blueprint-typography(true);
      @include blueprint-utilities;
      @include blueprint-debug;
      @include blueprint-interaction;
    
      color: $font-color;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-02-11
      • 1970-01-01
      • 2012-10-18
      • 1970-01-01
      • 2012-06-05
      • 1970-01-01
      • 2012-09-25
      相关资源
      最近更新 更多