bulma-rails icon indicating copy to clipboard operation
bulma-rails copied to clipboard

Undefined variable: "$body-background"

Open alfiehub opened this issue 7 years ago • 1 comments

I've followed the steps described in the README and added @import "bulma"; to application.scss, but I'm receiving a Sass::SyntaxError whenever I attempt to load a page.

Do you have any idea of what the issue might be?

I have added both sass and sass-rails gems to my Gemfile and I'm using rails 4.2.8 and ruby 2.4.1

Edit: I've identified the problem. Commenting out this line in my config/initializers/assets.rb solved it Rails.application.config.assets.precompile += %w(*.js *.css *.scss *.sass)

Precompiling stuff apparently fucks it up. Is there any solution to this?

alfiehub avatar Jun 22 '17 17:06 alfiehub

Are you sure that it is not a syntax related problem? Bulma's example is SASS, not SCSS (see my PR).

miguelsan avatar Oct 10 '17 07:10 miguelsan