remove deprecated styles and use ::content