influxweb
6/5/2015 - 2:13 AM

Use CSS :not() instead of applying and unapplying borders on navigations

Use CSS :not() instead of applying and unapplying borders on navigations

.nav-tab {
  ...
  // instead of putting it on
  border-right: 1px solid #424242;
  &:last-child {
    border-right: 0; // and then taking it off
  }
  // use CSS not() to only apply to the elements you want
  &:not(:last-child) {
    border-right: 1px solid #424242;
  }
  ...
}