无法让 twitter-bootstrap-rails mixin 工作
Can't get twitter-bootstrap-rails mixin to work
我在 app/assets/stylesheets/scaffolds.scss
中有以下 CSS 的片段:
.input-container {
@include make-lg-column(3);
}
加载页面时出现以下错误:
Undefined mixin 'make-lg-column'.
我在 app/assets/stylesheets/bootstrap_and_overrides.css.less
中有以下几行:
@import "twitter/bootstrap/variables.less";
@import "twitter/bootstrap/mixins.less";
这是我在 app/assets/stylesheets/application.css
中的内容:
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require bootstrap_and_overrides
*= require_tree .
*= require_self
*/
如有任何关于如何解决此问题的建议,我们将不胜感激。
我在 app/assets/stylesheets/scaffolds.scss
中有以下 CSS 的片段:
.input-container {
@include make-lg-column(3);
}
加载页面时出现以下错误:
Undefined mixin 'make-lg-column'.
我在 app/assets/stylesheets/bootstrap_and_overrides.css.less
中有以下几行:
@import "twitter/bootstrap/variables.less";
@import "twitter/bootstrap/mixins.less";
这是我在 app/assets/stylesheets/application.css
中的内容:
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require bootstrap_and_overrides
*= require_tree .
*= require_self
*/
如有任何关于如何解决此问题的建议,我们将不胜感激。