Refactoring and start implementation of css functions.