Replace classes in a CSS selector