We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Sass you are able to pass in arbitrary content into a mixin with the @content directive.
@content
Is there a way to accomplish this now? Plans to support it?
$should-show: true; @mixin some-mixin { @if $should-show { @content; } } .item { width: 100px; height: 100px; background: rgba(255, 0, 0, 1); @include some-mixin { background: rgba(0, 255, 0, 1); } }
What about passing arguments from a mixin to a content block?
via jackmahoney's comment
@mixin foo($a, $b){ @content($c, $d) } @include foo($a, $b) using($c, $d) { // ... }
The text was updated successfully, but these errors were encountered:
Yeap, I will add it when i finish PostCSS Plugins Guidelines.
Sorry, something went wrong.
Done c6773d5
No branches or pull requests
In Sass you are able to pass in arbitrary content into a mixin with the
@content
directive.Is there a way to accomplish this now? Plans to support it?
What about passing arguments from a mixin to a content block?
via jackmahoney's comment
The text was updated successfully, but these errors were encountered: