Apply square style to list elements