Closed vis97c closed 1 year ago
Hi @vis97c show your CSS code example
Hi @vis97c show your CSS code example
Sorry, just updated the issue
Hi @vis97c ! Sorry for long answer! I can look into this matter in two weeks ((
@vis97c I added quick fix for problem with ejected nested media queries postcss-sort-media-queries/blob/v5.2.0/README.md#only-top-level
Hi @vis97c ! Sorry for long answer! I can look into this matter in two weeks ((
I was using outdated mqPacker. After looking at the issue the sorter seems to be doing fine regarding traditional media queries. I'm yet to test container and custom queries. In the meantime I opened https://github.com/yunusga/postcss-sort-media-queries/pull/50 to adress the issue where is more needed. For the moment I'll be closing this one.
Hello again. I'm opening this issue to discuss how to properly add support for @layer. Currently the layers are not merged and the media queries inside them are not merged, I'm also not sure if the media queries should be the ones in the outside.
Maybe off-topic, but this implementation would probably also relate to container queries (haven't done any testing there).
Let me know if you have consider this already or what ideas do you have. In the mean time I'll start figuring out how to fix the most inmediate issue.
Some example css, I'm using sass and after compiling it I use postcss with cssnano & some other plugins to minimize it as much as possible, This new @layer seems to be problematic for those others as well.
The previous examples showcases some of the ocurrences I've encountered. Again it seems the plugins have issues mergin selectors & media queries. I'm interested in figuring out the media querie part in here.