// NAVIGATIONS // ———–

// BASE CLASS // ———-

.nav {

margin-left: 0;
margin-bottom: $baseLineHeight;
list-style: none;

}

// Make links block level .nav > li > a {

display: block;

} .nav > li > a:hover {

text-decoration: none;
background-color: $grayLighter;

}

// Redeclare pull classes because of specifity .nav > .pull-right {

float: right;

}

// Nav headers (for dropdowns and lists) .nav .nav-header {

display: block;
padding: 3px 15px;
font-size: 11px;
font-weight: bold;
line-height: $baseLineHeight;
color: $grayLight;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
text-transform: uppercase;

} // Space them out when they follow another list item (link) .nav li + .nav-header {

margin-top: 9px;

}

// NAV LIST // ——–

.nav-list {

padding-left: 15px;
padding-right: 15px;
margin-bottom: 0;

} .nav-list > li > a, .nav-list .nav-header {

margin-left:  -15px;
margin-right: -15px;
text-shadow: 0 1px 0 rgba(255,255,255,.5);

} .nav-list > li > a {

padding: 3px 15px;

} .nav-list > .active > a, .nav-list > .active > a:hover {

color: $white;
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
background-color: $linkColor;

} .nav-list [class^=“icon-”] {

margin-right: 2px;

} // Dividers (basically an hr) within the dropdown .nav-list .divider {

@include nav-divider();

}

// TABS AND PILLS // ————-

// Common styles .nav-tabs, .nav-pills {

@include clearfix();

} .nav-tabs > li, .nav-pills > li {

float: left;

} .nav-tabs > li > a, .nav-pills > li > a {

padding-right: 12px;
padding-left: 12px;
margin-right: 2px;
line-height: 14px; // keeps the overall height an even number
font-weight: bold;

} .nav-tabs p.caption {

text-transform: uppercase;
letter-spacing: 0.1em;
font-size: 0.9em;
margin-bottom: 0px;

} .nav-tabs > .active p.caption {

font-weight: bold;

}

// TABS // —-

// Give the tabs something to sit on .nav-tabs {

border-bottom: 1px solid #ddd;

} // Make the list-items overlay the bottom border .nav-tabs > li {

margin-bottom: -1px;

} // Actual tabs (as links) .nav-tabs > li > a {

padding-top: 8px;
padding-bottom: 8px;
line-height: $baseLineHeight;
border: 1px solid transparent;
text-align: center;
@include border-radius(4px 4px 0 0);
&:hover {
  border-color: $grayLighter $grayLighter #ddd;
}

} // Active state, and it’s :hover to override normal :hover .nav-tabs > .active > a, .nav-tabs > .active > a:hover {

color: $gray;
background-color: $white;
border: 1px solid #ddd;
border-bottom-color: transparent;
cursor: default;

}

// BOOTSTRAP TABS

.tabbable {

*zoom: 1;

}

.tabbable:before, .tabbable:after {

display: table;
line-height: 0;
content: "";

}

.tabbable:after {

clear: both;

}

.tab-content {

overflow: auto;

}

.tabs-below > .nav-tabs, .tabs-right > .nav-tabs, .tabs-left > .nav-tabs {

border-bottom: 0;

}

.tab-content > .tab-pane, .pill-content > .pill-pane {

display: none;

}

.tab-content > .active, .pill-content > .active {

display: block;

}

.tabs-below > .nav-tabs {

border-top: 1px solid #ddd;

}

.tabs-below > .nav-tabs > li {

margin-top: -1px;
margin-bottom: 0;

}

.tabs-below > .nav-tabs > li > a {

-webkit-border-radius: 0 0 4px 4px;
   -moz-border-radius: 0 0 4px 4px;
        border-radius: 0 0 4px 4px;

}

.tabs-below > .nav-tabs > li > a:hover, .tabs-below > .nav-tabs > li > a:focus {

border-top-color: #ddd;
border-bottom-color: transparent;

}

.tabs-below > .nav-tabs > .active > a, .tabs-below > .nav-tabs > .active > a:hover, .tabs-below > .nav-tabs > .active > a:focus {

border-color: transparent #ddd #ddd #ddd;

}

.tabs-left > .nav-tabs > li, .tabs-right > .nav-tabs > li {

float: none;

}

.tabs-left > .nav-tabs > li > a, .tabs-right > .nav-tabs > li > a {

min-width: 74px;
margin-right: 0;
margin-bottom: 3px;

}

.tabs-left > .nav-tabs {

float: left;
margin-right: 19px;
border-right: 1px solid #ddd;

}

.tabs-left > .nav-tabs > li > a {

margin-right: -1px;
-webkit-border-radius: 4px 0 0 4px;
   -moz-border-radius: 4px 0 0 4px;
        border-radius: 4px 0 0 4px;

}

.tabs-left > .nav-tabs > li > a:hover, .tabs-left > .nav-tabs > li > a:focus {

border-color: #eeeeee #dddddd #eeeeee #eeeeee;

}

.tabs-left > .nav-tabs .active > a, .tabs-left > .nav-tabs .active > a:hover, .tabs-left > .nav-tabs .active > a:focus {

border-color: #ddd transparent #ddd #ddd;
*border-right-color: #ffffff;

}

.tabs-right > .nav-tabs {

float: right;
margin-left: 19px;
border-left: 1px solid #ddd;

}

