Reorder style declarations and remove new lines.