2012-01-08 05:40:28 +01:00
|
|
|
// NAVIGATIONS
|
|
|
|
// -----------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// BASE CLASS
|
|
|
|
// ----------
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-bottom: @baseLineHeight;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make links block level
|
|
|
|
.nav > li > a {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.nav > li > a:hover {
|
|
|
|
text-decoration: none;
|
2012-01-22 00:24:06 +01:00
|
|
|
background-color: @grayLighter;
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
|
|
|
|
2012-02-12 23:09:13 +01:00
|
|
|
// Nav headers (for dropdowns and lists)
|
|
|
|
.nav .nav-header {
|
|
|
|
display: block;
|
|
|
|
padding: 3px 15px;
|
|
|
|
font-size: 11px;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: @baseLineHeight;
|
|
|
|
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-08 05:40:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
// NAV LIST
|
|
|
|
// --------
|
|
|
|
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-list {
|
2012-01-08 05:40:28 +01:00
|
|
|
padding-left: 14px;
|
|
|
|
padding-right: 14px;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-list > li > a,
|
|
|
|
.nav-list .nav-header {
|
2012-01-08 05:40:28 +01:00
|
|
|
margin-left: -15px;
|
|
|
|
margin-right: -15px;
|
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
|
|
|
}
|
2012-02-12 23:09:13 +01:00
|
|
|
.nav-list > li > a {
|
|
|
|
padding: 3px 15px;
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
2012-02-02 02:54:21 +01:00
|
|
|
.nav-list .active > a,
|
|
|
|
.nav-list .active > a:hover {
|
2012-01-08 05:40:28 +01:00
|
|
|
color: @white;
|
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
|
|
|
|
background-color: @linkColor;
|
|
|
|
}
|
2012-02-02 02:54:21 +01:00
|
|
|
.nav-list [class^="icon-"] {
|
2012-01-28 04:57:53 +01:00
|
|
|
margin-right: 2px;
|
|
|
|
}
|
2012-02-20 21:38:49 +01:00
|
|
|
// Dividers (basically an hr) within the dropdown
|
|
|
|
.nav-list .divider {
|
|
|
|
.nav-divider();
|
|
|
|
}
|
2012-01-08 05:40:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TABS AND PILLS
|
|
|
|
// -------------
|
|
|
|
|
|
|
|
// Common styles
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs,
|
|
|
|
.nav-pills {
|
2012-01-08 05:40:28 +01:00
|
|
|
.clearfix();
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs > li,
|
|
|
|
.nav-pills > li {
|
2012-01-08 05:40:28 +01:00
|
|
|
float: left;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs > li > a,
|
|
|
|
.nav-pills > li > a {
|
2012-01-08 05:40:28 +01:00
|
|
|
padding-right: 12px;
|
|
|
|
padding-left: 12px;
|
|
|
|
margin-right: 2px;
|
|
|
|
line-height: 14px; // keeps the overall height an even number
|
|
|
|
}
|
|
|
|
|
|
|
|
// TABS
|
|
|
|
// ----
|
|
|
|
|
|
|
|
// Give the tabs something to sit on
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs {
|
2012-01-08 05:40:28 +01:00
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make the list-items overlay the bottom border
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs > li {
|
2012-01-08 05:40:28 +01:00
|
|
|
margin-bottom: -1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Actual tabs (as links)
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs > li > a {
|
2012-01-08 05:40:28 +01:00
|
|
|
padding-top: 9px;
|
|
|
|
padding-bottom: 9px;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
.border-radius(4px 4px 0 0);
|
|
|
|
&:hover {
|
2012-01-22 00:24:06 +01:00
|
|
|
border-color: @grayLighter @grayLighter #ddd;
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// Active state, and it's :hover to override normal :hover
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs > .active > a,
|
|
|
|
.nav-tabs > .active > a:hover {
|
2012-01-08 05:40:28 +01:00
|
|
|
color: @gray;
|
|
|
|
background-color: @white;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-bottom-color: transparent;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
// PILLS
|
|
|
|
// -----
|
|
|
|
|
|
|
|
// Links rendered as pills
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-pills > li > a {
|
2012-01-08 05:40:28 +01:00
|
|
|
padding-top: 8px;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
margin-top: 2px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
.border-radius(5px);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Active state
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-pills .active > a,
|
|
|
|
.nav-pills .active > a:hover {
|
2012-01-08 05:40:28 +01:00
|
|
|
color: @white;
|
|
|
|
background-color: @linkColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// STACKED NAV
|
|
|
|
// -----------
|
|
|
|
|
|
|
|
// Stacked tabs and pills
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-stacked > li {
|
2012-01-08 05:40:28 +01:00
|
|
|
float: none;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-stacked > li > a {
|
2012-01-08 05:40:28 +01:00
|
|
|
margin-right: 0; // no need for the gap between nav items
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tabs
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs.nav-stacked {
|
2012-01-08 05:40:28 +01:00
|
|
|
border-bottom: 0;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs.nav-stacked > li > a {
|
2012-01-08 05:40:28 +01:00
|
|
|
border: 1px solid #ddd;
|
|
|
|
.border-radius(0);
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs.nav-stacked > li:first-child > a {
|
2012-01-08 05:40:28 +01:00
|
|
|
.border-radius(4px 4px 0 0);
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs.nav-stacked > li:last-child > a {
|
2012-01-08 05:40:28 +01:00
|
|
|
.border-radius(0 0 4px 4px);
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs.nav-stacked > li > a:hover {
|
2012-01-08 05:40:28 +01:00
|
|
|
border-color: #ddd;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Pills
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-pills.nav-stacked > li > a {
|
2012-01-08 05:40:28 +01:00
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-pills.nav-stacked > li:last-child > a {
|
2012-01-08 05:40:28 +01:00
|
|
|
margin-bottom: 1px; // decrease margin to match sizing of stacked tabs
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DROPDOWNS
|
|
|
|
// ---------
|
|
|
|
|
|
|
|
// Position the menu
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs .dropdown-menu,
|
|
|
|
.nav-pills .dropdown-menu {
|
2012-01-18 14:02:18 +01:00
|
|
|
margin-top: 1px;
|
2012-01-08 05:40:28 +01:00
|
|
|
border-width: 1px;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-pills .dropdown-menu {
|
2012-01-08 05:40:28 +01:00
|
|
|
.border-radius(4px);
|
|
|
|
}
|
2012-01-09 00:33:44 +01:00
|
|
|
|
|
|
|
// Default dropdown links
|
|
|
|
// -------------------------
|
|
|
|
// Make carets use linkColor to start
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs .dropdown-toggle .caret,
|
|
|
|
.nav-pills .dropdown-toggle .caret {
|
2012-01-08 11:15:47 +01:00
|
|
|
border-top-color: @linkColor;
|
2012-01-08 05:40:28 +01:00
|
|
|
margin-top: 6px;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs .dropdown-toggle:hover .caret,
|
|
|
|
.nav-pills .dropdown-toggle:hover .caret {
|
2012-01-08 11:15:47 +01:00
|
|
|
border-top-color: @linkColorHover;
|
|
|
|
}
|
2012-01-09 00:33:44 +01:00
|
|
|
|
|
|
|
// Active dropdown links
|
|
|
|
// -------------------------
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs .active .dropdown-toggle .caret,
|
|
|
|
.nav-pills .active .dropdown-toggle .caret {
|
2012-01-22 00:24:06 +01:00
|
|
|
border-top-color: @grayDark;
|
2012-01-09 00:33:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Active:hover dropdown links
|
|
|
|
// -------------------------
|
|
|
|
.nav > .dropdown.active > a:hover {
|
2012-01-22 00:24:06 +01:00
|
|
|
color: @black;
|
2012-01-09 00:33:44 +01:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Open dropdowns
|
|
|
|
// -------------------------
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs .open .dropdown-toggle,
|
|
|
|
.nav-pills .open .dropdown-toggle,
|
2012-01-09 00:33:44 +01:00
|
|
|
.nav > .open.active > a:hover {
|
2012-01-22 00:24:06 +01:00
|
|
|
color: @white;
|
|
|
|
background-color: @grayLight;
|
|
|
|
border-color: @grayLight;
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
2012-01-08 11:15:47 +01:00
|
|
|
.nav .open .caret,
|
2012-01-09 00:33:44 +01:00
|
|
|
.nav .open.active .caret,
|
2012-01-08 11:15:47 +01:00
|
|
|
.nav .open a:hover .caret {
|
2012-01-22 00:24:06 +01:00
|
|
|
border-top-color: @white;
|
2012-01-08 05:40:28 +01:00
|
|
|
.opacity(100);
|
|
|
|
}
|
|
|
|
|
2012-01-08 11:15:47 +01:00
|
|
|
// Dropdowns in stacked tabs
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-stacked .open > a:hover {
|
2012-01-22 00:24:06 +01:00
|
|
|
border-color: @grayLight;
|
2012-01-08 11:15:47 +01:00
|
|
|
}
|
|
|
|
|
2012-01-08 05:40:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
// TABBABLE
|
|
|
|
// --------
|
|
|
|
|
2012-01-08 07:06:44 +01:00
|
|
|
|
|
|
|
// COMMON STYLES
|
2012-01-18 14:02:18 +01:00
|
|
|
// -------------
|
2012-01-08 07:06:44 +01:00
|
|
|
|
|
|
|
// Clear any floats
|
2012-01-08 05:40:28 +01:00
|
|
|
.tabbable {
|
2012-01-08 07:06:44 +01:00
|
|
|
.clearfix();
|
|
|
|
}
|
2012-02-12 02:27:08 +01:00
|
|
|
.tab-content {
|
2012-02-21 01:06:42 +01:00
|
|
|
display: table; // prevent content from running below tabs
|
2012-02-12 02:27:08 +01:00
|
|
|
}
|
2012-01-08 07:07:18 +01:00
|
|
|
|
2012-01-08 07:06:44 +01:00
|
|
|
// Remove border on bottom, left, right
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-below .nav-tabs,
|
|
|
|
.tabs-right .nav-tabs,
|
|
|
|
.tabs-left .nav-tabs {
|
2012-01-08 07:06:44 +01:00
|
|
|
border-bottom: 0;
|
|
|
|
}
|
2012-01-08 05:40:28 +01:00
|
|
|
|
2012-01-08 07:07:18 +01:00
|
|
|
// Show/hide tabbable areas
|
|
|
|
.tab-content > .tab-pane,
|
|
|
|
.pill-content > .pill-pane {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.tab-content > .active,
|
|
|
|
.pill-content > .active {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-08 07:06:44 +01:00
|
|
|
// BOTTOM
|
|
|
|
// ------
|
2012-01-08 05:40:28 +01:00
|
|
|
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-below .nav-tabs {
|
2012-01-08 07:06:44 +01:00
|
|
|
border-top: 1px solid #ddd;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-below .nav-tabs > li {
|
2012-01-08 07:06:44 +01:00
|
|
|
margin-top: -1px;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-below .nav-tabs > li > a {
|
2012-01-08 07:06:44 +01:00
|
|
|
.border-radius(0 0 4px 4px);
|
|
|
|
&:hover {
|
|
|
|
border-bottom-color: transparent;
|
|
|
|
border-top-color: #ddd;
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
2012-01-08 07:06:44 +01:00
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-below .nav-tabs .active > a,
|
|
|
|
.tabs-below .nav-tabs .active > a:hover {
|
2012-01-08 07:06:44 +01:00
|
|
|
border-color: transparent #ddd #ddd #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
// LEFT & RIGHT
|
|
|
|
// ------------
|
|
|
|
|
|
|
|
// Common styles
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-left .nav-tabs > li,
|
|
|
|
.tabs-right .nav-tabs > li {
|
2012-01-08 07:06:44 +01:00
|
|
|
float: none;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-left .nav-tabs > li > a,
|
|
|
|
.tabs-right .nav-tabs > li > a {
|
2012-01-08 07:06:44 +01:00
|
|
|
min-width: 74px;
|
|
|
|
margin-right: 0;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tabs on the left
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-left .nav-tabs {
|
2012-01-08 07:06:44 +01:00
|
|
|
float: left;
|
|
|
|
margin-right: 19px;
|
|
|
|
border-right: 1px solid #ddd;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-left .nav-tabs > li > a {
|
2012-01-08 07:06:44 +01:00
|
|
|
margin-right: -1px;
|
|
|
|
.border-radius(4px 0 0 4px);
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-left .nav-tabs > li > a:hover {
|
2012-01-22 00:24:06 +01:00
|
|
|
border-color: @grayLighter #ddd @grayLighter @grayLighter;
|
2012-01-08 07:06:44 +01:00
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-left .nav-tabs .active > a,
|
|
|
|
.tabs-left .nav-tabs .active > a:hover {
|
2012-01-08 07:06:44 +01:00
|
|
|
border-color: #ddd transparent #ddd #ddd;
|
2012-01-27 22:35:21 +01:00
|
|
|
*border-right-color: @white;
|
2012-01-08 07:06:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Tabs on the right
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-right .nav-tabs {
|
2012-01-08 07:06:44 +01:00
|
|
|
float: right;
|
|
|
|
margin-left: 19px;
|
|
|
|
border-left: 1px solid #ddd;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-right .nav-tabs > li > a {
|
2012-01-08 07:06:44 +01:00
|
|
|
margin-left: -1px;
|
|
|
|
.border-radius(0 4px 4px 0);
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-right .nav-tabs > li > a:hover {
|
2012-01-22 00:24:06 +01:00
|
|
|
border-color: @grayLighter @grayLighter @grayLighter #ddd;
|
2012-01-08 07:06:44 +01:00
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.tabs-right .nav-tabs .active > a,
|
|
|
|
.tabs-right .nav-tabs .active > a:hover {
|
2012-01-08 07:06:44 +01:00
|
|
|
border-color: #ddd #ddd #ddd transparent;
|
2012-01-27 22:35:21 +01:00
|
|
|
*border-left-color: @white;
|
2012-01-08 07:06:44 +01:00
|
|
|
}
|