change :nth-child to :nth-of-type in _grid.scss & _grid.styl

Fixes issue #375.

(build is failing travis because of the rounding discrepancies)