.tabs-right > .nav-tabs > li > a {

margin-left: -1px;
-webkit-border-radius: 0 4px 4px 0;
   -moz-border-radius: 0 4px 4px 0;
        border-radius: 0 4px 4px 0;

}

.tabs-right > .nav-tabs > li > a:hover, .tabs-right > .nav-tabs > li > a:focus {

border-color: #eeeeee #eeeeee #eeeeee #dddddd;

}

.tabs-right > .nav-tabs .active > a, .tabs-right > .nav-tabs .active > a:hover, .tabs-right > .nav-tabs .active > a:focus {

border-color: #ddd #ddd #ddd transparent;
*border-left-color: #ffffff;

}

// ADJUSTMENTS FOR CONCERTO

.tabbable ul.nav {

width: 115px;
padding-left: 15px;

}

// PILLS // —–

// Links rendered as pills .nav-pills > li > a {

padding-top: 8px;
padding-bottom: 8px;
margin-top: 2px;
margin-bottom: 2px;
@include border-radius(5px);

}

// Active state .nav-pills .active > a, .nav-pills .active > a:hover {

color: $white;
background-color: $linkColor;

}

// STACKED NAV // ———–

// Stacked tabs and pills .nav-stacked > li {

float: none;

} .nav-stacked > li > a {

margin-right: 0; // no need for the gap between nav items

}

// Tabs .nav-tabs.nav-stacked {

border-bottom: 0;

} .nav-tabs.nav-stacked > li > a {

border: 1px solid #ddd;
@include border-radius(0);

} .nav-tabs.nav-stacked > li:first-child > a {

@include border-radius(4px 4px 0 0);

} .nav-tabs.nav-stacked > li:last-child > a {

@include border-radius(0 0 4px 4px);

} .nav-tabs.nav-stacked > li > a:hover {

border-color: #ddd;
z-index: 2;

}

// DRAWER NAV-TAB VARIANT // Makes a drawer appear on either the left or right side of a content cell

.nav-drawer-left {

border: solid 4px $grayLight !important;
border-right: 0px !important;
@include border-radius(12px 0 0 12px !important);
background: $grayLight;
margin-top: 35px;

.nav-header {
  color: #666;
}

} .nav-drawer-left > li > a {

background: $grayLightest;
border-color: $grayLight !important;
border-right: 0px !important;
font-weight: bold;

&:hover {
  background: lighten($concerto-blue-4, 10%);
}

} .nav-drawer-left > li.active > a {

@include at2x('layout/vert-tabs_arrowbg', 42px, 200px, '.png');
background-position: center right;
background-repeat: no-repeat;
background-color: $gray;
color: $white;

&:hover {
  background-color: $gray;
  color: $white;
}

img { 
  border: solid 2px $grayLighter;
}

} .nav-drawer-left > li:first-child > a {

@include border-radius(8px 0 0 0 !important);

} .nav-drawer-left > li:last-child > a {

@include border-radius(0 0 0 8px !important);

}

// Pills .nav-pills.nav-stacked > li > a {

margin-bottom: 3px;

} .nav-pills.nav-stacked > li:last-child > a {

margin-bottom: 1px; // decrease margin to match sizing of stacked tabs

}

// SELECTOR LISTS // ——— ul.selector-list {

padding: 0px;
margin: 0px;
list-style-type: none;

li {
  border-bottom: solid 1px $grayLightest;
  color: black;

  &.checked {
    background: lighten($green, 50%);
    padding: 8px 10px;

    i { display: inline; }
  }

  &.with-padding {
    padding: 4px 10px;
  }

  a {
    padding: 8px 10px;
    display: block;
  }

  p { margin: 0px; }

  .row-fluid > div { min-height: 0px; }
}

}

// DROPDOWNS // ———

.nav-tabs .dropdown-menu {

@include border-radius(0 0 5px 5px); // remove the top rounded corners here since there is a hard edge above the menu

} .nav-pills .dropdown-menu {

@include border-radius(4px); // make rounded corners match the pills

}

// Default dropdown links // ————————- // Make carets use linkColor to start .nav-tabs .dropdown-toggle .caret, .nav-pills .dropdown-toggle .caret {

border-top-color: $linkColor;
border-bottom-color: $linkColor;
margin-top: 6px;

} .nav-tabs .dropdown-toggle:hover .caret, .nav-pills .dropdown-toggle:hover .caret {

border-top-color: $linkColorHover;
border-bottom-color: $linkColorHover;

}

// Active dropdown links // ————————- .nav-tabs .active .dropdown-toggle .caret, .nav-pills .active .dropdown-toggle .caret {

border-top-color: $grayDark;
border-bottom-color: $grayDark;

}

// Active:hover dropdown links // ————————- .nav > .dropdown.active > a:hover {

color: $black;
cursor: pointer;

}

// Open dropdowns // ————————- .nav-tabs .open .dropdown-toggle, .nav-pills .open .dropdown-toggle, .nav > li.dropdown.open.active > a:hover {

color: $white;
background-color: $grayLight;
border-color: $grayLight;

} .nav li.dropdown.open .caret, .nav li.dropdown.open.active .caret, .nav li.dropdown.open a:hover .caret {

border-top-color: $white;
border-bottom-color: $white;
@include opacity(1);

}

// Dropdowns in stacked tabs .tabs-stacked .open > a:hover {

border-color: $grayLight;

}