postcss-unmq icon indicating copy to clipboard operation
postcss-unmq copied to clipboard

Support media query NOT operator

Open wc-matteo opened this issue 8 years ago • 1 comments

I find this plugin incredibly useful! Great job! ;)

Recently, I adopted the media query not operator to emulate a less than check:

@media not all and (min-width: 80em) {}
@media (min-width: 80em) {}
  • not must be followed by all and to work.

But it seems unmq currently doesn't support this (I guess it interprets the first mq the same way it does the second). Would it be much work to implement it?

wc-matteo avatar Mar 30 '16 16:03 wc-matteo

For better and worse, the logic in this plugin is very simple and relies on an internal test from https://github.com/ericf/css-mediaquery (see line 3 and line 34) so unfortunately, this might be an issue with css-mediaquery.

jonathantneal avatar Aug 29 '16 12:08 jonathantneal