Stylesheet media query parser and callback generator