【问题标题】:How do I install Susy in my Rails App?如何在我的 Rails 应用程序中安装 Susy?
【发布时间】:2016-01-13 19:47:49
【问题描述】:

到目前为止,我在我的 Gemfile 中包含了

# Gemfile gem 'sass-rails', '~> 5.0' gem 'susy'

# config/application.rb require 'susy'

我运行“捆绑安装”没有错误。现在我正在尝试编写普通的 Susy 并设置应用程序:

$susy: ( columns: 12, /* we want our page to have 12 columns */ gutters: 3/4, /* space between columns with be 3/4 of a column */ math: fluid, output: float, gutter-position: inside, );

现在,当我尝试调用 Susy 方法来设置列时,我遇到了错误!我在一个元素上尝试了一个简单的列:

.example{ @include span(3 of 12) ;}

有什么想法吗?我在安装过程中遗漏了什么吗?

【问题讨论】:

    标签: css sass susy-compass susy susy-sass


    【解决方案1】:

    在调用 Susy 方法之前,您需要在 Sass 文件中的某个位置@import 'susy';

    【讨论】:

    • 哇 - 很荣幸得到您的答复!菜鸟失误。感谢您出色的网格系统和完美的答案!
    • 很高兴你喜欢它。干杯!
    猜你喜欢
    • 1970-01-01
    • 2017-08-04
    • 2018-01-06
    • 1970-01-01
    • 1970-01-01
    • 2012-12-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多