What is correct way to use @apply ?
kbytin opened this issue · 2 comments
kbytin commented
I'm using cssnext and sugarSS
Cssnext includes postcss-apply (https://github.com/pascalduez/postcss-apply)
What is correct way to use it?
:root
--centered:
display: flex;
align-items: center;
justify-content: center;
I get error
Module build failed: Error: Expected pseudo-class or pseudo-element
If I use like this
:root
--centered: {
display: flex;
align-items: center;
justify-content: center; }
No errors but It doesn't work
ai commented
Seems like current logic is not ready for apply. I will have Internet to fix it only after July 8. Is it OK?
ai commented
Hm. I tested your example and everything works fine.
Could you:
- Remove
;
from your example. - Post full stack trace of error if it will not be fixed by removing
;