preprocess class styles in cascade