foundation-sites: rails 4.2 Invalid CSS !global
It looks like the !global issue came back with the launch of rails 4.2 tonight.
Sass::SyntaxError at /join
Invalid CSS after "...ules: $modules ": expected "}", was "!global;"
Error Details:
// IMPORT ONCE
// We use this to prevent styles from being loaded multiple times for compenents that rely on other components.
$modules: () !default;
@mixin exports($name) {
// Import from global scope
$modules: $modules !global;
// Check if a module is already on the list
$module_index: index($modules, $name);
@if (($module_index == null) or ($module_index == false)) {
$modules: append($modules, $name) !global;
@content;
The only thing I could do to get around this was to downgrade my gem to gem 'foundation-rails', '5.4.5'
Can anyone point me in the right direction? Thanks and Merry XMAS.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 32 (4 by maintainers)
Commits related to this issue
- Updated foundation-rails to repair scaffolding generated error. - https://github.com/zurb/foundation/issues/6148 — committed to ecnalyr/simple_school by ecnalyr 9 years ago
- Down graded Foundation gem to avoid css error https://github.com/zurb/foundation/issues/6148 — committed to ostigley/learn-rails by ostigley 9 years ago
worked for me
Try this. My problem solved with this
gem ‘foundation-rails’, ‘5.4.3.1’
then run
bundle update
This should do it for now tell they fix it 😃