SASS: import bourbon lib from another directory in style sheets

I have a namespace called "pro" and I want to put my sass assets inside app/assets/stylesheets/pro/sellers. I have nested controllers carsinside sellers.

In my layout, I have this one stylesheet_link_tag params[:controller], so it's common. This creates a path pro/sellers/cars.css.sassfor my configuration.

In the sass file, I want to import the bourbon library, but I get this error:

File to import not found or unreadable: ../functions/linear-gradient.
Load path: Sass::Rails::Importer(/my_project_path/app/assets/stylesheets/pro/sellers/cars.css.sass)
  (in /my_project_path/app/assets/stylesheets/pro/sellers/cars.css.sass)

Is it possible to perform this import or is this a restriction?

+5
source share

All Articles