2012-06-29 00:46:45 -04:00
|
|
|
//
|
2013-01-15 20:55:14 -05:00
|
|
|
// Navbars
|
2012-06-29 00:46:45 -04:00
|
|
|
// --------------------------------------------------
|
2012-01-05 13:01:42 -05:00
|
|
|
|
2013-01-15 20:55:14 -05:00
|
|
|
// Wrapper and base class
|
|
|
|
.navbar {
|
2013-02-18 04:28:35 -05:00
|
|
|
position: relative;
|
2013-04-30 22:12:48 -04:00
|
|
|
margin-bottom: 20px;
|
2013-04-30 22:20:41 -04:00
|
|
|
padding-left: 15px;
|
|
|
|
padding-right: 15px;
|
2013-01-16 18:35:41 -05:00
|
|
|
background-color: @navbar-bg;
|
2013-01-16 19:14:41 -05:00
|
|
|
border-radius: @border-radius-base;
|
2013-04-30 22:07:28 -04:00
|
|
|
|
2013-01-16 19:14:41 -05:00
|
|
|
// Prevent floats from breaking the navbar
|
2013-03-30 16:23:18 -04:00
|
|
|
.clearfix();
|
2013-01-15 20:55:14 -05:00
|
|
|
}
|
|
|
|
|
2013-01-17 14:34:46 -05:00
|
|
|
// Navbar nav links
|
2013-01-16 19:14:41 -05:00
|
|
|
// -------------------------
|
|
|
|
|
2013-04-27 21:28:39 -04:00
|
|
|
.navbar-nav {
|
2013-04-30 22:07:28 -04:00
|
|
|
// Space out from .navbar .brand and .btn-navbar when stacked in mobile views
|
2013-05-07 13:33:41 -04:00
|
|
|
// and outdent nav links so text lines up with logo.
|
2013-05-08 22:55:20 -04:00
|
|
|
margin-top: 10px;
|
2013-05-15 01:08:56 -04:00
|
|
|
margin-bottom: 15px;
|
2013-04-27 21:28:39 -04:00
|
|
|
|
|
|
|
> li > a {
|
2013-05-09 20:20:46 -04:00
|
|
|
padding-top: ((@navbar-height - @line-height-computed) / 2);
|
|
|
|
padding-bottom: ((@navbar-height - @line-height-computed) / 2);
|
2013-01-17 14:34:46 -05:00
|
|
|
color: @navbar-link-color;
|
|
|
|
line-height: 20px;
|
2013-05-15 01:08:56 -04:00
|
|
|
border-radius: @border-radius-base;
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
2013-04-27 21:28:39 -04:00
|
|
|
> li > a:hover,
|
|
|
|
> li > a:focus {
|
2013-03-31 20:56:31 -04:00
|
|
|
color: @navbar-link-hover-color;
|
|
|
|
background-color: @navbar-link-hover-bg;
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
2013-04-27 21:28:39 -04:00
|
|
|
> .active > a,
|
|
|
|
> .active > a:hover,
|
|
|
|
> .active > a:focus {
|
2013-03-31 20:56:31 -04:00
|
|
|
color: @navbar-link-active-color;
|
|
|
|
background-color: @navbar-link-active-bg;
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
2013-04-27 21:28:39 -04:00
|
|
|
> .disabled > a,
|
|
|
|
> .disabled > a:hover,
|
|
|
|
> .disabled > a:focus {
|
2013-03-31 20:56:31 -04:00
|
|
|
color: @navbar-link-disabled-color;
|
|
|
|
background-color: @navbar-link-disabled-bg;
|
2013-03-01 02:20:25 -05:00
|
|
|
}
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Navbar alignment options
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Static navbar
|
|
|
|
.navbar-static-top {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2013-02-17 21:33:55 -05:00
|
|
|
// Fix the top/bottom navbars when screen real estate supports it
|
2013-01-17 14:34:46 -05:00
|
|
|
.navbar-fixed-top,
|
|
|
|
.navbar-fixed-bottom {
|
2013-02-17 21:33:55 -05:00
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: @zindex-navbar-fixed;
|
2013-01-17 14:34:46 -05:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
2013-05-04 16:11:20 -04:00
|
|
|
.navbar-fixed-top {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
bottom: 0;
|
|
|
|
margin-bottom: 0; // override .navbar defaults
|
|
|
|
}
|
2013-01-17 14:34:46 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Navbar optional components
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Brand/project name
|
2013-02-18 04:28:35 -05:00
|
|
|
.navbar-brand {
|
|
|
|
display: block;
|
|
|
|
max-width: 200px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2013-04-27 21:28:39 -04:00
|
|
|
padding: 15px;
|
2013-04-23 18:41:06 -04:00
|
|
|
font-size: @font-size-large;
|
2013-01-17 23:30:40 -05:00
|
|
|
font-weight: 500;
|
2013-05-09 20:20:46 -04:00
|
|
|
line-height: @line-height-computed;
|
2013-01-16 18:35:41 -05:00
|
|
|
color: @navbar-brand-color;
|
2013-02-18 04:28:35 -05:00
|
|
|
text-align: center;
|
2013-02-05 22:53:44 -05:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-03-31 20:56:31 -04:00
|
|
|
color: @navbar-brand-hover-color;
|
2013-01-15 20:55:14 -05:00
|
|
|
text-decoration: none;
|
2013-03-31 20:56:31 -04:00
|
|
|
background-color: @navbar-brand-hover-bg;
|
2013-01-15 20:55:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-17 14:34:46 -05:00
|
|
|
// Collapsible navbar toggle
|
2013-02-18 04:28:35 -05:00
|
|
|
.navbar-toggle {
|
|
|
|
position: absolute;
|
2013-04-28 20:45:42 -04:00
|
|
|
top: 10px;
|
2013-02-18 04:28:35 -05:00
|
|
|
right: 10px;
|
|
|
|
padding: 8px 12px;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 1px solid #ddd;
|
2013-01-15 20:55:14 -05:00
|
|
|
border-radius: 4px;
|
|
|
|
|
2013-02-18 04:28:35 -05:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: #ddd;
|
|
|
|
}
|
|
|
|
|
2013-01-15 20:55:14 -05:00
|
|
|
// Bars
|
|
|
|
.icon-bar {
|
|
|
|
display: block;
|
2013-02-18 04:28:35 -05:00
|
|
|
width: 22px;
|
2013-01-15 20:55:14 -05:00
|
|
|
height: 2px;
|
2013-03-01 03:18:10 -05:00
|
|
|
background-color: #ccc;
|
2013-01-15 20:55:14 -05:00
|
|
|
border-radius: 1px;
|
|
|
|
}
|
|
|
|
.icon-bar + .icon-bar {
|
2013-02-18 04:28:35 -05:00
|
|
|
margin-top: 4px;
|
2013-01-15 20:55:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-17 14:34:46 -05:00
|
|
|
// Navbar form
|
|
|
|
.navbar-form {
|
2013-05-09 19:41:35 -04:00
|
|
|
.form-inline();
|
2013-05-20 01:12:48 -04:00
|
|
|
.navbar-vertical-align(@input-height-base); // Vertically center in navbar
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
2013-01-17 14:20:19 -05:00
|
|
|
|
2013-01-17 14:55:37 -05:00
|
|
|
// Dropdown menus
|
|
|
|
|
|
|
|
// Menu position and menu carets
|
2013-04-27 21:28:39 -04:00
|
|
|
.navbar-nav > li > .dropdown-menu {
|
2013-01-17 14:55:37 -05:00
|
|
|
margin-top: 0;
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
|
|
|
// Menu position and menu caret support for dropups via extra dropup class
|
2013-04-27 21:28:39 -04:00
|
|
|
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
2013-01-17 14:55:37 -05:00
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dropdown menu items and carets
|
2013-04-27 21:28:39 -04:00
|
|
|
.navbar-nav {
|
2013-01-17 14:55:37 -05:00
|
|
|
// Caret should match text color on hover
|
2013-05-12 19:30:54 -04:00
|
|
|
> .dropdown > a:hover .caret,
|
|
|
|
> .dropdown > a:focus .caret {
|
2013-03-31 20:56:31 -04:00
|
|
|
border-top-color: @navbar-link-hover-color;
|
|
|
|
border-bottom-color: @navbar-link-hover-color;
|
2013-01-17 14:55:37 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Remove background color from open dropdown
|
2013-05-12 19:30:54 -04:00
|
|
|
> .open > a,
|
|
|
|
> .open > a:hover,
|
|
|
|
> .open > a:focus {
|
2013-03-31 20:56:31 -04:00
|
|
|
background-color: @navbar-link-active-bg;
|
|
|
|
color: @navbar-link-active-color;
|
2013-01-17 14:55:37 -05:00
|
|
|
}
|
2013-05-12 19:30:54 -04:00
|
|
|
> .dropdown > a .caret {
|
2013-01-17 14:55:37 -05:00
|
|
|
border-top-color: @navbar-link-color;
|
|
|
|
border-bottom-color: @navbar-link-color;
|
|
|
|
}
|
2013-05-12 19:30:54 -04:00
|
|
|
> .open > a .caret,
|
|
|
|
> .open > a:hover .caret,
|
|
|
|
> .open > a:focus .caret {
|
2013-03-31 20:56:31 -04:00
|
|
|
border-top-color: @navbar-link-active-color;
|
|
|
|
border-bottom-color: @navbar-link-active-color;
|
2013-01-17 14:55:37 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Right aligned menus need alt position
|
2013-04-27 21:28:39 -04:00
|
|
|
.navbar-nav.pull-right > li > .dropdown-menu,
|
|
|
|
.navbar-nav > li > .dropdown-menu.pull-right {
|
2013-01-17 14:55:37 -05:00
|
|
|
left: auto;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
2013-01-16 19:14:41 -05:00
|
|
|
|
2013-01-15 20:55:14 -05:00
|
|
|
|
|
|
|
// Inverse navbar
|
2013-01-17 14:34:46 -05:00
|
|
|
// --------------------------------------------------
|
2013-01-16 19:14:41 -05:00
|
|
|
|
2013-01-15 20:55:14 -05:00
|
|
|
.navbar-inverse {
|
2013-01-17 14:55:37 -05:00
|
|
|
background-color: @navbar-inverse-bg;
|
2013-01-15 20:55:14 -05:00
|
|
|
|
2013-02-18 04:28:35 -05:00
|
|
|
.navbar-brand {
|
2013-01-17 02:33:26 -05:00
|
|
|
color: @navbar-inverse-brand-color;
|
2013-01-02 17:39:21 -05:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-04-07 17:47:53 -04:00
|
|
|
color: @navbar-inverse-brand-hover-color;
|
|
|
|
background-color: @navbar-inverse-brand-hover-bg;
|
2013-01-15 20:55:14 -05:00
|
|
|
}
|
|
|
|
}
|
2013-01-17 02:33:26 -05:00
|
|
|
|
|
|
|
.navbar-text {
|
2013-05-03 18:29:32 -04:00
|
|
|
color: @navbar-inverse-color;
|
2013-01-17 02:33:26 -05:00
|
|
|
}
|
|
|
|
|
2013-04-27 21:28:39 -04:00
|
|
|
.navbar-nav {
|
|
|
|
> li > a {
|
|
|
|
color: @navbar-inverse-link-color;
|
|
|
|
}
|
|
|
|
> li > a:hover,
|
|
|
|
> li > a:focus {
|
|
|
|
color: @navbar-inverse-link-hover-color;
|
|
|
|
background-color: @navbar-inverse-link-hover-bg;
|
|
|
|
}
|
|
|
|
> .active > a,
|
|
|
|
> .active > a:hover,
|
|
|
|
> .active > a:focus {
|
|
|
|
color: @navbar-inverse-link-active-color;
|
|
|
|
background-color: @navbar-inverse-link-active-bg;
|
|
|
|
}
|
|
|
|
> .disabled > a,
|
|
|
|
> .disabled > a:hover,
|
|
|
|
> .disabled > a:focus {
|
|
|
|
color: @navbar-inverse-link-disabled-color;
|
|
|
|
background-color: @navbar-inverse-link-disabled-bg;
|
|
|
|
}
|
2013-03-01 02:20:25 -05:00
|
|
|
}
|
2013-01-17 14:34:46 -05:00
|
|
|
|
2013-01-17 14:55:37 -05:00
|
|
|
// Darken the responsive nav toggle
|
2013-02-18 04:28:35 -05:00
|
|
|
.navbar-toggle {
|
|
|
|
border-color: #333;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: #333;
|
|
|
|
}
|
2013-03-01 03:18:10 -05:00
|
|
|
.icon-bar {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
2013-01-15 20:55:14 -05:00
|
|
|
}
|
|
|
|
|
2013-01-17 14:55:37 -05:00
|
|
|
// Dropdowns
|
2013-04-27 21:28:39 -04:00
|
|
|
.navbar-nav {
|
2013-05-12 19:30:54 -04:00
|
|
|
> .open > a,
|
|
|
|
> .open > a:hover,
|
|
|
|
> .open > a:focus {
|
2013-04-27 21:28:39 -04:00
|
|
|
background-color: @navbar-inverse-link-active-bg;
|
|
|
|
color: @navbar-inverse-link-active-color;
|
|
|
|
}
|
2013-05-12 19:30:54 -04:00
|
|
|
> .dropdown > a:hover .caret {
|
2013-04-27 21:28:39 -04:00
|
|
|
border-top-color: @navbar-inverse-link-hover-color;
|
|
|
|
border-bottom-color: @navbar-inverse-link-hover-color;
|
|
|
|
}
|
2013-05-12 19:30:54 -04:00
|
|
|
> .dropdown > a .caret {
|
2013-04-27 21:28:39 -04:00
|
|
|
border-top-color: @navbar-inverse-link-color;
|
|
|
|
border-bottom-color: @navbar-inverse-link-color;
|
|
|
|
}
|
2013-05-12 19:30:54 -04:00
|
|
|
> .open > a .caret,
|
|
|
|
> .open > a:hover .caret,
|
|
|
|
> .open > a:focus .caret {
|
2013-04-27 21:28:39 -04:00
|
|
|
border-top-color: @navbar-inverse-link-active-color;
|
|
|
|
border-bottom-color: @navbar-inverse-link-active-color;
|
|
|
|
}
|
|
|
|
|
2013-01-17 14:55:37 -05:00
|
|
|
}
|
2013-01-16 19:14:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-04 16:11:20 -04:00
|
|
|
// Responsive navbar
|
2013-01-16 19:14:41 -05:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2013-04-27 12:47:47 -04:00
|
|
|
@media screen and (min-width: @screen-tablet) {
|
2013-04-27 21:28:39 -04:00
|
|
|
|
2013-02-18 04:28:35 -05:00
|
|
|
.navbar-brand {
|
2013-01-17 14:34:46 -05:00
|
|
|
float: left;
|
2013-04-27 21:28:39 -04:00
|
|
|
margin-left: -5px;
|
|
|
|
margin-right: 5px;
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
|
|
|
.navbar .nav {
|
|
|
|
float: left;
|
2013-05-15 01:08:56 -04:00
|
|
|
// undo margin to make nav extend full height of navbar
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
2013-04-27 21:28:39 -04:00
|
|
|
|
|
|
|
> li {
|
|
|
|
float: left;
|
2013-05-15 01:08:56 -04:00
|
|
|
> a {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2013-04-27 21:28:39 -04:00
|
|
|
}
|
2013-01-15 20:55:14 -05:00
|
|
|
|
2013-01-17 14:34:46 -05:00
|
|
|
&.pull-right {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
2012-08-27 13:32:07 -04:00
|
|
|
|
2013-01-17 14:34:46 -05:00
|
|
|
// Required to make the collapsing navbar work on regular desktops
|
2013-02-18 04:28:35 -05:00
|
|
|
.navbar-toggle {
|
|
|
|
position: relative;
|
|
|
|
top: auto;
|
|
|
|
left: auto;
|
2013-01-17 14:34:46 -05:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.nav-collapse.collapse {
|
|
|
|
height: auto !important;
|
|
|
|
overflow: visible !important;
|
|
|
|
}
|
2013-01-17 14:55:37 -05:00
|
|
|
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
2012-01-18 03:24:10 -05:00
|
|
|
|
2013-05-03 02:05:09 -04:00
|
|
|
|
2013-05-03 02:13:43 -04:00
|
|
|
|
|
|
|
// Buttons in navbars
|
2013-05-03 02:05:09 -04:00
|
|
|
//
|
|
|
|
// Vertically center a button within a navbar (when *not* in a form).
|
|
|
|
|
|
|
|
.navbar-btn {
|
|
|
|
margin-top: ((@navbar-height - @input-height-base) / 2);
|
|
|
|
}
|
|
|
|
|
2012-07-30 13:08:27 -04:00
|
|
|
|
2013-05-03 02:13:43 -04:00
|
|
|
|
|
|
|
// Text in navbars
|
|
|
|
//
|
|
|
|
// Add a class to make any element properly align itself vertically within the navbars.
|
|
|
|
|
|
|
|
.navbar-text {
|
2013-05-09 20:20:46 -04:00
|
|
|
.navbar-vertical-align(@line-height-computed);
|
2013-05-03 02:13:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Links in navbars
|
|
|
|
//
|
|
|
|
// Add a class to ensure links outside the navbar nav are colored correctly.
|
|
|
|
|
|
|
|
// Default navbar variables
|
2012-07-30 13:08:27 -04:00
|
|
|
.navbar-link {
|
2012-11-30 18:33:56 -05:00
|
|
|
color: @navbar-link-color;
|
2012-07-30 13:08:27 -04:00
|
|
|
&:hover {
|
2013-03-31 20:56:31 -04:00
|
|
|
color: @navbar-link-hover-color;
|
2012-01-14 20:16:46 -05:00
|
|
|
}
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
|
|
|
|
2013-05-03 02:13:43 -04:00
|
|
|
// Use the inverse navbar variables
|
|
|
|
.navbar-inverse .navbar-link {
|
|
|
|
color: @navbar-inverse-link-color;
|
|
|
|
&:hover {
|
|
|
|
color: @navbar-inverse-link-hover-color;
|
|
|
|
}
|
|
|
|
}
|