Refactor vendor css functions