maxim / bootswatch-rails

Bootswatches converted to SCSS ready to use in Rails asset pipeline.
MIT License
489 stars 84 forks source link

Trouble using composer and Rails-Stripe-Membership-Saas #26

Closed brianpetro closed 11 years ago

brianpetro commented 11 years ago

I can not get this gem to work with the bootstrap files that are created along with the Rails-Stripe-Membership-Saas composer. I am using the gem "bootstrap-sass", ">= 2.1.1.0". Any ideas?

brianpetro commented 11 years ago

I was able to get it partially running by placing the @import code into bootstrap_and_override.css.scss.

Now, as long as I have the import 'bootstrap' and import 'bootswatch/readable/variables' both active, I get this error:

Sass::SyntaxError at / "transparent" is not a color for `darken' (in /home/brian/aehalo/app/assets/stylesheets/bootstrap_and_overrides.css.scss)

brianpetro commented 11 years ago

This is a "Readable" specific issue. When I use "Cerulean" things appear to work fine.

RaulKite commented 11 years ago

The problem comes with your javascript, I suffered an issue like this. Check your js console and start debugging there

foucist commented 11 years ago

The issue is in /vendor/assets/stylesheets/bootswatch/readable/_variables.scss of the gem.

It is set to:

$dropdownLinkColor:             $linkColor;
$dropdownLinkColorHover:        $linkColorHover;
$dropdownLinkBackgroundHover:   transparent;

There's a call for darken($dropdownLinkBackgroundHover) later that causes this bug.

According to the actual readable variables.less file it should be:

$dropdownLinkColor:             $grayDark;
$dropdownLinkColorHover:        $white;
$dropdownLinkBackgroundHover:   $linkColor;
maxim commented 11 years ago

See if everything just magically works fine in 0.3.0. I updated everything with the help of the new converter, and checked everything against my test site.

brianpetro commented 11 years ago

Updating the gem fixed my issue. Thanks.