2015-08-17 21:33:34 -04:00
|
|
|
// Base class
|
2012-06-29 00:46:45 -04:00
|
|
|
//
|
2015-08-17 21:33:34 -04:00
|
|
|
// Kickstart any navigation component with a set of style resets. Works with
|
|
|
|
// `<nav>`s or `<ul>`s.
|
2012-01-07 23:40:28 -05:00
|
|
|
|
2014-07-09 16:51:49 -04:00
|
|
|
.nav {
|
2016-12-23 13:39:53 -05:00
|
|
|
display: flex;
|
2017-01-24 02:58:22 -05:00
|
|
|
flex-wrap: wrap;
|
2015-04-26 03:02:25 -04:00
|
|
|
padding-left: 0;
|
2014-07-14 02:33:54 -04:00
|
|
|
margin-bottom: 0;
|
2015-04-26 03:02:25 -04:00
|
|
|
list-style: none;
|
2014-07-09 16:51:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link {
|
2016-12-23 13:39:53 -05:00
|
|
|
display: block;
|
2017-01-14 01:52:05 -05:00
|
|
|
padding: $nav-link-padding-y $nav-link-padding-x;
|
2014-07-09 16:51:49 -04:00
|
|
|
|
2015-01-01 04:05:01 -05:00
|
|
|
@include hover-focus {
|
2014-07-09 16:51:49 -04:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2015-08-15 01:45:55 -04:00
|
|
|
// Disabled state lightens text and removes hover/tab effects
|
2014-07-09 19:04:31 -04:00
|
|
|
&.disabled {
|
2014-12-02 17:02:35 -05:00
|
|
|
color: $nav-disabled-link-color;
|
2016-12-28 03:03:06 -05:00
|
|
|
cursor: $cursor-disabled;
|
2014-07-09 16:51:49 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
//
|
2012-11-03 19:14:44 -04:00
|
|
|
// Tabs
|
2014-07-09 19:04:31 -04:00
|
|
|
//
|
2012-01-07 23:40:28 -05:00
|
|
|
|
2012-01-31 00:29:50 -05:00
|
|
|
.nav-tabs {
|
2016-01-06 18:45:26 -05:00
|
|
|
border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
|
2014-07-09 19:04:31 -04:00
|
|
|
|
2017-04-02 05:21:04 -04:00
|
|
|
.nav-item,
|
|
|
|
.nav-link {
|
2016-01-06 18:45:26 -05:00
|
|
|
margin-bottom: -$nav-tabs-border-width;
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|
|
|
|
|
2017-04-02 05:21:04 -04:00
|
|
|
.nav-item .nav-link {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
.nav-link {
|
2016-01-06 18:45:26 -05:00
|
|
|
border: $nav-tabs-border-width solid transparent;
|
2016-04-02 18:47:12 -04:00
|
|
|
@include border-top-radius($nav-tabs-border-radius);
|
2013-04-16 10:45:51 -04:00
|
|
|
|
2015-01-01 04:05:01 -05:00
|
|
|
@include hover-focus {
|
2014-12-02 17:02:35 -05:00
|
|
|
border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
|
2013-04-16 10:45:51 -04:00
|
|
|
}
|
2015-08-18 23:25:31 -04:00
|
|
|
|
|
|
|
&.disabled {
|
2016-12-28 03:03:06 -05:00
|
|
|
color: $nav-disabled-link-color;
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: transparent;
|
2015-08-18 23:25:31 -04:00
|
|
|
}
|
2014-07-09 19:04:31 -04:00
|
|
|
}
|
2013-04-16 10:45:51 -04:00
|
|
|
|
2015-08-18 23:25:31 -04:00
|
|
|
.nav-link.active,
|
2016-12-28 17:49:21 -05:00
|
|
|
.nav-item.show .nav-link {
|
2017-03-03 14:15:41 -05:00
|
|
|
color: $nav-tabs-active-link-color;
|
|
|
|
background-color: $nav-tabs-active-link-bg;
|
|
|
|
border-color: $nav-tabs-active-link-border-color $nav-tabs-active-link-border-color $nav-tabs-active-link-bg;
|
2013-04-16 10:45:51 -04:00
|
|
|
}
|
2016-01-06 18:51:23 -05: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 02:52:10 -05:00
|
|
|
}
|
|
|
|
|
2013-01-17 20:02:35 -05:00
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
//
|
|
|
|
// Pills
|
|
|
|
//
|
2013-08-02 12:42:50 -04:00
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
.nav-pills {
|
|
|
|
.nav-link {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include border-radius($nav-pills-border-radius);
|
2013-10-28 23:51:39 -04:00
|
|
|
|
2017-04-02 05:21:04 -04:00
|
|
|
&.active,
|
|
|
|
.show & {
|
|
|
|
color: $nav-pills-active-link-color;
|
|
|
|
background-color: $nav-pills-active-link-bg;
|
|
|
|
}
|
2013-08-16 17:01:32 -04:00
|
|
|
}
|
2013-08-02 12:42:50 -04:00
|
|
|
}
|
|
|
|
|
2016-12-23 13:40:54 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Justified variants
|
|
|
|
//
|
|
|
|
|
|
|
|
.nav-fill {
|
2014-07-09 19:04:31 -04:00
|
|
|
.nav-item {
|
2016-12-23 13:40:54 -05:00
|
|
|
flex: 1 1 auto;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
2013-08-26 20:37:52 -04:00
|
|
|
|
2016-12-23 13:40:54 -05:00
|
|
|
.nav-justified {
|
|
|
|
.nav-item {
|
2017-03-19 18:47:34 -04:00
|
|
|
flex-basis: 0;
|
2017-03-19 20:47:53 -04:00
|
|
|
flex-grow: 1;
|
2016-12-23 13:40:54 -05:00
|
|
|
text-align: center;
|
2013-08-02 12:42:50 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-02-17 23:18:29 -05:00
|
|
|
// Tabbable tabs
|
2014-07-09 19:04:31 -04:00
|
|
|
//
|
2013-10-13 18:55:13 -04:00
|
|
|
// Hide tabbable panes to start, show them when `.active`
|
2016-12-23 13:40:54 -05:00
|
|
|
|
2013-10-13 18:55:13 -04:00
|
|
|
.tab-content {
|
|
|
|
> .tab-pane {
|
|
|
|
display: none;
|
|
|
|
}
|
2013-07-07 00:51:47 -04:00
|
|
|
> .active {
|
|
|
|
display: block;
|
|
|
|
}
|
2013-02-17 23:18:29 -05:00
|
|
|
}
|