moving media queries about classes