reformat full css for logical order