Strip every @media (...) { ... } block from a CSS string. Uses an explicit brace counter (a regex with [^{}]* mishandles nested rules inside the media block).
@media (...) { ... }
[^{}]*
Strip every
@media (...) { ... }block from a CSS string. Uses an explicit brace counter (a regex with[^{}]*mishandles nested rules inside the media block).