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

Fixes issue #375.