【发布时间】:2013-08-31 11:35:45
【问题描述】:
我想知道为什么我不能使用 LESS 在 twitter 引导程序中设置变量。我在具有 bootstrap_and_overrides.css.less 文件的 Rails 上使用 ruby。它有以下语句
// Your custom LESS stylesheets goes here
//
// Since bootstrap was imported above you have access to its mixins which
// you may use and inherit here
//
// If you'd like to override bootstrap's own variables, you can do so here as well
// See http://twitter.github.com/bootstrap/less.html for their names and documentation
//
// Example:
// @linkColor: #ff0000;
所以我的理解是我可以在这里设置我的变量。所以我设置了
@black: #333;
然后尝试在我的 application.css 调用 @black 文件中使用它,但它不起作用?即不渲染#333。
我理解错了吗?我的所有变量和 css 样式是否都包含在引导程序和覆盖文件中?
任何建议表示赞赏
【问题讨论】:
标签: css twitter-bootstrap less