Better logic for @media warnings