fixing bug that ignored CSS inside @media{} blocks
preserve class names if they exist, seems useful to some debugging