anjlab / bootstrap-rails

Twitter Bootstrap CSS (with Sass flavour) and JS toolkits for Rails 3 projects
https://github.com/anjlab/bootstrap-rails
729 stars 96 forks source link

bootstrap-responsive ... "error compiling css asset" #28

Closed teambonzai closed 12 years ago

teambonzai commented 12 years ago

when bootstrap-responsive is included n the application.css, the site displays something similar to:

error compiling css asset

sass::syntaxerror: invalid css after "...ia (max-width: ": expected expression (e.g. 1px, bold), was "$navbarcollapse..." (/location/bootstrap-responsive.scss)

(/location/responsive-navbar.scss:8)

it might not be exact since i couldn't copy the error text directly. gem 'anjlab-bootstrap-rails', '>= 2.1', :require => 'bootstrap-rails' is installed. there is no error when i remove "*= require twitter/bootstrap-responsive" from application.css. let me know if you need more details. the site is using rails 3.2.3.

yury commented 12 years ago

This is error in readme.

if you want use responsive, you should import 'twitter/bootstrap' and 'twitter/bootstrap-responsive' via @import

@import "twitter/bootstrap";
@import "twitter/bootstrap-responsive";

in your applications.css.scss

teambonzai commented 12 years ago

thanks. i changed the code to match your suggestion.

however, it is still displaying the same error as above when the responsive styles are imported. i'll troubleshoot some more. it seems to have an issue with "max-width: $navbarCollapseWidth".

yury commented 12 years ago

This is strange. I have working bootstrap-responsive on heroku. And it is working fine.

Can you gist your Gemfile and Gemfile.lock?

yury commented 12 years ago

I think you need update sass gem. What version do you have?

teambonzai commented 12 years ago

here are the gemfiles: https://gist.github.com/c4ee645dcf8db5eb0628

thanks for the help

yury commented 12 years ago

I believe that sass version >= 3.2 is required, so I released new version with that dependency.

Please try new version.

teambonzai commented 12 years ago

great. that fixed it. thanks again!

yury commented 12 years ago

Welcome. Thanks for bug report.