Skip to content

Instantly share code, notes, and snippets.

@icambron
Last active December 22, 2015 09:59
Show Gist options
  • Save icambron/6455690 to your computer and use it in GitHub Desktop.
Save icambron/6455690 to your computer and use it in GitHub Desktop.

Edit: Nevermind, the 3 branch seems to work here. I must have been wrong in thinking 3-wip was working for me in other circumstances.

I'm trying to cheat a bit and steal some of the SASS files from 3-wip branch of bootstrap-sass. When wired into my Minuteman asset pipeline, that branch works fine, but when I pull out specific files I can't compile them:

isaac@ironhide [04:00:13] [~/code/jquery-simple-datetimepicker] [master *]
-> % scss vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_mixins.scss
Syntax error: Invalid CSS after "...dropdown-toggle": expected "{", was "& {"

              "&" may only be used at the beginning of a compound selector.
        on line 415 of vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_mixins.scss
  Use --trace for backtrace.

Look at the code, I agree with the compiler:

.open .dropdown-toggle& {
    background-image: none;
  }

Not sure what that & means in that context.

Any idea what's happening here? Why does this branch work generally but the specific files don't compile? Some extension I'm not invoking?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment