Fix media query transitions on firefox