2012-06-29 06:46:45 +02:00
|
|
|
//
|
2013-01-16 02:55:14 +01:00
|
|
|
// Navbars
|
2012-06-29 06:46:45 +02:00
|
|
|
// --------------------------------------------------
|
2012-01-05 19:01:42 +01:00
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
// Wrapper and base class
|
|
|
|
.navbar {
|
2013-02-18 10:28:35 +01:00
|
|
|
position: relative;
|
2013-05-01 04:07:28 +02:00
|
|
|
padding-top: 15px;
|
|
|
|
padding-bottom: 15px;
|
2013-01-17 00:35:41 +01:00
|
|
|
background-color: @navbar-bg;
|
2013-01-17 01:14:41 +01:00
|
|
|
border-radius: @border-radius-base;
|
2013-05-01 04:07:28 +02:00
|
|
|
|
2013-01-17 01:14:41 +01:00
|
|
|
// Prevent floats from breaking the navbar
|
2013-03-30 21:23:18 +01:00
|
|
|
.clearfix();
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
// Navbar nav links
|
2013-01-17 01:14:41 +01:00
|
|
|
// -------------------------
|
|
|
|
|
2013-04-28 03:28:39 +02:00
|
|
|
.navbar-nav {
|
2013-05-01 04:07:28 +02:00
|
|
|
// Space out from .navbar .brand and .btn-navbar when stacked in mobile views
|
2013-04-28 23:27:48 +02:00
|
|
|
margin-top: 5px;
|
2013-04-28 03:28:39 +02:00
|
|
|
|
|
|
|
> li > a {
|
2013-03-06 17:38:20 +01:00
|
|
|
padding-top: ((@navbar-height - @line-height-base) / 2);
|
|
|
|
padding-bottom: ((@navbar-height - @line-height-base) / 2);
|
2013-01-17 20:34:46 +01:00
|
|
|
color: @navbar-link-color;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
2013-04-28 03:28:39 +02:00
|
|
|
> li > a:hover,
|
|
|
|
> li > a:focus {
|
2013-04-01 02:56:31 +02:00
|
|
|
color: @navbar-link-hover-color;
|
|
|
|
background-color: @navbar-link-hover-bg;
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
2013-04-28 03:28:39 +02:00
|
|
|
> .active > a,
|
|
|
|
> .active > a:hover,
|
|
|
|
> .active > a:focus {
|
2013-04-01 02:56:31 +02:00
|
|
|
color: @navbar-link-active-color;
|
|
|
|
background-color: @navbar-link-active-bg;
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
2013-04-28 03:28:39 +02:00
|
|
|
> .disabled > a,
|
|
|
|
> .disabled > a:hover,
|
|
|
|
> .disabled > a:focus {
|
2013-04-01 02:56:31 +02:00
|
|
|
color: @navbar-link-disabled-color;
|
|
|
|
background-color: @navbar-link-disabled-bg;
|
2013-03-01 08:20:25 +01:00
|
|
|
}
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Navbar alignment options
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Static navbar
|
|
|
|
.navbar-static-top {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2013-02-18 03:33:55 +01:00
|
|
|
// Fix the top/bottom navbars when screen real estate supports it
|
2013-01-17 20:34:46 +01:00
|
|
|
.navbar-fixed-top,
|
|
|
|
.navbar-fixed-bottom {
|
2013-02-18 03:33:55 +01:00
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: @zindex-navbar-fixed;
|
2013-01-17 20:34:46 +01:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
2013-02-18 03:33:55 +01:00
|
|
|
.navbar-fixed-top { top: 0; }
|
|
|
|
.navbar-fixed-bottom { bottom: 0; }
|
2013-01-17 20:34:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Navbar optional components
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Brand/project name
|
2013-02-18 10:28:35 +01:00
|
|
|
.navbar-brand {
|
|
|
|
display: block;
|
|
|
|
max-width: 200px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2013-04-28 03:28:39 +02:00
|
|
|
padding: 15px;
|
2013-01-16 02:55:14 +01:00
|
|
|
font-size: 18px;
|
2013-01-18 05:30:40 +01:00
|
|
|
font-weight: 500;
|
2013-01-17 01:14:41 +01:00
|
|
|
line-height: @line-height-base;
|
2013-01-17 00:35:41 +01:00
|
|
|
color: @navbar-brand-color;
|
2013-02-18 10:28:35 +01:00
|
|
|
text-align: center;
|
2013-02-06 04:53:44 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-04-01 02:56:31 +02:00
|
|
|
color: @navbar-brand-hover-color;
|
2013-01-16 02:55:14 +01:00
|
|
|
text-decoration: none;
|
2013-04-01 02:56:31 +02:00
|
|
|
background-color: @navbar-brand-hover-bg;
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
// Collapsible navbar toggle
|
2013-02-18 10:28:35 +01:00
|
|
|
.navbar-toggle {
|
|
|
|
position: absolute;
|
2013-04-29 02:45:42 +02:00
|
|
|
top: 10px;
|
2013-02-18 10:28:35 +01:00
|
|
|
right: 10px;
|
|
|
|
padding: 8px 12px;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 1px solid #ddd;
|
2013-01-16 02:55:14 +01:00
|
|
|
border-radius: 4px;
|
|
|
|
|
2013-02-18 10:28:35 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: #ddd;
|
|
|
|
}
|
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
// Bars
|
|
|
|
.icon-bar {
|
|
|
|
display: block;
|
2013-02-18 10:28:35 +01:00
|
|
|
width: 22px;
|
2013-01-16 02:55:14 +01:00
|
|
|
height: 2px;
|
2013-03-01 09:18:10 +01:00
|
|
|
background-color: #ccc;
|
2013-01-16 02:55:14 +01:00
|
|
|
border-radius: 1px;
|
|
|
|
}
|
|
|
|
.icon-bar + .icon-bar {
|
2013-02-18 10:28:35 +01:00
|
|
|
margin-top: 4px;
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
// Navbar form
|
|
|
|
.navbar-form {
|
2013-02-01 03:09:49 +01:00
|
|
|
.navbar-vertical-align(34px); // Vertically center in navbar
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
2013-01-17 20:20:19 +01:00
|
|
|
|
2013-01-17 20:55:37 +01:00
|
|
|
// Dropdown menus
|
|
|
|
|
|
|
|
// Menu position and menu carets
|
2013-04-28 03:28:39 +02:00
|
|
|
.navbar-nav > li > .dropdown-menu {
|
2013-01-17 20:55:37 +01: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-28 03:28:39 +02:00
|
|
|
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
2013-01-17 20:55:37 +01:00
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dropdown menu items and carets
|
2013-04-28 03:28:39 +02:00
|
|
|
.navbar-nav {
|
2013-01-17 20:55:37 +01:00
|
|
|
// Caret should match text color on hover
|
2013-02-06 04:53:44 +01:00
|
|
|
li.dropdown > a:hover .caret,
|
|
|
|
li.dropdown > a:focus .caret {
|
2013-04-01 02:56:31 +02:00
|
|
|
border-top-color: @navbar-link-hover-color;
|
|
|
|
border-bottom-color: @navbar-link-hover-color;
|
2013-01-17 20:55:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Remove background color from open dropdown
|
|
|
|
li.dropdown.open > .dropdown-toggle,
|
|
|
|
li.dropdown.active > .dropdown-toggle,
|
|
|
|
li.dropdown.open.active > .dropdown-toggle {
|
2013-04-01 02:56:31 +02:00
|
|
|
background-color: @navbar-link-active-bg;
|
|
|
|
color: @navbar-link-active-color;
|
2013-01-17 20:55:37 +01:00
|
|
|
}
|
|
|
|
li.dropdown > .dropdown-toggle .caret {
|
|
|
|
border-top-color: @navbar-link-color;
|
|
|
|
border-bottom-color: @navbar-link-color;
|
|
|
|
}
|
|
|
|
li.dropdown.open > .dropdown-toggle .caret,
|
|
|
|
li.dropdown.active > .dropdown-toggle .caret,
|
|
|
|
li.dropdown.open.active > .dropdown-toggle .caret {
|
2013-04-01 02:56:31 +02:00
|
|
|
border-top-color: @navbar-link-active-color;
|
|
|
|
border-bottom-color: @navbar-link-active-color;
|
2013-01-17 20:55:37 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Right aligned menus need alt position
|
2013-04-28 03:28:39 +02:00
|
|
|
.navbar-nav.pull-right > li > .dropdown-menu,
|
|
|
|
.navbar-nav > li > .dropdown-menu.pull-right {
|
2013-01-17 20:55:37 +01:00
|
|
|
left: auto;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
2013-01-17 01:14:41 +01:00
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
|
|
|
|
// Inverse navbar
|
2013-01-17 20:34:46 +01:00
|
|
|
// --------------------------------------------------
|
2013-01-17 01:14:41 +01:00
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
.navbar-inverse {
|
2013-01-17 20:55:37 +01:00
|
|
|
background-color: @navbar-inverse-bg;
|
2013-01-16 02:55:14 +01:00
|
|
|
|
2013-02-18 10:28:35 +01:00
|
|
|
.navbar-brand {
|
2013-01-17 08:33:26 +01:00
|
|
|
color: @navbar-inverse-brand-color;
|
2013-01-02 23:39:21 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-04-07 23:47:53 +02:00
|
|
|
color: @navbar-inverse-brand-hover-color;
|
|
|
|
background-color: @navbar-inverse-brand-hover-bg;
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
}
|
2013-01-17 08:33:26 +01:00
|
|
|
|
|
|
|
.navbar-text {
|
|
|
|
color: @navbar-inverse-text;
|
|
|
|
}
|
|
|
|
|
2013-04-28 03:28:39 +02: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 08:20:25 +01:00
|
|
|
}
|
2013-01-17 20:34:46 +01:00
|
|
|
|
2013-01-17 20:55:37 +01:00
|
|
|
// Darken the responsive nav toggle
|
2013-02-18 10:28:35 +01:00
|
|
|
.navbar-toggle {
|
|
|
|
border-color: #333;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: #333;
|
|
|
|
}
|
2013-03-01 09:18:10 +01:00
|
|
|
.icon-bar {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
|
2013-01-17 20:55:37 +01:00
|
|
|
// Dropdowns
|
2013-04-28 03:28:39 +02:00
|
|
|
.navbar-nav {
|
|
|
|
li.dropdown.open > .dropdown-toggle,
|
|
|
|
li.dropdown.active > .dropdown-toggle,
|
|
|
|
li.dropdown.open.active > .dropdown-toggle {
|
|
|
|
background-color: @navbar-inverse-link-active-bg;
|
|
|
|
color: @navbar-inverse-link-active-color;
|
|
|
|
}
|
|
|
|
li.dropdown > a:hover .caret {
|
|
|
|
border-top-color: @navbar-inverse-link-hover-color;
|
|
|
|
border-bottom-color: @navbar-inverse-link-hover-color;
|
|
|
|
}
|
|
|
|
li.dropdown > .dropdown-toggle .caret {
|
|
|
|
border-top-color: @navbar-inverse-link-color;
|
|
|
|
border-bottom-color: @navbar-inverse-link-color;
|
|
|
|
}
|
|
|
|
li.dropdown.open > .dropdown-toggle .caret,
|
|
|
|
li.dropdown.active > .dropdown-toggle .caret,
|
|
|
|
li.dropdown.open.active > .dropdown-toggle .caret {
|
|
|
|
border-top-color: @navbar-inverse-link-active-color;
|
|
|
|
border-bottom-color: @navbar-inverse-link-active-color;
|
|
|
|
}
|
|
|
|
|
2013-01-17 20:55:37 +01:00
|
|
|
}
|
2013-01-17 01:14:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
// Inverse navbar
|
2013-01-17 01:14:41 +01:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2013-04-27 18:47:47 +02:00
|
|
|
@media screen and (min-width: @screen-tablet) {
|
2013-04-28 03:28:39 +02:00
|
|
|
|
2013-02-18 10:28:35 +01:00
|
|
|
.navbar-brand {
|
2013-01-17 20:34:46 +01:00
|
|
|
float: left;
|
2013-04-28 03:28:39 +02:00
|
|
|
margin-left: -5px;
|
|
|
|
margin-right: 5px;
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
|
|
|
.navbar .nav {
|
|
|
|
float: left;
|
|
|
|
margin-top: 0; // undo top margin to make nav extend full height of navbar
|
2013-04-28 03:28:39 +02:00
|
|
|
|
|
|
|
> li {
|
|
|
|
float: left;
|
|
|
|
}
|
2013-01-16 02:55:14 +01:00
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
&.pull-right {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
2012-08-27 19:32:07 +02:00
|
|
|
|
2013-02-02 07:56:09 +01:00
|
|
|
// Dividers go vertical
|
|
|
|
// Change the height and height, disable bottom border, then add right border
|
|
|
|
.navbar .nav > .divider {
|
|
|
|
width: 1px;
|
2013-03-06 17:38:20 +01:00
|
|
|
height: (@navbar-height * .6);
|
2013-02-02 07:56:09 +01:00
|
|
|
margin: (@navbar-height * .2) 9px;
|
|
|
|
border-bottom: 0;
|
|
|
|
border-right: 1px solid lighten(@navbar-bg, 5%);
|
|
|
|
}
|
|
|
|
// Since we override the border, we need to specify it again for inverted navbars
|
|
|
|
.navbar-inverse .nav > .divider {
|
|
|
|
border-right-color: lighten(@navbar-inverse-bg, 5%);
|
|
|
|
}
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
// Required to make the collapsing navbar work on regular desktops
|
2013-02-18 10:28:35 +01:00
|
|
|
.navbar-toggle {
|
|
|
|
position: relative;
|
|
|
|
top: auto;
|
|
|
|
left: auto;
|
2013-01-17 20:34:46 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.nav-collapse.collapse {
|
|
|
|
height: auto !important;
|
|
|
|
overflow: visible !important;
|
|
|
|
}
|
2013-01-17 20:55:37 +01:00
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
2012-01-18 09:24:10 +01:00
|
|
|
|
2013-01-17 09:13:12 +01:00
|
|
|
/*
|
2012-07-30 19:08:27 +02:00
|
|
|
|
|
|
|
// Janky solution for now to account for links outside the .nav
|
|
|
|
// -------------------------
|
|
|
|
.navbar-link {
|
2012-12-01 00:33:56 +01:00
|
|
|
color: @navbar-link-color;
|
2012-07-30 19:08:27 +02:00
|
|
|
&:hover {
|
2013-04-01 02:56:31 +02:00
|
|
|
color: @navbar-link-hover-color;
|
2012-01-15 02:16:46 +01:00
|
|
|
}
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
// Buttons in navbar
|
|
|
|
// -------------------------
|
|
|
|
.navbar .btn,
|
|
|
|
.navbar .btn-group {
|
2012-08-27 19:04:58 +02:00
|
|
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
2012-07-30 19:08:27 +02:00
|
|
|
}
|
2012-08-27 19:52:11 +02:00
|
|
|
.navbar .btn-group .btn,
|
|
|
|
.navbar .input-prepend .btn,
|
|
|
|
.navbar .input-append .btn {
|
2012-08-24 23:45:02 +02:00
|
|
|
margin-top: 0; // then undo the margin here so we don't accidentally double it
|
2012-07-30 19:08:27 +02:00
|
|
|
}
|
|
|
|
|
2012-01-07 08:59:22 +01:00
|
|
|
// Navbar forms
|
2012-08-24 23:45:02 +02:00
|
|
|
// -------------------------
|
2012-01-07 08:59:22 +01:00
|
|
|
.navbar-form {
|
|
|
|
margin-bottom: 0; // remove default bottom margin
|
2012-01-30 17:20:37 +01:00
|
|
|
.clearfix();
|
2012-01-07 09:26:58 +01:00
|
|
|
input,
|
2012-02-21 04:14:26 +01:00
|
|
|
select,
|
|
|
|
.radio,
|
|
|
|
.checkbox {
|
2012-07-30 21:15:08 +02:00
|
|
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
2012-02-21 04:14:26 +01:00
|
|
|
}
|
|
|
|
input,
|
2012-07-10 06:01:29 +02:00
|
|
|
select,
|
|
|
|
.btn {
|
2012-01-07 09:26:58 +01:00
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2012-01-28 23:50:56 +01:00
|
|
|
input[type="image"],
|
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
2012-02-13 05:28:22 +01:00
|
|
|
.input-append,
|
|
|
|
.input-prepend {
|
2012-11-16 10:19:15 +01:00
|
|
|
margin-top: 5px;
|
2012-02-13 05:28:22 +01:00
|
|
|
white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
|
|
|
|
input {
|
|
|
|
margin-top: 0; // remove the margin on top since it's on the parent
|
|
|
|
}
|
|
|
|
}
|
2012-01-07 08:59:22 +01:00
|
|
|
}
|
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
*/
|