2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Navs
|
|
|
|
// --------------------------------------------------
|
2012-01-07 23:40:28 -05:00
|
|
|
|
|
|
|
|
2012-11-03 19:14:44 -04:00
|
|
|
// Base class
|
|
|
|
// -------------------------
|
2012-01-07 23:40:28 -05:00
|
|
|
|
|
|
|
.nav {
|
|
|
|
margin-left: 0;
|
2012-11-30 17:45:25 -05:00
|
|
|
margin-bottom: @line-height-base;
|
2012-01-07 23:40:28 -05:00
|
|
|
list-style: none;
|
2012-11-03 19:14:44 -04:00
|
|
|
.clearfix();
|
|
|
|
}
|
|
|
|
.nav > li {
|
|
|
|
float: left;
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|
|
|
|
.nav > li > a {
|
|
|
|
display: block;
|
2012-11-03 19:14:44 -04:00
|
|
|
padding: 8px 12px;
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|
|
|
|
.nav > li > a:hover {
|
|
|
|
text-decoration: none;
|
2012-01-21 18:24:06 -05:00
|
|
|
background-color: @grayLighter;
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|
|
|
|
|
2012-11-02 10:04:34 -04:00
|
|
|
// Prevent IE8 from misplacing imgs
|
2012-11-30 02:27:09 -05:00
|
|
|
// See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
|
2012-11-02 10:04:34 -04:00
|
|
|
.nav > li > a > img {
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
|
2012-03-28 20:02:13 -04:00
|
|
|
// Redeclare pull classes because of specifity
|
|
|
|
.nav > .pull-right {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2012-02-12 17:09:13 -05:00
|
|
|
// Nav headers (for dropdowns and lists)
|
2012-07-18 01:40:38 -04:00
|
|
|
.nav-header {
|
2012-02-12 17:09:13 -05:00
|
|
|
display: block;
|
|
|
|
padding: 3px 15px;
|
|
|
|
font-size: 11px;
|
|
|
|
font-weight: bold;
|
2012-11-30 17:45:25 -05:00
|
|
|
line-height: @line-height-base;
|
2012-02-12 17:09:13 -05:00
|
|
|
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;
|
|
|
|
}
|
2012-01-07 23:40:28 -05:00
|
|
|
|
2012-02-20 15:38:49 -05:00
|
|
|
// Dividers (basically an hr) within the dropdown
|
2012-10-01 03:06:44 -04:00
|
|
|
.nav .divider {
|
2012-02-20 15:38:49 -05:00
|
|
|
.nav-divider();
|
|
|
|
}
|
2012-01-07 23:40:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-03 19:14:44 -04:00
|
|
|
// Tabs
|
|
|
|
// -------------------------
|
2012-01-07 23:40:28 -05:00
|
|
|
|
|
|
|
// Give the tabs something to sit on
|
2012-01-31 00:29:50 -05:00
|
|
|
.nav-tabs {
|
2012-01-07 23:40:28 -05:00
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
// Make the list-items overlay the bottom border
|
2012-01-31 00:29:50 -05:00
|
|
|
.nav-tabs > li {
|
2012-01-07 23:40:28 -05:00
|
|
|
margin-bottom: -1px;
|
|
|
|
}
|
|
|
|
// Actual tabs (as links)
|
2012-01-31 00:29:50 -05:00
|
|
|
.nav-tabs > li > a {
|
2012-11-03 19:14:44 -04:00
|
|
|
margin-right: 2px;
|
2012-11-30 17:45:25 -05:00
|
|
|
line-height: @line-height-base;
|
2012-01-07 23:40:28 -05:00
|
|
|
border: 1px solid transparent;
|
2012-10-01 02:11:54 -04:00
|
|
|
border-radius: 4px 4px 0 0;
|
2012-01-07 23:40:28 -05:00
|
|
|
&:hover {
|
2012-01-21 18:24:06 -05:00
|
|
|
border-color: @grayLighter @grayLighter #ddd;
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// Active state, and it's :hover to override normal :hover
|
2012-01-31 00:29:50 -05:00
|
|
|
.nav-tabs > .active > a,
|
|
|
|
.nav-tabs > .active > a:hover {
|
2012-01-07 23:40:28 -05:00
|
|
|
color: @gray;
|
2012-11-30 17:37:24 -05:00
|
|
|
background-color: @body-background;
|
2012-01-07 23:40:28 -05:00
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-bottom-color: transparent;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
2012-03-23 02:09:31 -04:00
|
|
|
|
2012-11-03 19:14:44 -04:00
|
|
|
|
2012-11-04 02:52:10 -05:00
|
|
|
// Pills
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
// 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,
|
|
|
|
.nav-pills > .active > a:hover {
|
2012-11-30 18:05:23 -05:00
|
|
|
color: #fff;
|
2012-11-30 17:37:24 -05:00
|
|
|
background-color: @link-color;
|
2012-11-04 02:52:10 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Stacked pills
|
|
|
|
.nav-stacked > li {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
.nav-stacked > li + li > a {
|
|
|
|
margin-top: 2px;
|
|
|
|
margin-left: 0; // no need for the gap between nav items
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Justified navs
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.nav-justified {
|
|
|
|
// Negative margin doesn't work, so we hack it
|
|
|
|
max-height: 37px;
|
|
|
|
}
|
|
|
|
.nav-justified > li {
|
|
|
|
float: none;
|
|
|
|
display: table-cell;
|
|
|
|
width: 1%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-03 19:14:44 -04:00
|
|
|
// Lists
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.nav-list {
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 6px;
|
|
|
|
.box-shadow(0 1px 4px rgba(0,0,0,.065))
|
|
|
|
}
|
|
|
|
.nav-list > li {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
.nav-list > li > a {
|
|
|
|
margin-bottom: -1px; // pull up the following link for a 1px border between
|
|
|
|
border: 1px solid #e5e5e5;
|
|
|
|
}
|
|
|
|
.nav-list > li > a:hover {
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
}
|
|
|
|
.nav-list > li:first-child > a {
|
|
|
|
border-radius: 6px 6px 0 0;
|
|
|
|
}
|
|
|
|
.nav-list > li:last-child > a {
|
|
|
|
border-radius: 0 0 6px 6px;
|
|
|
|
}
|
|
|
|
.nav-list > .active > a,
|
|
|
|
.nav-list > .active > a:hover {
|
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
|
|
|
padding: 9px 15px;
|
|
|
|
color: #fff;
|
|
|
|
text-shadow: 0 1px 0 rgba(0,0,0,.15);
|
2012-11-30 17:37:24 -05:00
|
|
|
background-color: @link-color;
|
2012-11-03 19:14:44 -04:00
|
|
|
border-width: 0;
|
|
|
|
.box-shadow(~"inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1)")
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Dropdowns
|
|
|
|
// -------------------------
|
2012-01-07 23:40:28 -05:00
|
|
|
|
2012-03-23 02:09:31 -04:00
|
|
|
.nav-tabs .dropdown-menu {
|
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
|
|
|
}
|
2012-01-08 18:33:44 -05:00
|
|
|
|
|
|
|
// Default dropdown links
|
|
|
|
// -------------------------
|
|
|
|
// Make carets use linkColor to start
|
2012-06-24 23:42:31 -04:00
|
|
|
.nav .dropdown-toggle .caret {
|
2012-11-30 17:37:24 -05:00
|
|
|
border-top-color: @link-color;
|
|
|
|
border-bottom-color: @link-color;
|
2012-11-03 19:14:44 -04:00
|
|
|
margin-top: 8px;
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|
2012-06-24 23:42:31 -04:00
|
|
|
.nav .dropdown-toggle:hover .caret {
|
2012-11-30 17:37:24 -05:00
|
|
|
border-top-color: @link-color-hover;
|
|
|
|
border-bottom-color: @link-color-hover;
|
2012-01-08 05:15:47 -05:00
|
|
|
}
|
2012-01-08 18:33:44 -05:00
|
|
|
|
|
|
|
// Active dropdown links
|
|
|
|
// -------------------------
|
2012-06-24 23:42:31 -04:00
|
|
|
.nav .active .dropdown-toggle .caret {
|
|
|
|
border-top-color: #fff;
|
|
|
|
border-bottom-color: #fff;
|
2012-01-08 18:33:44 -05:00
|
|
|
}
|
2012-07-18 01:26:53 -04:00
|
|
|
.nav-tabs .active .dropdown-toggle .caret {
|
|
|
|
border-top-color: @gray;
|
|
|
|
border-bottom-color: @gray;
|
|
|
|
}
|
2012-01-08 18:33:44 -05:00
|
|
|
|
|
|
|
// Active:hover dropdown links
|
|
|
|
// -------------------------
|
|
|
|
.nav > .dropdown.active > a:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Open dropdowns
|
|
|
|
// -------------------------
|
2012-01-31 00:29:50 -05:00
|
|
|
.nav-tabs .open .dropdown-toggle,
|
|
|
|
.nav-pills .open .dropdown-toggle,
|
2012-04-01 18:22:52 -04:00
|
|
|
.nav > li.dropdown.open.active > a:hover {
|
2012-11-30 18:05:23 -05:00
|
|
|
color: #fff;
|
2012-01-21 18:24:06 -05:00
|
|
|
background-color: @grayLight;
|
|
|
|
border-color: @grayLight;
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|
2012-04-01 18:22:52 -04:00
|
|
|
.nav li.dropdown.open .caret,
|
|
|
|
.nav li.dropdown.open.active .caret,
|
|
|
|
.nav li.dropdown.open a:hover .caret {
|
2012-11-30 18:05:23 -05:00
|
|
|
border-top-color: #fff;
|
|
|
|
border-bottom-color: #fff;
|
2012-01-07 23:40:28 -05:00
|
|
|
.opacity(100);
|
|
|
|
}
|
|
|
|
|
2012-01-08 05:15:47 -05:00
|
|
|
// Dropdowns in stacked tabs
|
2012-01-31 00:29:50 -05:00
|
|
|
.tabs-stacked .open > a:hover {
|
2012-01-21 18:24:06 -05:00
|
|
|
border-color: @grayLight;
|
2012-01-08 05:15:47 -05:00
|
|
|
}
|
|
|
|
|
2012-01-07 23:40:28 -05:00
|
|
|
|
|
|
|
|
2012-11-03 19:14:44 -04:00
|
|
|
// Tabbable tabs
|
|
|
|
// -------------------------
|
2012-01-08 01:06:44 -05:00
|
|
|
|
|
|
|
// Clear any floats
|
2012-01-07 23:40:28 -05:00
|
|
|
.tabbable {
|
2012-01-08 01:06:44 -05:00
|
|
|
.clearfix();
|
|
|
|
}
|
2012-02-11 20:27:08 -05:00
|
|
|
.tab-content {
|
2012-04-01 03:15:04 -04:00
|
|
|
overflow: auto; // prevent content from running below tabs
|
2012-02-11 20:27:08 -05:00
|
|
|
}
|
2012-01-08 01:07:18 -05:00
|
|
|
|
|
|
|
// Show/hide tabbable areas
|
|
|
|
.tab-content > .tab-pane,
|
|
|
|
.pill-content > .pill-pane {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.tab-content > .active,
|
|
|
|
.pill-content > .active {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-06-19 16:52:07 -04:00
|
|
|
|
2012-11-03 19:14:44 -04:00
|
|
|
// Disabled state
|
|
|
|
// -------------------------
|
2012-06-19 16:52:07 -04:00
|
|
|
|
|
|
|
// Gray out text
|
|
|
|
.nav > .disabled > a {
|
|
|
|
color: @grayLight;
|
|
|
|
}
|
|
|
|
// Nuke hover effects
|
|
|
|
.nav > .disabled > a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: transparent;
|
|
|
|
cursor: default;
|
|
|
|
}
|