stylesheet code refactoring