Turn HTML class attributes to CSS declarations