私は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);
}
上記でブートストラップをインポートする必要はありませんが、border-radius
ミックスインを認識させるためにとにかくそれを行いました。
# 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"
私は、開発マシンにブートストラップをインストールする以外に、あらゆる組み合わせを試しましたが、喜びはありませんでした。任意のポインタをいただければ幸いです。
ありがとう