2012-06-29 04:46:45 +00:00
|
|
|
//
|
|
|
|
// Navs
|
|
|
|
// --------------------------------------------------
|
2012-01-08 04:40:28 +00:00
|
|
|
|
|
|
|
|
2012-11-03 23:14:44 +00:00
|
|
|
// Base class
|
2013-01-18 01:02:35 +00:00
|
|
|
// --------------------------------------------------
|
2012-01-08 04:40:28 +00:00
|
|
|
|
|
|
|
.nav {
|
|
|
|
margin-left: 0;
|
2013-01-16 01:55:14 +00:00
|
|
|
margin-bottom: 0;
|
|
|
|
padding-left: 0; // Override default ul/ol
|
2012-01-08 04:40:28 +00:00
|
|
|
list-style: none;
|
2013-01-16 01:55:14 +00:00
|
|
|
.clear_float();
|
2012-11-03 23:14:44 +00:00
|
|
|
}
|
|
|
|
.nav > li {
|
2013-01-16 01:55:14 +00:00
|
|
|
display: block;
|
2012-01-08 04:40:28 +00:00
|
|
|
}
|
|
|
|
.nav > li > a {
|
2013-01-16 01:55:14 +00:00
|
|
|
position: relative;
|
2012-01-08 04:40:28 +00:00
|
|
|
display: block;
|
2013-01-16 01:55:14 +00:00
|
|
|
padding: 10px 15px;
|
2012-01-08 04:40:28 +00:00
|
|
|
}
|
2013-01-02 22:39:21 +00:00
|
|
|
.nav > li > a:hover,
|
|
|
|
.nav > li > a:focus {
|
2012-01-08 04:40:28 +00:00
|
|
|
text-decoration: none;
|
2012-01-21 23:24:06 +00:00
|
|
|
background-color: @grayLighter;
|
2012-01-08 04:40:28 +00:00
|
|
|
}
|
|
|
|
|
2012-03-29 00:02:13 +00:00
|
|
|
// Redeclare pull classes because of specifity
|
2013-01-18 01:02:35 +00:00
|
|
|
// Todo: consider making these utilities !important to avoid this bullshit
|
2012-03-29 00:02:13 +00:00
|
|
|
.nav > .pull-right {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2012-01-08 04:40:28 +00:00
|
|
|
|
|
|
|
|
2013-01-18 01:02:35 +00:00
|
|
|
// Nav variations
|
|
|
|
// --------------------------------------------------
|
2012-01-08 04:40:28 +00:00
|
|
|
|
2012-11-03 23:14:44 +00:00
|
|
|
// Tabs
|
|
|
|
// -------------------------
|
2012-01-08 04:40:28 +00:00
|
|
|
|
|
|
|
// Give the tabs something to sit on
|
2012-01-31 05:29:50 +00:00
|
|
|
.nav-tabs {
|
2012-01-08 04:40:28 +00:00
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
}
|
2012-01-31 05:29:50 +00:00
|
|
|
.nav-tabs > li {
|
2013-01-18 01:02:35 +00:00
|
|
|
float: left;
|
|
|
|
// Make the list-items overlay the bottom border
|
2012-01-08 04:40:28 +00:00
|
|
|
margin-bottom: -1px;
|
|
|
|
}
|
|
|
|
// Actual tabs (as links)
|
2012-01-31 05:29:50 +00:00
|
|
|
.nav-tabs > li > a {
|
2012-11-03 23:14:44 +00:00
|
|
|
margin-right: 2px;
|
2012-11-30 22:45:25 +00:00
|
|
|
line-height: @line-height-base;
|
2012-01-08 04:40:28 +00:00
|
|
|
border: 1px solid transparent;
|
2012-12-17 18:11:33 +00:00
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
2012-01-08 04:40:28 +00:00
|
|
|
&:hover {
|
2012-01-21 23:24:06 +00:00
|
|
|
border-color: @grayLighter @grayLighter #ddd;
|
2012-01-08 04:40:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// Active state, and it's :hover to override normal :hover
|
2012-01-31 05:29:50 +00:00
|
|
|
.nav-tabs > .active > a,
|
2013-01-02 22:39:21 +00:00
|
|
|
.nav-tabs > .active > a:hover,
|
|
|
|
.nav-tabs > .active > a:focus {
|
2012-01-08 04:40:28 +00:00
|
|
|
color: @gray;
|
2012-11-30 22:37:24 +00:00
|
|
|
background-color: @body-background;
|
2012-01-08 04:40:28 +00:00
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-bottom-color: transparent;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
2012-11-04 07:52:10 +00:00
|
|
|
// Pills
|
|
|
|
// -------------------------
|
|
|
|
|
2013-01-18 01:02:35 +00:00
|
|
|
.nav-pills > li {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2012-11-04 07:52:10 +00:00
|
|
|
// Links rendered as pills
|
|
|
|
.nav-pills > li > a {
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
.nav-pills > li + li > a {
|
|
|
|
margin-left: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Active state
|
|
|
|
.nav-pills > .active > a,
|
2013-01-02 22:39:21 +00:00
|
|
|
.nav-pills > .active > a:hover,
|
|
|
|
.nav-pills > .active > a:focus {
|
2012-11-30 23:05:23 +00:00
|
|
|
color: #fff;
|
2012-11-30 22:37:24 +00:00
|
|
|
background-color: @link-color;
|
2012-11-04 07:52:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Stacked pills
|
|
|
|
.nav-stacked > li {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
.nav-stacked > li + li > a {
|
|
|
|
margin-top: 2px;
|
2013-01-18 01:02:35 +00:00
|
|
|
margin-left: 0; // no need for this gap between nav items
|
2012-11-04 07:52:10 +00:00
|
|
|
}
|
|
|
|
|
2013-01-18 01:02:35 +00:00
|
|
|
// Justified nav links
|
2012-11-04 07:52:10 +00:00
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.nav-justified {
|
|
|
|
// Negative margin doesn't work, so we hack it
|
2013-01-18 01:02:35 +00:00
|
|
|
max-height: 40px;
|
2012-11-04 07:52:10 +00:00
|
|
|
}
|
|
|
|
.nav-justified > li {
|
|
|
|
float: none;
|
|
|
|
display: table-cell;
|
|
|
|
width: 1%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2012-11-03 23:14:44 +00:00
|
|
|
// Lists
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.nav-list > li > a {
|
|
|
|
margin-bottom: -1px; // pull up the following link for a 1px border between
|
|
|
|
border: 1px solid #e5e5e5;
|
|
|
|
}
|
|
|
|
.nav-list > li:first-child > a {
|
2013-01-18 01:02:35 +00:00
|
|
|
border-top-left-radius: @border-radius-base;
|
|
|
|
border-top-right-radius: @border-radius-base;
|
2012-11-03 23:14:44 +00:00
|
|
|
}
|
|
|
|
.nav-list > li:last-child > a {
|
2013-01-18 01:02:35 +00:00
|
|
|
border-bottom-left-radius: @border-radius-base;
|
|
|
|
border-bottom-right-radius: @border-radius-base;
|
2012-11-03 23:14:44 +00:00
|
|
|
}
|
|
|
|
.nav-list > .active > a,
|
2013-02-06 03:53:44 +00:00
|
|
|
.nav-list > .active > a:hover,
|
|
|
|
.nav-list > .active > a:focus {
|
2013-01-18 01:02:35 +00:00
|
|
|
z-index: 2; // Bring active item forward so border sits on top of next element
|
2012-11-03 23:14:44 +00:00
|
|
|
color: #fff;
|
2012-11-30 22:37:24 +00:00
|
|
|
background-color: @link-color;
|
2013-01-18 01:02:35 +00:00
|
|
|
border-color: @link-color;
|
2012-11-03 23:14:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-18 01:02:35 +00:00
|
|
|
// Nav states and addons
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Disabled state
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
// Gray out text
|
|
|
|
.nav > .disabled > a {
|
|
|
|
color: @grayLight;
|
|
|
|
}
|
|
|
|
// Nuke hover effects
|
2013-02-06 03:53:44 +00:00
|
|
|
.nav > .disabled > a:hover,
|
|
|
|
.nav > .disabled > a:focus {
|
2013-01-18 01:02:35 +00:00
|
|
|
text-decoration: none;
|
|
|
|
background-color: transparent;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Nav headers (for dropdowns and lists)
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.nav-header {
|
|
|
|
display: block;
|
|
|
|
padding: 3px 15px;
|
|
|
|
font-size: 11px;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: @line-height-base;
|
|
|
|
color: @grayLight;
|
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
// Space them out when they follow another list item (link)
|
|
|
|
.nav li + .nav-header {
|
|
|
|
margin-top: 9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dividers (basically an hr) within the dropdown
|
|
|
|
.nav .divider {
|
|
|
|
.nav-divider();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-18 04:18:29 +00:00
|
|
|
// Tabbable tabs
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
// Clear any floats
|
|
|
|
.tabbable {
|
|
|
|
.clearfix();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Show/hide tabbable areas
|
|
|
|
.tab-content > .tab-pane,
|
|
|
|
.pill-content > .pill-pane {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.tab-content > .active,
|
|
|
|
.pill-content > .active {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-18 01:02:35 +00:00
|
|
|
/*
|
|
|
|
// Prevent IE8 from misplacing imgs
|
|
|
|
// See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
|
|
|
|
.nav > li > a > img {
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
|
2012-11-03 23:14:44 +00:00
|
|
|
// Dropdowns
|
|
|
|
// -------------------------
|
2012-01-08 04:40:28 +00:00
|
|
|
|
2012-03-23 06:09:31 +00:00
|
|
|
.nav-tabs .dropdown-menu {
|
2012-11-03 23:14:44 +00:00
|
|
|
// Remove the top rounded corners here since there is a hard edge above the menu
|
|
|
|
.border-top-radius(0);
|
2012-01-08 04:40:28 +00:00
|
|
|
}
|
2012-01-08 23:33:44 +00:00
|
|
|
|
|
|
|
// Default dropdown links
|
|
|
|
// -------------------------
|
|
|
|
// Make carets use linkColor to start
|
2012-06-25 03:42:31 +00:00
|
|
|
.nav .dropdown-toggle .caret {
|
2012-11-30 22:37:24 +00:00
|
|
|
border-top-color: @link-color;
|
|
|
|
border-bottom-color: @link-color;
|
2012-11-03 23:14:44 +00:00
|
|
|
margin-top: 8px;
|
2012-01-08 04:40:28 +00:00
|
|
|
}
|
2012-06-25 03:42:31 +00:00
|
|
|
.nav .dropdown-toggle:hover .caret {
|
2012-11-30 22:37:24 +00:00
|
|
|
border-top-color: @link-color-hover;
|
|
|
|
border-bottom-color: @link-color-hover;
|
2012-01-08 10:15:47 +00:00
|
|
|
}
|
2012-01-08 23:33:44 +00:00
|
|
|
|
|
|
|
// Active dropdown links
|
|
|
|
// -------------------------
|
2012-06-25 03:42:31 +00:00
|
|
|
.nav .active .dropdown-toggle .caret {
|
|
|
|
border-top-color: #fff;
|
|
|
|
border-bottom-color: #fff;
|
2012-01-08 23:33:44 +00:00
|
|
|
}
|
2012-07-18 05:26:53 +00:00
|
|
|
.nav-tabs .active .dropdown-toggle .caret {
|
|
|
|
border-top-color: @gray;
|
|
|
|
border-bottom-color: @gray;
|
|
|
|
}
|
2012-01-08 23:33:44 +00:00
|
|
|
|
|
|
|
// Active:hover dropdown links
|
|
|
|
// -------------------------
|
|
|
|
.nav > .dropdown.active > a:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Open dropdowns
|
|
|
|
// -------------------------
|
2012-01-31 05:29:50 +00:00
|
|
|
.nav-tabs .open .dropdown-toggle,
|
|
|
|
.nav-pills .open .dropdown-toggle,
|
2012-04-01 22:22:52 +00:00
|
|
|
.nav > li.dropdown.open.active > a:hover {
|
2012-11-30 23:05:23 +00:00
|
|
|
color: #fff;
|
2012-01-21 23:24:06 +00:00
|
|
|
background-color: @grayLight;
|
|
|
|
border-color: @grayLight;
|
2012-01-08 04:40:28 +00:00
|
|
|
}
|
2012-04-01 22:22:52 +00:00
|
|
|
.nav li.dropdown.open .caret,
|
|
|
|
.nav li.dropdown.open.active .caret,
|
|
|
|
.nav li.dropdown.open a:hover .caret {
|
2012-11-30 23:05:23 +00:00
|
|
|
border-top-color: #fff;
|
|
|
|
border-bottom-color: #fff;
|
2013-03-01 03:46:49 +00:00
|
|
|
.opacity(1);
|
2012-01-08 04:40:28 +00:00
|
|
|
}
|
|
|
|
|
2012-01-08 10:15:47 +00:00
|
|
|
// Dropdowns in stacked tabs
|
2012-01-31 05:29:50 +00:00
|
|
|
.tabs-stacked .open > a:hover {
|
2012-01-21 23:24:06 +00:00
|
|
|
border-color: @grayLight;
|
2012-01-08 10:15:47 +00:00
|
|
|
}
|
|
|
|
|
2013-01-16 01:55:14 +00:00
|
|
|
*/
|