Fix media query rules are not left in style tag issue