yunusga / postcss-sort-media-queries

PostCSS plugin for sorting and combining CSS media queries with mobile-first / desktop-first methodologies.
https://postcss-sort-media-queries.github.io
MIT License
147 stars 7 forks source link

Recognize media types in query #37

Open Jugibur opened 3 years ago

Jugibur commented 3 years ago

Hello,

I have noticed that sorting no longer works correctly when "print" or perhaps another meda type is used in a media query:

After sorting, I get the following order:

@media screen and (min-width: 1024px), print { } @media screen and (min-width: 1350px), print { } @media screen and (min-width: 1600px), print { } @media screen and (min-width: 640px), print { } @media screen and (min-width: 800px), print { }