How to make custom nav-pills like SitePoint

It might make sense to use .nav-pills>li:nth-last-child(2)>a instead, since there always seems to be an empty li tag on the nav-pills.