2015-08-17 18:33:34 -07:00
|
|
|
// Base class
|
2012-06-28 21:46:45 -07:00
|
|
|
//
|
2015-08-17 18:33:34 -07:00
|
|
|
// Kickstart any navigation component with a set of style resets. Works with
|
|
|
|
// `<nav>`s or `<ul>`s.
|
2012-01-07 20:40:28 -08:00
|
|
|
|
2014-07-09 13:51:49 -07:00
|
|
|
.nav {
|
2015-04-26 00:02:25 -07:00
|
|
|
padding-left: 0;
|
2014-07-13 23:33:54 -07:00
|
|
|
margin-bottom: 0;
|
2015-04-26 00:02:25 -07:00
|
|
|
list-style: none;
|
2014-07-09 13:51:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link {
|
2014-07-09 16:04:31 -07:00
|
|
|
display: inline-block;
|
2014-07-09 13:51:49 -07:00
|
|
|
|
2015-01-01 01:05:01 -08:00
|
|
|
@include hover-focus {
|
2014-07-09 13:51:49 -07:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2015-08-14 22:45:55 -07:00
|
|
|
// Disabled state lightens text and removes hover/tab effects
|
2014-07-09 16:04:31 -07:00
|
|
|
&.disabled {
|
2014-12-02 14:02:35 -08:00
|
|
|
color: $nav-disabled-link-color;
|
2014-07-09 13:51:49 -07:00
|
|
|
|
2015-01-01 01:05:01 -08:00
|
|
|
@include plain-hover-focus {
|
2014-12-02 14:02:35 -08:00
|
|
|
color: $nav-disabled-link-hover-color;
|
|
|
|
cursor: $cursor-disabled;
|
2016-01-06 15:42:32 -08:00
|
|
|
background-color: $nav-disabled-link-hover-bg;
|
2014-07-09 13:51:49 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-08-14 22:45:55 -07:00
|
|
|
// Nav inline
|
|
|
|
|
|
|
|
.nav-inline {
|
2015-11-29 19:38:44 -08:00
|
|
|
.nav-item {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-item + .nav-item,
|
2015-08-14 22:45:55 -07:00
|
|
|
.nav-link + .nav-link {
|
2016-01-06 15:41:35 -08:00
|
|
|
margin-left: $nav-item-inline-spacer;
|
2015-08-14 22:45:55 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-07-09 16:04:31 -07:00
|
|
|
//
|
2012-11-03 16:14:44 -07:00
|
|
|
// Tabs
|
2014-07-09 16:04:31 -07:00
|
|
|
//
|
2012-01-07 20:40:28 -08:00
|
|
|
|
2012-01-30 21:29:50 -08:00
|
|
|
.nav-tabs {
|
2016-01-06 15:45:26 -08:00
|
|
|
border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
|
2015-08-18 20:25:31 -07:00
|
|
|
@include clearfix();
|
2014-07-09 16:04:31 -07:00
|
|
|
|
|
|
|
.nav-item {
|
2013-04-16 16:45:51 +02:00
|
|
|
float: left;
|
|
|
|
// Make the list-items overlay the bottom border
|
2016-01-06 15:45:26 -08:00
|
|
|
margin-bottom: -$nav-tabs-border-width;
|
2013-04-16 16:45:51 +02:00
|
|
|
|
2014-07-09 16:04:31 -07:00
|
|
|
+ .nav-item {
|
2015-12-08 00:13:28 -08:00
|
|
|
margin-left: $nav-item-margin;
|
2013-04-16 16:45:51 +02:00
|
|
|
}
|
2012-01-07 20:40:28 -08:00
|
|
|
}
|
|
|
|
|
2014-07-09 16:04:31 -07:00
|
|
|
.nav-link {
|
|
|
|
display: block;
|
2015-08-14 22:45:55 -07:00
|
|
|
padding: $nav-link-padding;
|
2016-01-06 15:45:26 -08:00
|
|
|
border: $nav-tabs-border-width solid transparent;
|
2016-04-03 01:47:12 +03:00
|
|
|
@include border-top-radius($nav-tabs-border-radius);
|
2013-04-16 16:45:51 +02:00
|
|
|
|
2015-01-01 01:05:01 -08:00
|
|
|
@include hover-focus {
|
2014-12-02 14:02:35 -08:00
|
|
|
border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
|
2013-04-16 16:45:51 +02:00
|
|
|
}
|
2015-08-18 20:25:31 -07:00
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
@include plain-hover-focus {
|
|
|
|
color: $nav-disabled-link-color;
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
2014-07-09 16:04:31 -07:00
|
|
|
}
|
2013-04-16 16:45:51 +02:00
|
|
|
|
2015-08-18 20:25:31 -07:00
|
|
|
.nav-link.active,
|
|
|
|
.nav-item.open .nav-link {
|
2015-01-01 01:05:01 -08:00
|
|
|
@include plain-hover-focus {
|
2014-12-02 14:02:35 -08:00
|
|
|
color: $nav-tabs-active-link-hover-color;
|
|
|
|
background-color: $nav-tabs-active-link-hover-bg;
|
|
|
|
border-color: $nav-tabs-active-link-hover-border-color $nav-tabs-active-link-hover-border-color transparent;
|
2013-04-16 16:45:51 +02:00
|
|
|
}
|
|
|
|
}
|
2016-01-06 15:51:23 -08:00
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
// Make dropdown border overlap tab border
|
|
|
|
margin-top: -$nav-tabs-border-width;
|
|
|
|
// Remove the top rounded corners here since there is a hard edge above the menu
|
|
|
|
@include border-top-radius(0);
|
|
|
|
}
|
2012-11-04 00:52:10 -07:00
|
|
|
}
|
|
|
|
|
2013-01-17 17:02:35 -08:00
|
|
|
|
2014-07-09 16:04:31 -07:00
|
|
|
//
|
|
|
|
// Pills
|
|
|
|
//
|
2013-08-02 09:42:50 -07:00
|
|
|
|
2014-07-09 16:04:31 -07:00
|
|
|
.nav-pills {
|
2015-09-29 16:13:02 +01:00
|
|
|
@include clearfix();
|
2015-11-13 00:20:03 -08:00
|
|
|
|
2014-07-09 16:04:31 -07:00
|
|
|
.nav-item {
|
|
|
|
float: left;
|
2013-08-16 14:01:32 -07:00
|
|
|
|
2014-07-09 16:04:31 -07:00
|
|
|
+ .nav-item {
|
2015-12-08 00:13:28 -08:00
|
|
|
margin-left: $nav-item-margin;
|
2013-08-02 09:42:50 -07:00
|
|
|
}
|
|
|
|
}
|
2013-08-16 14:01:32 -07:00
|
|
|
|
2014-07-09 16:04:31 -07:00
|
|
|
.nav-link {
|
|
|
|
display: block;
|
2015-08-14 22:45:55 -07:00
|
|
|
padding: $nav-link-padding;
|
2014-12-02 14:02:35 -08:00
|
|
|
@include border-radius($nav-pills-border-radius);
|
2013-10-28 20:51:39 -07:00
|
|
|
}
|
|
|
|
|
2015-08-18 20:25:31 -07:00
|
|
|
.nav-link.active,
|
|
|
|
.nav-item.open .nav-link {
|
2015-01-01 01:05:01 -08:00
|
|
|
@include plain-hover-focus {
|
2016-01-06 15:50:08 -08:00
|
|
|
color: $nav-pills-active-link-color;
|
2014-07-09 16:04:31 -07:00
|
|
|
cursor: default;
|
2016-01-06 15:50:08 -08:00
|
|
|
background-color: $nav-pills-active-link-bg;
|
2013-08-16 14:01:32 -07:00
|
|
|
}
|
|
|
|
}
|
2013-08-02 09:42:50 -07:00
|
|
|
}
|
|
|
|
|
2014-07-09 16:04:31 -07:00
|
|
|
.nav-stacked {
|
|
|
|
.nav-item {
|
|
|
|
display: block;
|
2014-12-11 12:05:29 -08:00
|
|
|
float: none;
|
2013-08-26 17:37:52 -07:00
|
|
|
|
2014-07-09 16:04:31 -07:00
|
|
|
+ .nav-item {
|
2015-12-08 00:13:28 -08:00
|
|
|
margin-top: $nav-item-margin;
|
2014-07-09 16:04:31 -07:00
|
|
|
margin-left: 0;
|
2013-08-26 17:37:52 -07:00
|
|
|
}
|
2013-08-02 09:42:50 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-07-09 16:04:31 -07:00
|
|
|
//
|
2013-02-17 20:18:29 -08:00
|
|
|
// Tabbable tabs
|
2014-07-09 16:04:31 -07:00
|
|
|
//
|
2013-02-17 20:18:29 -08:00
|
|
|
|
2013-10-13 15:55:13 -07:00
|
|
|
// Hide tabbable panes to start, show them when `.active`
|
|
|
|
.tab-content {
|
|
|
|
> .tab-pane {
|
|
|
|
display: none;
|
|
|
|
}
|
2013-07-06 21:51:47 -07:00
|
|
|
> .active {
|
|
|
|
display: block;
|
|
|
|
}
|
2013-02-17 20:18:29 -08:00
|
|
|
}
|