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

Support class grouping #4

Open
juice49 opened this issue Mar 15, 2015 · 0 comments
Open

Support class grouping #4

juice49 opened this issue Mar 15, 2015 · 0 comments

Comments

@juice49
Copy link
Owner

juice49 commented Mar 15, 2015

I'd like to support class grouping, similarly to that described by Harry Roberts.

Based on Harry's example:

<div class='[ foo  bar ]  baz'>

Would compile to:

<div class='foo foo--bar baz'>

My current idea is to take the first class from the group and use it as the block/element qualifier, with all following classes in the group being modifiers.

This would be an opt in compile mode. I don't think the group syntax needs to be configurable; I'm inclined to just use [] for simplicity.

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