Closed JosefJezek closed 8 years ago
Hi,
while this looks a useful idea at a first glance, I'm not sure it would be part of the "spec", hard to predict at that point. But we could ask.
Nonetheless the scope of this plugin is clearly to follow the "spec" as much as possible.
If you need Sass like mixins behaviour, then there's other plugins for it.
I need use mixins from Polymer elements. Could you create fork postcss-polymer-apply
with this feature?
Let's ask directly.
Hi @tabatkins,
do you think it could be part of the future spec to be able to use the @apply
rule in custom properties sets declaration ? Aka nesting or composition.
Thanks in advance.
the polymer iron flexbox component seems to do this. so it's probably part of "spec" ;)
The @apply
rule is treated identically to var()
inside of a custom property value. So yeah, nesting should work.
@tabatkins Thank you :+1:
@tabatkins Thanks!
So I'll implement this behavior in the current plugin.
@pascalduez Please implement this behavior...
@JosefJezek Actually, this is already possible. I just added a couple of tests
Bear in mind your custom properties sets have to be declared in a :root
rule-set, which is not the case in your example.
Could you add support for nested mixins?
Bad output