The moment about an axis

Only the part of a moment along an axis turns a body about that axis, so the moment about it is $\mathbf{u}\cdot(\mathbf{r}\times\mathbf{F})$, which is zero for a force parallel to the axis or through it.

From Statics.