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

Elem mixin should be able to be nested inside a Mod #7

Open
runningskull opened this issue Mar 7, 2016 · 0 comments
Open

Elem mixin should be able to be nested inside a Mod #7

runningskull opened this issue Mar 7, 2016 · 0 comments

Comments

@runningskull
Copy link
Member

Right now we don't support mods nested inside elements, but instead prefer the syntax @include Elem(myelem, mymod), but this is overly restrictive. One issue is that it puts pressure on authors to break out elements into top-level blocks, since the syntax is cleaner - especially if the element has a few modifiers, or has modifiers you want to include programmatically (ie. in a @each ... or similar)

We should support @include Elem(myelem) { @include Mod(mymod) { ... }} syntax for element-modifiers.

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

1 participant