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