refactors CSS to be more DRY