I use http://www.w3.org/TR/css3-mediaqueries/ to have different design depending on the available viewport.
In order for my search-and-replace to work, for every time I decide to adjust the cut-off points, I'd like to clearly negate @media (min-width: 500px)
, which intersects on (max-width: 500px)
, and, therefore, has to be manually negated as (max-width: 499px)
instead, which then breaks search-and-replace.
I've tried not (min-width: 500px)
, but it doesn't seem to work at all. Is there a way to negate @media (min-width: 500px)
, such that the negative query will still have 500px
in it, for my search-and-replace to work?
not (min-width: 500px)
not work, assuming you followed the documentation and wrote it asnot all and (min-width: 500px)
? – Fraasenot all and
. However, what about merging it with other statements? E.g. how do I translate(min-width: 840px) and (max-height: 399px)
, where only the99
one has to be negated? – Rabies