refactor custom css for DRYness