Add function to add CSS rule into document

@alex-deaconu @stulees Please review. Thx.