-
Notifications
You must be signed in to change notification settings - Fork 27
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
[Feature Request] SCSS-style nesting #196
Comments
It would be possible but might need some fairly fundamental changes to the parser. Certainly nested syntax would be possible |
Implementing Here's an idea: what if you were to replace your TSS parser with a modified version of leafo/scssphp? I don't know how much modification would be necessary, but it could be useful. |
It would be a significant amount of work. As it would create a different data structure, anything which reads the TSS will need to be rewritten. It would be less work (and easier) to amend the parser. I'll put this on the to-do list but there's a few other things I want to do first. |
For the record, the CSSWG has started working on a nesting spec. Once it makes it past the Working Draft stage, that might be what Transphporm should implement. |
What if we could have a watcher that compiles nested tss to basic tss, just like it happens with scss to css..? This way the transphporm core wouldn't have to be changed and it won't affect any existing tss templates that we currently have. It would be optional for anyone who needs it, and could be developed as a side project to transphporm. |
Would it be possible to add at least some features from Sass' SCSS syntax, such as nested selectors? This could be useful for data looping (see #195).
Of course, this should not replace the current way of accomplishing the same thing, but rather add to it.
For reference, what I am asking for is this kind of thing:
The text was updated successfully, but these errors were encountered: