Ruby on rails 4 在引导Sass项目中,Sass混合不可用
我有一个Rails 4项目,带有Ruby on rails 4 在引导Sass项目中,Sass混合不可用,ruby-on-rails-4,sass,twitter-bootstrap-3,bootstrap-sass,Ruby On Rails 4,Sass,Twitter Bootstrap 3,Bootstrap Sass,我有一个Rails 4项目,带有bootstrap sass,像border radius(3px)这样的混音无法识别。我不确定我做错了什么,但以下是我认为相关的文件部分: // myfile.css.scss @import "bootstrap"; #hotel-form { display: none; border: 1px gray solid; padding: 1em; margin-top: 2em; @include border-radius(3px);
bootstrap sass
,像border radius(3px)
这样的混音无法识别。我不确定我做错了什么,但以下是我认为相关的文件部分:
// myfile.css.scss
@import "bootstrap";
#hotel-form {
display: none;
border: 1px gray solid;
padding: 1em;
margin-top: 2em;
@include border-radius(3px);
}
在上面的例子中,我不需要导入bootstrap,但无论如何,我都是为了让边界半径
mixin被识别出来
# Gemfile
... lots of other stuff
gem 'bootstrap-sass', github: 'thomas-mcdonald/bootstrap-sass'
... and more other stuff
// application.css
*= require_self
*= require_tree .
我不知道是不是application.css
出了问题。我从CDN获得如下引导:
-# application.html.haml
= stylesheet_link_tag "//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"
= javascript_include_tag "//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"
除了在我的开发机器上安装bootstrap之外,我已经尝试了各种不同的组合,但毫无乐趣。欢迎指点
谢谢没有边界半径混合?啊啊啊啊。在引导3中删除。嗯。所以我可以自己写了。唉,使用现有的图书馆?指南针对我来说很重。我知道缓存可以清除其中的一部分,但每个新客户机都会获取我的Compass增强样式表,如果我使用Mixin,它通常相当大。