2012-06-29 06:46:45 +02:00
|
|
|
//
|
|
|
|
// Navs
|
|
|
|
// --------------------------------------------------
|
2012-01-08 05:40:28 +01:00
|
|
|
|
|
|
|
|
2012-11-04 00:14:44 +01:00
|
|
|
// Base class
|
2013-01-18 02:02:35 +01:00
|
|
|
// --------------------------------------------------
|
2012-01-08 05:40:28 +01:00
|
|
|
|
|
|
|
.nav {
|
|
|
|
margin-left: 0;
|
2013-01-16 02:55:14 +01:00
|
|
|
margin-bottom: 0;
|
|
|
|
padding-left: 0; // Override default ul/ol
|
2012-01-08 05:40:28 +01:00
|
|
|
list-style: none;
|
2013-03-30 21:23:18 +01:00
|
|
|
.clearfix();
|
2012-11-04 00:14:44 +01:00
|
|
|
}
|
|
|
|
.nav > li {
|
2013-01-16 02:55:14 +01:00
|
|
|
display: block;
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
|
|
|
.nav > li > a {
|
2013-01-16 02:55:14 +01:00
|
|
|
position: relative;
|
2012-01-08 05:40:28 +01:00
|
|
|
display: block;
|
2013-01-16 02:55:14 +01:00
|
|
|
padding: 10px 15px;
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
2013-01-02 23:39:21 +01:00
|
|
|
.nav > li > a:hover,
|
|
|
|
.nav > li > a:focus {
|
2012-01-08 05:40:28 +01:00
|
|
|
text-decoration: none;
|
2012-01-22 00:24:06 +01:00
|
|
|
background-color: @grayLighter;
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
|
|
|
|
2012-03-29 02:02:13 +02:00
|
|
|
// Redeclare pull classes because of specifity
|
2013-01-18 02:02:35 +01:00
|
|
|
// Todo: consider making these utilities !important to avoid this bullshit
|
2012-03-29 02:02:13 +02:00
|
|
|
.nav > .pull-right {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2012-01-08 05:40:28 +01:00
|
|
|
|
|
|
|
|
2013-01-18 02:02:35 +01:00
|
|
|
// Nav variations
|
|
|
|
// --------------------------------------------------
|
2012-01-08 05:40:28 +01:00
|
|
|
|
2012-11-04 00:14:44 +01:00
|
|
|
// Tabs
|
|
|
|
// -------------------------
|
2012-01-08 05:40:28 +01:00
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs > li {
|
2013-01-18 02:02:35 +01:00
|
|
|
float: left;
|
|
|
|
// Make the list-items overlay the bottom border
|
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-11-04 00:14:44 +01:00
|
|
|
margin-right: 2px;
|
2012-11-30 23:45:25 +01:00
|
|
|
line-height: @line-height-base;
|
2012-01-08 05:40:28 +01:00
|
|
|
border: 1px solid transparent;
|
2012-12-17 19:11:33 +01:00
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
2012-01-08 05:40:28 +01:00
|
|
|
&: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,
|
2013-01-02 23:39:21 +01:00
|
|
|
.nav-tabs > .active > a:hover,
|
|
|
|
.nav-tabs > .active > a:focus {
|
2012-01-08 05:40:28 +01:00
|
|
|
color: @gray;
|
2013-04-01 02:29:05 +02:00
|
|
|
background-color: @body-bg;
|
2012-01-08 05:40:28 +01:00
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-bottom-color: transparent;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
2012-11-04 08:52:10 +01:00
|
|
|
// Pills
|
|
|
|
// -------------------------
|
|
|
|
|
2013-01-18 02:02:35 +01:00
|
|
|
.nav-pills > li {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2012-11-04 08:52:10 +01: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 23:39:21 +01:00
|
|
|
.nav-pills > .active > a:hover,
|
|
|
|
.nav-pills > .active > a:focus {
|
2012-12-01 00:05:23 +01:00
|
|
|
color: #fff;
|
2013-03-31 21:16:16 +02:00
|
|
|
background-color: @component-active-bg;
|
2012-11-04 08:52:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Stacked pills
|
|
|
|
.nav-stacked > li {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
.nav-stacked > li + li > a {
|
|
|
|
margin-top: 2px;
|
2013-01-18 02:02:35 +01:00
|
|
|
margin-left: 0; // no need for this gap between nav items
|
2012-11-04 08:52:10 +01:00
|
|
|
}
|
|
|
|
|
2013-01-18 02:02:35 +01:00
|
|
|
// Justified nav links
|
2012-11-04 08:52:10 +01:00
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.nav-justified {
|
2013-04-01 04:26:40 +02:00
|
|
|
width: 100%;
|
2012-11-04 08:52:10 +01:00
|
|
|
}
|
|
|
|
.nav-justified > li {
|
|
|
|
float: none;
|
|
|
|
display: table-cell;
|
|
|
|
width: 1%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2013-04-01 04:26:40 +02:00
|
|
|
// Move borders to anchors instead of bottom of list
|
|
|
|
.nav-justified.nav-tabs {
|
|
|
|
border-bottom: 0;
|
|
|
|
> li > a {
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
> .active > a {
|
|
|
|
border-bottom-color: @body-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Override margin from .nav-tabs
|
|
|
|
.nav-justified > li > a {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2012-11-04 08:52:10 +01:00
|
|
|
|
2012-11-04 00:14:44 +01:00
|
|
|
|
|
|
|
|
2013-01-18 02:02:35 +01:00
|
|
|
// Nav states and addons
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Disabled state
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
// Gray out text
|
|
|
|
.nav > .disabled > a {
|
|
|
|
color: @grayLight;
|
|
|
|
}
|
|
|
|
// Nuke hover effects
|
2013-02-06 04:53:44 +01:00
|
|
|
.nav > .disabled > a:hover,
|
|
|
|
.nav > .disabled > a:focus {
|
2013-03-01 08:20:25 +01:00
|
|
|
color: @grayLight;
|
2013-01-18 02:02:35 +01: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 05:18:29 +01: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 02:02:35 +01: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-04 00:14:44 +01:00
|
|
|
// Dropdowns
|
|
|
|
// -------------------------
|
2012-01-08 05:40:28 +01:00
|
|
|
|
2012-03-23 07:09:31 +01:00
|
|
|
.nav-tabs .dropdown-menu {
|
2012-11-04 00:14:44 +01:00
|
|
|
// Remove the top rounded corners here since there is a hard edge above the menu
|
|
|
|
.border-top-radius(0);
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
2012-01-09 00:33:44 +01:00
|
|
|
|
|
|
|
// Default dropdown links
|
|
|
|
// -------------------------
|
|
|
|
// Make carets use linkColor to start
|
2012-06-25 05:42:31 +02:00
|
|
|
.nav .dropdown-toggle .caret {
|
2012-11-30 23:37:24 +01:00
|
|
|
border-top-color: @link-color;
|
|
|
|
border-bottom-color: @link-color;
|
2012-11-04 00:14:44 +01:00
|
|
|
margin-top: 8px;
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
2012-06-25 05:42:31 +02:00
|
|
|
.nav .dropdown-toggle:hover .caret {
|
2013-04-01 02:27:22 +02:00
|
|
|
border-top-color: @link-hover-color;
|
|
|
|
border-bottom-color: @link-hover-color;
|
2012-01-08 11:15:47 +01:00
|
|
|
}
|
2012-01-09 00:33:44 +01:00
|
|
|
|
|
|
|
// Active dropdown links
|
|
|
|
// -------------------------
|
2012-06-25 05:42:31 +02:00
|
|
|
.nav .active .dropdown-toggle .caret {
|
|
|
|
border-top-color: #fff;
|
|
|
|
border-bottom-color: #fff;
|
2012-01-09 00:33:44 +01:00
|
|
|
}
|
2012-07-18 07:26:53 +02:00
|
|
|
.nav-tabs .active .dropdown-toggle .caret {
|
|
|
|
border-top-color: @gray;
|
|
|
|
border-bottom-color: @gray;
|
|
|
|
}
|
2012-01-09 00:33:44 +01:00
|
|
|
|
|
|
|
// Active:hover dropdown links
|
|
|
|
// -------------------------
|
|
|
|
.nav > .dropdown.active > a:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Open dropdowns
|
|
|
|
// -------------------------
|
2012-01-31 06:29:50 +01:00
|
|
|
.nav-tabs .open .dropdown-toggle,
|
|
|
|
.nav-pills .open .dropdown-toggle,
|
2012-04-02 00:22:52 +02:00
|
|
|
.nav > li.dropdown.open.active > a:hover {
|
2012-12-01 00:05:23 +01:00
|
|
|
color: #fff;
|
2012-01-22 00:24:06 +01:00
|
|
|
background-color: @grayLight;
|
|
|
|
border-color: @grayLight;
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
2012-04-02 00:22:52 +02:00
|
|
|
.nav li.dropdown.open .caret,
|
|
|
|
.nav li.dropdown.open.active .caret,
|
|
|
|
.nav li.dropdown.open a:hover .caret {
|
2012-12-01 00:05:23 +01:00
|
|
|
border-top-color: #fff;
|
|
|
|
border-bottom-color: #fff;
|
2013-03-01 04:46:49 +01:00
|
|
|
.opacity(1);
|
2012-01-08 05:40:28 +01:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
*/
|