Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
simple-transform-mixin not working #170
when using the compass mixin "simple-transform" I get the following error while calling it with a grunt compass task:
error static/css/style.scss (Line 565 of _transform.scss: Mixin transform-origin takes 1 argument but 4 were passed.)
Here is my scss code:
@include simple-transform(1.5, 45deg, 1em, 2em, 5deg, -5deg, 100%, 0%);
Removing the comma between the two transform-origin-values didn't help.
I'm using Sass 3.3.5 and Compass 1.0.0.alpha.19
The interesthing thing is: When I compile scss without grunt (only compass compile), this doesn't happen.
Using Compass v0.12.6 / grunt-contrib-compass v0.8.0.
Very similar issue here with the mixin "transition-duration".
I receive this error:
I went poking around in the Compass gem at /compass/css3/_transition.scss and found that it calls a mixin called "experimental" and does pass 8 arguments:
So I went and checked the mixin definition at /compass/css3/_shared.scss and the definition does accept 8 arguments:
Strange. I changed the name of the mixin definition to "experimental-test", but kept the reference in _transition pointing at "experimental". I expected to get a "mixin not found" error, but instead got the same "too many arguments" error. I then changed my reference in _transition.scss to point to the newly renamed "experimental-test" like so:
And voila, it works! Of course hacking the gem directly isn't a sustainable solution, but it does appear that somehow grunt-contrib-compass is referencing a different version of the "experimental" mixin, and that version does not accept any arguments. I suspect the exact same thing is happening for @paulchrablass above and "simple-transform". I tried to dig into simple-transform-mixin to help find a solution but haven't found anything yet. I don't have any other versions of Compass installed, so not sure where it's getting the phantom mixin from. I'll keep digging, but wanted to share what I've discovered so far.