convert css and nesting