processing media queries, fixes #3

sweet thanks to @Vavooon :)