CSS rewrites and color changes