extracting common css from simple-style and mag-style into a common-style