//
// Navs
// --------------------------------------------------


// Base class
// --------------------------------------------------

.nav {
  padding-right: 0; // Override default ul/ol
  padding-left: initial;
}


// Tabs
// -------------------------

// Give the tabs something to sit on
.nav-tabs {
  > li {
    float: right;

    // Actual tabs (as links)
    > a {
      margin-left: auto;
      margin-right: -2px;
    }
  }
}


// Pills
// -------------------------
.nav-pills {
  > li {
    float: right;

    + li {
      margin-right: 2px;
      margin-left: auto;
    }
  }
}


// Stacked pills
.nav-stacked {
  > li {
    float: none;
    + li {
      margin-right: 0; // no need for this gap between nav items
      margin-left: auto;
    }
  }
}


// Nav variations
// --------------------------------------------------

// Justified nav links
// -------------------------

.nav-justified {

  //To fix the overridden style by line 21
  > li{
    float: none;
  }

  > .dropdown .dropdown-menu {
    right: auto;
  }
}

// Move borders to anchors instead of bottom of list
//
// Mixin for adding on top the shared `.nav-justified` styles for our tabs
.nav-tabs-justified {

  > li > a {
    // Override margin from .nav-tabs
    margin-left: 0;
    margin-right: auto;
  }
}
