Moving inline styles to classes