Writing DRYer vanilla CSS