2012-01-07 23:40:28 -05: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-21 18:24:06 -05:00
|
|
|
background-color: @grayLighter;
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// NAV LIST
|
|
|
|
// --------
|
|
|
|
|
|
|
|
.nav.list {
|
|
|
|
padding-left: 14px;
|
|
|
|
padding-right: 14px;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
.nav.list > li > a,
|
|
|
|
.nav.list .nav-header {
|
|
|
|
display: block;
|
|
|
|
padding: 3px 15px;
|
|
|
|
margin-left: -15px;
|
|
|
|
margin-right: -15px;
|
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
|
|
|
}
|
|
|
|
.nav.list .nav-header {
|
|
|
|
font-size: 11px;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: @baseLineHeight;
|
|
|
|
color: @grayLight;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
.nav.list > li + .nav-header {
|
|
|
|
margin-top: 9px;
|
|
|
|
}
|
|
|
|
.nav.list .active > a {
|
|
|
|
color: @white;
|
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
|
|
|
|
background-color: @linkColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TABS AND PILLS
|
|
|
|
// -------------
|
|
|
|
|
|
|
|
// Common styles
|
|
|
|
.tabs,
|
|
|
|
.pills {
|
|
|
|
.clearfix();
|
|
|
|
}
|
|
|
|
.tabs > li,
|
|
|
|
.pills > li {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.tabs > li > a,
|
|
|
|
.pills > li > a {
|
|
|
|
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
|
|
|
|
.tabs {
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make the list-items overlay the bottom border
|
|
|
|
.tabs > li {
|
|
|
|
margin-bottom: -1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Actual tabs (as links)
|
|
|
|
.tabs > li > a {
|
|
|
|
padding-top: 9px;
|
|
|
|
padding-bottom: 9px;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
.border-radius(4px 4px 0 0);
|
|
|
|
&: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-08 18:33:44 -05:00
|
|
|
.tabs > .active > a,
|
|
|
|
.tabs > .active > a:hover {
|
2012-01-07 23:40:28 -05:00
|
|
|
color: @gray;
|
|
|
|
background-color: @white;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-bottom-color: transparent;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
// PILLS
|
|
|
|
// -----
|
|
|
|
|
|
|
|
// Links rendered as pills
|
|
|
|
.pills > li > a {
|
|
|
|
padding-top: 8px;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
margin-top: 2px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
.border-radius(5px);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Active state
|
|
|
|
.pills .active > a,
|
|
|
|
.pills .active > a:hover {
|
|
|
|
color: @white;
|
|
|
|
background-color: @linkColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// STACKED NAV
|
|
|
|
// -----------
|
|
|
|
|
|
|
|
// Stacked tabs and pills
|
|
|
|
.nav.stacked > li {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
.nav.stacked > li > a {
|
|
|
|
margin-right: 0; // no need for the gap between nav items
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tabs
|
|
|
|
.tabs.stacked {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
|
|
|
.tabs.stacked > li > a {
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
.border-radius(0);
|
|
|
|
}
|
|
|
|
.tabs.stacked > li:first-child > a {
|
|
|
|
.border-radius(4px 4px 0 0);
|
|
|
|
}
|
|
|
|
.tabs.stacked > li:last-child > a {
|
|
|
|
.border-radius(0 0 4px 4px);
|
|
|
|
}
|
|
|
|
.tabs.stacked > li > a:hover {
|
|
|
|
border-color: #ddd;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Pills
|
|
|
|
.pills.stacked > li > a {
|
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
|
|
|
.pills.stacked > li:last-child > a {
|
|
|
|
margin-bottom: 1px; // decrease margin to match sizing of stacked tabs
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DROPDOWNS
|
|
|
|
// ---------
|
|
|
|
|
|
|
|
// Position the menu
|
2012-01-08 16:30:23 -05:00
|
|
|
.pills .dropdown-menu,
|
|
|
|
.tabs .dropdown-menu {
|
2012-01-18 08:02:18 -05:00
|
|
|
margin-top: 1px;
|
2012-01-07 23:40:28 -05:00
|
|
|
border-width: 1px;
|
|
|
|
}
|
|
|
|
.pills .dropdown-menu {
|
|
|
|
.border-radius(4px);
|
|
|
|
}
|
2012-01-08 18:33:44 -05:00
|
|
|
|
|
|
|
// Default dropdown links
|
|
|
|
// -------------------------
|
|
|
|
// Make carets use linkColor to start
|
2012-01-08 16:21:44 -05:00
|
|
|
.tabs .dropdown-toggle .caret,
|
|
|
|
.pills .dropdown-toggle .caret {
|
2012-01-08 05:15:47 -05:00
|
|
|
border-top-color: @linkColor;
|
2012-01-07 23:40:28 -05:00
|
|
|
margin-top: 6px;
|
|
|
|
}
|
2012-01-08 16:21:44 -05:00
|
|
|
.tabs .dropdown-toggle:hover .caret,
|
|
|
|
.pills .dropdown-toggle:hover .caret {
|
2012-01-08 05:15:47 -05:00
|
|
|
border-top-color: @linkColorHover;
|
|
|
|
}
|
2012-01-08 18:33:44 -05:00
|
|
|
|
|
|
|
// Active dropdown links
|
|
|
|
// -------------------------
|
|
|
|
.tabs .active .dropdown-toggle .caret,
|
|
|
|
.pills .active .dropdown-toggle .caret {
|
2012-01-21 18:24:06 -05:00
|
|
|
border-top-color: @grayDark;
|
2012-01-08 18:33:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Active:hover dropdown links
|
|
|
|
// -------------------------
|
|
|
|
.nav > .dropdown.active > a:hover {
|
2012-01-21 18:24:06 -05:00
|
|
|
color: @black;
|
2012-01-08 18:33:44 -05:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Open dropdowns
|
|
|
|
// -------------------------
|
2012-01-08 16:30:23 -05:00
|
|
|
.tabs .open .dropdown-toggle,
|
2012-01-08 18:33:44 -05:00
|
|
|
.pills .open .dropdown-toggle,
|
|
|
|
.nav > .open.active > a:hover {
|
2012-01-21 18:24:06 -05:00
|
|
|
color: @white;
|
|
|
|
background-color: @grayLight;
|
|
|
|
border-color: @grayLight;
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|
2012-01-08 05:15:47 -05:00
|
|
|
.nav .open .caret,
|
2012-01-08 18:33:44 -05:00
|
|
|
.nav .open.active .caret,
|
2012-01-08 05:15:47 -05:00
|
|
|
.nav .open a:hover .caret {
|
2012-01-21 18:24:06 -05:00
|
|
|
border-top-color: @white;
|
2012-01-07 23:40:28 -05:00
|
|
|
.opacity(100);
|
|
|
|
}
|
|
|
|
|
2012-01-08 05:15:47 -05:00
|
|
|
// Dropdowns in stacked tabs
|
|
|
|
.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
|
|
|
|
|
|
|
|
|
|
|
// TABBABLE
|
|
|
|
// --------
|
|
|
|
|
2012-01-08 01:06:44 -05:00
|
|
|
|
|
|
|
// COMMON STYLES
|
2012-01-18 08:02:18 -05:00
|
|
|
// -------------
|
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-01-08 01:07:18 -05:00
|
|
|
|
2012-01-08 01:06:44 -05:00
|
|
|
// Remove border on bottom, left, right
|
|
|
|
.tabs-below .tabs,
|
|
|
|
.tabs-right .tabs,
|
|
|
|
.tabs-left .tabs {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
2012-01-07 23:40:28 -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-01-08 01:06:44 -05:00
|
|
|
// BOTTOM
|
|
|
|
// ------
|
2012-01-07 23:40:28 -05:00
|
|
|
|
2012-01-08 01:06:44 -05:00
|
|
|
.tabs-below .tabs {
|
|
|
|
border-top: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
.tabs-below .tabs > li {
|
|
|
|
margin-top: -1px;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
.tabs-below .tabs > li > a {
|
|
|
|
.border-radius(0 0 4px 4px);
|
|
|
|
&:hover {
|
|
|
|
border-bottom-color: transparent;
|
|
|
|
border-top-color: #ddd;
|
2012-01-07 23:40:28 -05:00
|
|
|
}
|
2012-01-08 01:06:44 -05:00
|
|
|
}
|
|
|
|
.tabs-below .tabs .active > a,
|
|
|
|
.tabs-below .tabs .active > a:hover {
|
|
|
|
border-color: transparent #ddd #ddd #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
// LEFT & RIGHT
|
|
|
|
// ------------
|
|
|
|
|
|
|
|
// Common styles
|
|
|
|
.tabs-left .tabs > li,
|
|
|
|
.tabs-right .tabs > li {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
.tabs-left .tabs > li > a,
|
|
|
|
.tabs-right .tabs > li > a {
|
|
|
|
min-width: 74px;
|
|
|
|
margin-right: 0;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tabs on the left
|
|
|
|
.tabs-left .tabs {
|
|
|
|
float: left;
|
|
|
|
margin-right: 19px;
|
|
|
|
border-right: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
.tabs-left .tabs > li > a {
|
|
|
|
margin-right: -1px;
|
|
|
|
.border-radius(4px 0 0 4px);
|
|
|
|
}
|
|
|
|
.tabs-left .tabs > li > a:hover {
|
2012-01-21 18:24:06 -05:00
|
|
|
border-color: @grayLighter #ddd @grayLighter @grayLighter;
|
2012-01-08 01:06:44 -05:00
|
|
|
}
|
|
|
|
.tabs-left .tabs .active > a,
|
|
|
|
.tabs-left .tabs .active > a:hover {
|
|
|
|
border-color: #ddd transparent #ddd #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tabs on the right
|
|
|
|
.tabs-right .tabs {
|
|
|
|
float: right;
|
|
|
|
margin-left: 19px;
|
|
|
|
border-left: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
.tabs-right .tabs > li > a {
|
|
|
|
margin-left: -1px;
|
|
|
|
.border-radius(0 4px 4px 0);
|
|
|
|
}
|
|
|
|
.tabs-right .tabs > li > a:hover {
|
2012-01-21 18:24:06 -05:00
|
|
|
border-color: @grayLighter @grayLighter @grayLighter #ddd;
|
2012-01-08 01:06:44 -05:00
|
|
|
}
|
|
|
|
.tabs-right .tabs .active > a,
|
|
|
|
.tabs-right .tabs .active > a:hover {
|
|
|
|
border-color: #ddd #ddd #ddd transparent;
|
|
|
|
}
|