Fixed complex multiline css media queries

There could be funkier ones that are still broken however, this is by no
means an end-all be-all