2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Navs
|
|
|
|
// --------------------------------------------------
|
2012-01-07 23:40:28 -05:00
|
|
|
|
2014-07-09 16:51:49 -04:00
|
|
|
.nav {
|
2014-07-14 02:33:54 -04:00
|
|
|
margin-bottom: 0;
|
2014-07-09 16:51:49 -04:00
|
|
|
.list-unstyled();
|
|
|
|
&:extend(.clearfix all);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-item {
|
|
|
|
position: relative;
|
2014-07-09 19:04:31 -04:00
|
|
|
display: inline-block;
|
2014-07-09 16:51:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link {
|
2014-07-09 19:04:31 -04:00
|
|
|
display: inline-block;
|
2014-07-09 16:51:49 -04:00
|
|
|
padding: @nav-link-padding;
|
|
|
|
line-height: @line-height-base;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: @nav-link-hover-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Disabled state sets text to gray and nukes hover/tab effects
|
2014-07-09 19:04:31 -04:00
|
|
|
.disabled > &,
|
|
|
|
&.disabled {
|
2014-07-09 16:51:49 -04:00
|
|
|
color: @nav-disabled-link-color;
|
|
|
|
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @nav-disabled-link-hover-color;
|
|
|
|
background-color: transparent;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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 {
|
2013-07-25 03:43:14 -04:00
|
|
|
border-bottom: 1px solid @nav-tabs-border-color;
|
2014-07-09 19:04:31 -04:00
|
|
|
|
|
|
|
.nav-item {
|
2013-04-16 10:45:51 -04:00
|
|
|
float: left;
|
|
|
|
// Make the list-items overlay the bottom border
|
2013-04-21 22:35:36 -04:00
|
|
|
margin-bottom: -1px;
|
2013-04-16 10:45:51 -04:00
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
+ .nav-item {
|
|
|
|
margin-left: .2rem;
|
2013-04-16 10:45:51 -04:00
|
|
|
}
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
.nav-link {
|
|
|
|
display: block;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
.border-radius(@border-radius-base @border-radius-base 0 0);
|
2013-04-16 10:45:51 -04:00
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
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
|
|
|
}
|
2014-07-09 19:04:31 -04:00
|
|
|
}
|
2013-04-16 10:45:51 -04:00
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
.open > .nav-link,
|
|
|
|
.active > .nav-link,
|
|
|
|
.nav-link.open,
|
|
|
|
.nav-link.active {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
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 10:45:51 -04:00
|
|
|
}
|
|
|
|
}
|
2012-11-04 02:52:10 -05:00
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
.disabled > .nav-link,
|
|
|
|
.nav-link.disabled {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @nav-disabled-link-color;
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: transparent;
|
2013-04-16 10:45:51 -04:00
|
|
|
}
|
|
|
|
}
|
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-item {
|
|
|
|
float: left;
|
2013-08-16 17:01:32 -04:00
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
+ .nav-item {
|
|
|
|
margin-left: .2rem;
|
2013-08-02 12:42:50 -04:00
|
|
|
}
|
|
|
|
}
|
2013-08-16 17:01:32 -04:00
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
.nav-link {
|
|
|
|
display: block;
|
|
|
|
.border-radius(@nav-pills-border-radius);
|
2013-10-28 23:51:39 -04:00
|
|
|
}
|
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
.open > .nav-link,
|
|
|
|
.active > .nav-link,
|
|
|
|
.nav-link.open,
|
|
|
|
.nav-link.active {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @component-active-color;
|
|
|
|
background-color: @component-active-bg;
|
|
|
|
cursor: default;
|
2013-08-16 17:01:32 -04:00
|
|
|
}
|
|
|
|
}
|
2013-08-02 12:42:50 -04:00
|
|
|
}
|
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
.nav-stacked {
|
|
|
|
.nav-item {
|
|
|
|
float: none;
|
|
|
|
display: block;
|
2013-08-26 20:37:52 -04:00
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
+ .nav-item {
|
|
|
|
margin-top: .2rem;
|
|
|
|
margin-left: 0;
|
2013-08-26 20:37:52 -04:00
|
|
|
}
|
2013-08-02 12:42:50 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
//
|
2013-02-17 23:18:29 -05:00
|
|
|
// Tabbable tabs
|
2014-07-09 19:04:31 -04:00
|
|
|
//
|
2013-02-17 23:18:29 -05:00
|
|
|
|
2013-10-13 18:55:13 -04:00
|
|
|
// Hide tabbable panes to start, show them when `.active`
|
|
|
|
.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
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-07-09 19:04:31 -04:00
|
|
|
//
|
2013-05-12 18:47:18 -04:00
|
|
|
// Dropdowns
|
2014-07-09 19:04:31 -04:00
|
|
|
//
|
2013-05-12 18:47:18 -04:00
|
|
|
|
2012-03-23 02:09:31 -04:00
|
|
|
.nav-tabs .dropdown-menu {
|
2014-07-09 19:04:31 -04:00
|
|
|
// Make dropdown border overlap tab border
|
2013-05-12 19:12:13 -04:00
|
|
|
margin-top: -1px;
|
2012-11-03 19:14:44 -04:00
|
|
|
// Remove the top rounded corners here since there is a hard edge above the menu
|
|
|
|
.border-top-radius(0);
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|