fix CSS parsing with media queries