sass - Importing rails-assets.org stylesheets from SCSS -


is possible import stylesheet rails-assets.org gem using scss's import instead of sprocket's require? example:

given gemfile:

source 'https://rails-assets.org' gem "rails-assets-rrssb" 

using sprockets stylesheet, you'd use require in application.css (working):

*= require rrssb/scss/rrssb 

however, i'm using scss , use import in application.css.scss (not working):

@import "rrssb/scss/rrssb"; 

  1. go rvm gem directory (rvm gemdir) , gem rails-assets pulled (/gems/rails-assets-your_gem-version).
  2. in app/assets/stylesheets directory find file.
  3. import/require file path relative app/assets/stylesheets.

the same goes javascripts (in app/assets/javascripts).

this worked me rails-assets-bootstrap-sass-official, file trying import bootstrap-sporckets , (including other files) under app/assets/stylesheets/bootstrap-sass-official import was:

@import "bootstrap-sass-official/bootstrap-sprockets" 

Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -