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 {
|
|
|
|
padding: 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;
|
|
|
|
// Prevent floats from breaking the navbar
|
2013-01-16 02:55:14 +01:00
|
|
|
.clear_float();
|
|
|
|
}
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
// Navbar nav links
|
2013-01-17 01:14:41 +01:00
|
|
|
// -------------------------
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
.navbar {
|
|
|
|
.nav {
|
|
|
|
margin-top: 15px; // space out from .navbar .brand and .btn-navbar
|
|
|
|
}
|
|
|
|
.nav > li > a {
|
|
|
|
padding-top: (@navbar-height - @line-height-base) / 2;
|
|
|
|
padding-bottom: (@navbar-height - @line-height-base) / 2;
|
|
|
|
color: @navbar-link-color;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
.nav > li > a:hover,
|
|
|
|
.nav > li > a:focus {
|
|
|
|
color: @navbar-link-color-hover;
|
|
|
|
background-color: @navbar-link-bg-hover;
|
|
|
|
}
|
|
|
|
.nav > .active > a,
|
|
|
|
.nav > .active > a:hover,
|
|
|
|
.nav > .active > a:focus {
|
|
|
|
color: @navbar-link-color-active;
|
|
|
|
background-color: @navbar-link-bg-active;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Navbar alignment options
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Static navbar
|
|
|
|
.navbar-static-top {
|
|
|
|
position: static;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fixed navbar
|
|
|
|
.navbar-fixed-top,
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: @zindex-navbar-fixed;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
.navbar-fixed-top { top: 0; }
|
|
|
|
.navbar-fixed-bottom { bottom: 0; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Navbar optional components
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Brand/project name
|
2013-01-16 02:55:14 +01:00
|
|
|
.navbar .brand {
|
|
|
|
display: inline-block;
|
2013-01-17 01:20:29 +01:00
|
|
|
padding: 7px 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-01-16 02:55:14 +01:00
|
|
|
&:hover {
|
2013-01-17 01:14:41 +01:00
|
|
|
color: @navbar-brand-color-hover;
|
2013-01-16 02:55:14 +01:00
|
|
|
text-decoration: none;
|
2013-01-17 01:14:41 +01:00
|
|
|
background-color: @navbar-brand-bg-hover;
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
// Collapsible navbar toggle
|
2013-01-16 02:55:14 +01:00
|
|
|
.btn-navbar {
|
|
|
|
float: right;
|
|
|
|
padding: 10px 12px;
|
|
|
|
background-color: #ddd;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
// Bars
|
|
|
|
.icon-bar {
|
|
|
|
display: block;
|
|
|
|
width: 20px;
|
|
|
|
height: 2px;
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 1px;
|
|
|
|
}
|
|
|
|
.icon-bar + .icon-bar {
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
// Dividers in navbar
|
|
|
|
.navbar .divider-vertical {
|
|
|
|
height: @navbar-height * .6;
|
|
|
|
margin: (@navbar-height * .2) 9px;
|
|
|
|
border-left: 1px solid darken(@navbar-bg, 5%);
|
|
|
|
border-right: 1px solid lighten(@navbar-bg, 5%);
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
2013-01-17 01:14:41 +01:00
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
// Navbar form
|
|
|
|
.navbar-form {
|
|
|
|
.navbar-vertical-align(32px); // Vertically center in navbar
|
|
|
|
}
|
2013-01-17 20:20:19 +01:00
|
|
|
|
2013-01-17 20:55:37 +01:00
|
|
|
// Dropdown menus
|
|
|
|
|
|
|
|
// Menu position and menu carets
|
|
|
|
.navbar .nav > li > .dropdown-menu {
|
|
|
|
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
|
|
|
|
.navbar-fixed-bottom .nav > li > .dropdown-menu {
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dropdown menu items and carets
|
|
|
|
.navbar .nav {
|
|
|
|
// Caret should match text color on hover
|
|
|
|
li.dropdown > a:hover .caret {
|
|
|
|
border-top-color: @navbar-link-color-hover;
|
|
|
|
border-bottom-color: @navbar-link-color-hover;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Remove background color from open dropdown
|
|
|
|
li.dropdown.open > .dropdown-toggle,
|
|
|
|
li.dropdown.active > .dropdown-toggle,
|
|
|
|
li.dropdown.open.active > .dropdown-toggle {
|
|
|
|
background-color: @navbar-link-bg-active;
|
|
|
|
color: @navbar-link-color-active;
|
|
|
|
}
|
|
|
|
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 {
|
|
|
|
border-top-color: @navbar-link-color-active;
|
|
|
|
border-bottom-color: @navbar-link-color-active;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Right aligned menus need alt position
|
|
|
|
.navbar .pull-right > li > .dropdown-menu,
|
|
|
|
.navbar .nav > li > .dropdown-menu.pull-right {
|
|
|
|
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
|
|
|
|
|
|
|
.brand {
|
2013-01-17 08:33:26 +01:00
|
|
|
color: @navbar-inverse-brand-color;
|
2013-01-16 02:55:14 +01:00
|
|
|
&:hover {
|
2013-01-17 08:33:26 +01:00
|
|
|
color: @navbar-inverse-brand-color-hover;
|
|
|
|
background-color: @navbar-inverse-brand-bg-hover;
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
}
|
2013-01-17 08:33:26 +01:00
|
|
|
|
|
|
|
.navbar-text {
|
|
|
|
color: @navbar-inverse-text;
|
|
|
|
}
|
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
.nav > li > a {
|
2013-01-17 00:35:41 +01:00
|
|
|
color: @navbar-inverse-link-color;
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
2013-01-17 00:35:41 +01:00
|
|
|
.nav > li > a:hover,
|
|
|
|
.nav > li > a:focus {
|
|
|
|
color: @navbar-inverse-link-color-hover;
|
|
|
|
background-color: @navbar-inverse-link-bg-hover;
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
2013-01-17 00:35:41 +01:00
|
|
|
.nav > .active > a,
|
|
|
|
.nav > .active > a:hover,
|
|
|
|
.nav > .active > a:focus {
|
|
|
|
color: @navbar-inverse-link-color-active;
|
|
|
|
background-color: @navbar-inverse-link-bg-active;
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
2013-01-17 20:34:46 +01:00
|
|
|
|
2013-01-17 20:55:37 +01:00
|
|
|
// Darken the responsive nav toggle
|
2013-01-16 02:55:14 +01:00
|
|
|
.btn-navbar {
|
|
|
|
background-color: #444;
|
|
|
|
}
|
|
|
|
|
2013-01-17 20:55:37 +01:00
|
|
|
// Darken divider borders
|
2013-01-17 20:34:46 +01:00
|
|
|
.divider-vertical {
|
|
|
|
border-left-color: darken(@navbar-inverse-bg, 5%);
|
|
|
|
border-right-color: lighten(@navbar-inverse-bg, 5%);
|
|
|
|
}
|
2013-01-17 20:55:37 +01:00
|
|
|
|
|
|
|
// Dropdowns
|
|
|
|
.nav li.dropdown.open > .dropdown-toggle,
|
|
|
|
.nav li.dropdown.active > .dropdown-toggle,
|
|
|
|
.nav li.dropdown.open.active > .dropdown-toggle {
|
|
|
|
background-color: @navbar-inverse-link-bg-active;
|
|
|
|
color: @navbar-inverse-link-color-active;
|
|
|
|
}
|
|
|
|
.nav li.dropdown > a:hover .caret {
|
|
|
|
border-top-color: @navbar-inverse-link-color-hover;
|
|
|
|
border-bottom-color: @navbar-inverse-link-color-hover;
|
|
|
|
}
|
|
|
|
.nav li.dropdown > .dropdown-toggle .caret {
|
|
|
|
border-top-color: @navbar-inverse-link-color;
|
|
|
|
border-bottom-color: @navbar-inverse-link-color;
|
|
|
|
}
|
|
|
|
.nav li.dropdown.open > .dropdown-toggle .caret,
|
|
|
|
.nav li.dropdown.active > .dropdown-toggle .caret,
|
|
|
|
.nav li.dropdown.open.active > .dropdown-toggle .caret {
|
|
|
|
border-top-color: @navbar-inverse-link-color-active;
|
|
|
|
border-bottom-color: @navbar-inverse-link-color-active;
|
|
|
|
}
|
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-01-17 20:34:46 +01:00
|
|
|
@media screen and (min-width: 768px) {
|
|
|
|
.navbar {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
.navbar .brand {
|
|
|
|
float: left;
|
|
|
|
padding-top: (@navbar-height - @line-height-base) / 2;
|
|
|
|
padding-bottom: (@navbar-height - @line-height-base) / 2;
|
|
|
|
margin-left: -15px;
|
|
|
|
}
|
|
|
|
.navbar .nav {
|
|
|
|
float: left;
|
|
|
|
margin-top: 0; // undo top margin to make nav extend full height of navbar
|
|
|
|
.clear_float();
|
2013-01-16 02:55:14 +01:00
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
&.pull-right {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.navbar .nav > li {
|
|
|
|
float: left;
|
|
|
|
}
|
2012-08-27 19:32:07 +02:00
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
// Required to make the collapsing navbar work on regular desktops
|
|
|
|
.navbar .btn-navbar {
|
|
|
|
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 {
|
2012-12-01 00:33:56 +01:00
|
|
|
color: @navbar-link-color-hover;
|
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
|
|
|
*/
|