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