Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing content blocks to a mixin #59

Closed
dahlia opened this issue Nov 6, 2012 · 3 comments
Closed

Passing content blocks to a mixin #59

dahlia opened this issue Nov 6, 2012 · 3 comments

Comments

@dahlia
Copy link
Member

dahlia commented Nov 6, 2012

According to the reference, SCSS has to be able to pass content blocks to a mixin. For example:

@mixin apply-to-ie6-only {
  * html {
    @content;
  }
}
@include apply-to-ie6-only {
  #logo {
    background-image: url(/logo.gif);
  }
}

has to be compiled to:

* html #logo {
  background-image: url(/logo.gif);
}

However it causes an error:

ERROR -- test.scss, line 6: top-level @include directive must be terminated by ';'
@akhleung
Copy link

akhleung commented Nov 6, 2012

Ah, LibSass is currently only implementing Sass 3.1 features. 3.2 features will be under development for the next month or two!

@akhleung
Copy link

Okay, mixin content should be working now!

@dahlia
Copy link
Member Author

dahlia commented Nov 27, 2012

👍

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

No branches or pull requests

3 participants