cusejuice
cusejuice

Reputation: 10691

Compass/Grunt Translate Mixin Error

Using Compass 1.0.0, when I try and use the translate mixin within a separate scss file, I keep getting the below error when using Grunt Compass.

error library/sass/main.scss (Line 391 of /Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.0.rc.1/stylesheets/compass/css3/_transform.scss: Mixin transform takes 1 argument but 2 were passed.)

I have my files split up like this:

|_ all.scss
    |_ partials/
          _footer.scss

In all.scss

@import "compass";
@import "partials/footer";

In partials/footer.scss:

div {
  @include translate( -50%, -50% );
}       

For some reason, I can't use the translate mixin. Any ideas?

Upvotes: 0

Views: 148

Answers (1)

hereandnow78
hereandnow78

Reputation: 14434

there seem to be some issues with grunt using compass. using the translate mixin without comma separation should probably work:

div {
  @include translate(-50% -50%);
}  

Upvotes: 1

Related Questions