move a bunch of style specs to CSS classes