move patter-editor styles to common