Refactoring css code