refractor: optimize front in css