//
// RTL Navbars
// --------------------------------------------------


// Navbar heading
//
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
// styling of responsive aspects.

.navbar-header {

  @media (min-width: @grid-float-breakpoint) {
    float: right;
  }
}

// Brand/project name

.navbar-brand {
  float: right;
}


// Navbar toggle
//
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
// JavaScript plugin.

.navbar-toggle {
  float: left;
}


// Navbar nav links
//
// Builds on top of the `.nav` components with its own modifier class to make
// the nav the full height of the horizontal nav (above 768px).

.navbar-nav {

  @media (max-width: @grid-float-breakpoint-max) {
    // Dropdowns get custom display when collapsed
    .open .dropdown-menu {
      > li > a,
      .dropdown-header {
        padding: 5px 25px 5px 15px;
      }
    }
  }

  // Uncollapse the nav
  @media (min-width: @grid-float-breakpoint) {
    float: right;

    > li {
      float: right !important;
    }

  }
}

@media (min-width: @grid-float-breakpoint) {
  .navbar-left {
    float: right !important;
    &.flip {
      float: right !important;
    }
  }

  .navbar-right {
    float: left !important;

    &.flip {
      float: left !important;
    }

    .dropdown-menu {
      left: 0;
      right: auto;
    }
  }
}
