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();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Brand/project name
|
2013-01-17 01:14:41 +01:00
|
|
|
// -------------------------
|
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
.navbar .brand {
|
|
|
|
display: inline-block;
|
2013-01-17 01:14:41 +01:00
|
|
|
padding: ((@navbar-height - @line-height-base) / 2) 15px;
|
2013-01-16 02:55:14 +01:00
|
|
|
font-size: 18px;
|
|
|
|
font-weight: bold;
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Responsive navbar button
|
2013-01-17 01:14:41 +01:00
|
|
|
// -------------------------
|
|
|
|
|
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 01:14:41 +01:00
|
|
|
// Navbar nav links
|
|
|
|
// -------------------------
|
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
.navbar {
|
|
|
|
.nav {
|
|
|
|
margin-top: 15px; // space out from .navbar .brand and .btn-navbar
|
|
|
|
}
|
2013-01-17 01:14:41 +01:00
|
|
|
.nav > li {
|
|
|
|
float: left;
|
|
|
|
}
|
2013-01-16 02:55:14 +01:00
|
|
|
.nav > li > a {
|
2013-01-17 01:14:41 +01:00
|
|
|
padding-top: (@navbar-height - @line-height-base) / 2;
|
|
|
|
padding-bottom: (@navbar-height - @line-height-base) / 2;
|
2013-01-17 00:35:41 +01:00
|
|
|
color: @navbar-link-color;
|
2013-01-16 02:55:14 +01:00
|
|
|
line-height: 20px;
|
|
|
|
}
|
2013-01-17 00:35:41 +01:00
|
|
|
.nav > li > a:hover,
|
|
|
|
.nav > li > a:focus {
|
|
|
|
color: @navbar-link-color-hover;
|
|
|
|
background-color: @navbar-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-link-color-active;
|
|
|
|
background-color: @navbar-link-bg-active;
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
}
|
2013-01-17 01:14:41 +01:00
|
|
|
@media screen and (min-width: 992px) {
|
|
|
|
|
|
|
|
.navbar {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
.navbar .brand {
|
|
|
|
float: left;
|
|
|
|
margin-left: -15px;
|
|
|
|
}
|
|
|
|
.navbar .nav {
|
|
|
|
.clear_float();
|
|
|
|
margin-top: 0; // undo top margin to make nav extend full height of navbar
|
|
|
|
}
|
|
|
|
|
|
|
|
// Required to make the collapsing navbar work on regular desktops
|
|
|
|
.navbar .btn-navbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.nav-collapse.collapse {
|
|
|
|
float: left;
|
|
|
|
height: auto !important;
|
|
|
|
overflow: visible !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2013-01-16 02:55:14 +01:00
|
|
|
|
|
|
|
// Inverse navbar
|
2013-01-17 01:14:41 +01:00
|
|
|
// -------------------------
|
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
.navbar-inverse {
|
2013-01-17 00:35:41 +01:00
|
|
|
background-color: @navbar-inverse-bg;
|
2013-01-16 02:55:14 +01:00
|
|
|
|
|
|
|
.brand {
|
|
|
|
color: #fff;
|
|
|
|
&:hover {
|
|
|
|
background-color: #333;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.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
|
|
|
}
|
|
|
|
.btn-navbar {
|
|
|
|
background-color: #444;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-17 01:14:41 +01:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Dividers in navbar
|
|
|
|
.navbar .divider-vertical {
|
|
|
|
height: 26px;
|
|
|
|
margin: 7px 9px;
|
|
|
|
border-left: 1px solid darken(@navbar-bg, 5%);
|
|
|
|
border-right: 1px solid lighten(@navbar-bg, 5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Navbar form
|
|
|
|
.navbar-form {
|
|
|
|
.navbar-vertical-align(32px); // Vertically center in navbar
|
|
|
|
}
|
2013-01-16 02:55:14 +01:00
|
|
|
|
|
|
|
/*
|
2012-01-05 19:01:42 +01:00
|
|
|
|
2012-01-18 09:24:10 +01:00
|
|
|
// COMMON STYLES
|
|
|
|
// -------------
|
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
// Base class and wrapper
|
2012-01-05 19:01:42 +01:00
|
|
|
.navbar {
|
2012-07-30 19:08:27 +02:00
|
|
|
overflow: visible;
|
2012-09-26 07:48:02 +02:00
|
|
|
padding: 0 20px;
|
2012-11-30 23:45:25 +01:00
|
|
|
margin-bottom: @line-height-base;
|
2012-12-21 09:50:28 +01:00
|
|
|
background-color: @navbar-background;
|
2012-11-30 23:45:25 +01:00
|
|
|
border-radius: @border-radius-base;
|
2012-08-27 19:32:07 +02:00
|
|
|
|
|
|
|
// Prevent floats from breaking the navbar
|
|
|
|
.clearfix();
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-01-18 09:24:10 +01:00
|
|
|
|
2012-02-22 08:15:43 +01:00
|
|
|
// Set width to auto for default container
|
|
|
|
// We then reset it for fixed navbars in the #gridSystem mixin
|
|
|
|
.navbar .container {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
2012-01-29 23:07:14 +01:00
|
|
|
// Override the default collapsed state
|
2012-01-29 07:03:14 +01:00
|
|
|
.nav-collapse.collapse {
|
2012-01-29 23:07:14 +01:00
|
|
|
height: auto;
|
2012-09-20 19:27:59 +02:00
|
|
|
overflow: visible;
|
2012-01-29 07:03:14 +01:00
|
|
|
}
|
|
|
|
|
2012-01-29 00:09:23 +01:00
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
// Brand: website or project name
|
|
|
|
// -------------------------
|
|
|
|
.navbar .brand {
|
|
|
|
float: left;
|
|
|
|
display: block;
|
2012-12-01 00:33:56 +01:00
|
|
|
// Vertically center the text given @navbar-height
|
|
|
|
padding: ((@navbar-height - @line-height-base) / 2) 20px ((@navbar-height - @line-height-base) / 2);
|
2012-07-30 19:08:27 +02:00
|
|
|
margin-left: -20px; // negative indent to left-align the text down the page
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: 200;
|
2012-12-01 00:33:56 +01:00
|
|
|
color: @navbar-brand-color;
|
|
|
|
text-shadow: 0 1px 0 @navbar-background-highlight;
|
2012-07-30 19:08:27 +02:00
|
|
|
&:hover {
|
2012-01-05 19:01:42 +01:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2012-07-30 19:08:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Plain text in topbar
|
|
|
|
// -------------------------
|
|
|
|
.navbar-text {
|
|
|
|
margin-bottom: 0;
|
2012-12-01 00:33:56 +01:00
|
|
|
line-height: @navbar-height;
|
|
|
|
color: @navbar-text;
|
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-08-14 07:57:40 +02:00
|
|
|
// Dividers in navbar
|
|
|
|
// -------------------------
|
|
|
|
.navbar .divider-vertical {
|
2012-12-01 00:33:56 +01:00
|
|
|
height: @navbar-height;
|
2012-08-14 07:57:40 +02:00
|
|
|
margin: 0 9px;
|
2012-12-01 00:33:56 +01:00
|
|
|
border-left: 1px solid @navbar-background;
|
|
|
|
border-right: 1px solid @navbar-background-highlight;
|
2012-08-14 07:57:40 +02: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
|
|
|
}
|
|
|
|
|
2012-01-05 19:01:42 +01:00
|
|
|
// Navbar search
|
2012-08-24 23:45:02 +02:00
|
|
|
// -------------------------
|
2012-01-05 19:01:42 +01:00
|
|
|
.navbar-search {
|
|
|
|
position: relative;
|
|
|
|
float: left;
|
2012-07-24 10:44:12 +02:00
|
|
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
2012-01-05 19:01:42 +01:00
|
|
|
margin-bottom: 0;
|
|
|
|
.search-query {
|
2012-07-13 19:58:20 +02:00
|
|
|
margin-bottom: 0;
|
2012-07-24 10:44:12 +02:00
|
|
|
padding: 4px 14px;
|
2012-01-05 19:01:42 +01:00
|
|
|
#font > .sans-serif(13px, normal, 1);
|
2012-10-01 08:11:54 +02:00
|
|
|
border-radius: 15px; // redeclare because of specificity of the type attribute
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-02-22 06:12:16 +01:00
|
|
|
|
2012-08-17 20:46:23 +02:00
|
|
|
// Static navbar
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.navbar-static-top {
|
|
|
|
position: static;
|
|
|
|
margin-bottom: 0; // remove 18px margin for default navbar
|
2012-10-01 08:11:54 +02:00
|
|
|
border-radius: 0;
|
2012-08-17 20:46:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Fixed navbar
|
|
|
|
// -------------------------
|
2012-01-27 22:20:02 +01:00
|
|
|
|
2012-02-22 06:12:16 +01:00
|
|
|
// Shared (top/bottom) styles
|
|
|
|
.navbar-fixed-top,
|
|
|
|
.navbar-fixed-bottom {
|
2012-01-05 19:01:42 +01:00
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2012-12-01 00:23:13 +01:00
|
|
|
z-index: @zindex-navbar-fixed;
|
2012-08-17 20:46:23 +02:00
|
|
|
margin-bottom: 0; // remove 18px margin for default navbar
|
2012-10-01 08:11:54 +02:00
|
|
|
border-radius: 0;
|
2012-01-29 08:40:52 +01:00
|
|
|
}
|
2012-01-05 19:01:42 +01:00
|
|
|
|
2012-08-14 23:53:45 +02:00
|
|
|
// Reset container width
|
2012-08-20 06:12:52 +02:00
|
|
|
// Required here as we reset the width earlier on and the grid mixins don't override early enough
|
|
|
|
.navbar-static-top .container,
|
2012-02-28 07:34:25 +01:00
|
|
|
.navbar-fixed-top .container,
|
|
|
|
.navbar-fixed-bottom .container {
|
2012-12-01 00:43:07 +01:00
|
|
|
#grid > .core > .span(@grid-columns);
|
2012-02-28 07:34:25 +01:00
|
|
|
}
|
|
|
|
|
2012-02-22 06:12:16 +01:00
|
|
|
// Fixed to top
|
|
|
|
.navbar-fixed-top {
|
|
|
|
top: 0;
|
2012-08-20 06:12:52 +02:00
|
|
|
}
|
2012-02-22 06:12:16 +01:00
|
|
|
|
|
|
|
// Fixed to bottom
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-05 19:01:42 +01:00
|
|
|
|
|
|
|
// NAVIGATION
|
|
|
|
// ----------
|
|
|
|
|
2012-01-08 05:40:28 +01:00
|
|
|
.navbar .nav {
|
2012-01-05 19:01:42 +01:00
|
|
|
position: relative;
|
|
|
|
left: 0;
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
margin: 0 10px 0 0;
|
2012-01-08 06:09:02 +01:00
|
|
|
}
|
|
|
|
.navbar .nav.pull-right {
|
|
|
|
float: right; // redeclare due to specificity
|
2012-08-23 18:38:56 +02:00
|
|
|
margin-right: 0; // remove margin on float right nav
|
2012-01-08 06:09:02 +01:00
|
|
|
}
|
|
|
|
.navbar .nav > li {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Links
|
|
|
|
.navbar .nav > li > a {
|
|
|
|
float: none;
|
2012-12-01 00:33:56 +01:00
|
|
|
// Vertically center the text given @navbar-height
|
|
|
|
padding: ((@navbar-height - @line-height-base) / 2) 15px ((@navbar-height - @line-height-base) / 2);
|
|
|
|
color: @navbar-link-color;
|
2012-01-08 06:09:02 +01:00
|
|
|
text-decoration: none;
|
2012-12-01 00:33:56 +01:00
|
|
|
text-shadow: 0 1px 0 @navbar-background-highlight;
|
2012-01-08 06:09:02 +01:00
|
|
|
}
|
2012-06-25 05:42:31 +02:00
|
|
|
.navbar .nav .dropdown-toggle .caret {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
|
2012-01-08 06:09:02 +01:00
|
|
|
// Hover
|
2012-05-17 09:23:11 +02:00
|
|
|
.navbar .nav > li > a:focus,
|
2012-01-08 06:09:02 +01:00
|
|
|
.navbar .nav > li > a:hover {
|
2012-12-01 00:33:56 +01:00
|
|
|
background-color: @navbar-link-background-hover; // "transparent" is default to differentiate :hover from .active
|
|
|
|
color: @navbar-link-color-hover;
|
2012-01-08 06:09:02 +01:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Active nav items
|
2012-08-17 20:22:45 +02:00
|
|
|
.navbar .nav > .active > a,
|
|
|
|
.navbar .nav > .active > a:hover,
|
|
|
|
.navbar .nav > .active > a:focus {
|
2012-12-01 00:33:56 +01:00
|
|
|
color: @navbar-link-color-active;
|
2012-01-08 23:33:14 +01:00
|
|
|
text-decoration: none;
|
2012-12-01 00:33:56 +01:00
|
|
|
background-color: @navbar-link-background-active;
|
2012-01-08 06:09:02 +01:00
|
|
|
}
|
|
|
|
|
2012-04-02 00:22:52 +02:00
|
|
|
// Navbar button for toggling navbar items in responsive layouts
|
|
|
|
// These definitions need to come after '.navbar .btn'
|
|
|
|
.navbar .btn-navbar {
|
|
|
|
display: none;
|
|
|
|
float: right;
|
|
|
|
padding: 7px 10px;
|
|
|
|
margin-left: 5px;
|
|
|
|
margin-right: 5px;
|
2012-12-01 00:33:56 +01:00
|
|
|
.buttonBackground(darken(@navbar-background-highlight, 5%), darken(@navbar-background, 5%));
|
2012-09-13 00:48:56 +02:00
|
|
|
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)");
|
2012-04-02 00:22:52 +02:00
|
|
|
}
|
|
|
|
.navbar .btn-navbar .icon-bar {
|
|
|
|
display: block;
|
|
|
|
width: 18px;
|
|
|
|
height: 2px;
|
|
|
|
background-color: #f5f5f5;
|
2012-10-01 08:11:54 +02:00
|
|
|
border-radius: 1px;
|
2012-04-02 00:22:52 +02:00
|
|
|
.box-shadow(0 1px 0 rgba(0,0,0,.25));
|
|
|
|
}
|
|
|
|
.btn-navbar .icon-bar + .icon-bar {
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
2012-01-08 06:09:02 +01:00
|
|
|
|
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
|
2012-01-08 06:09:02 +01:00
|
|
|
// Dropdown menus
|
|
|
|
// --------------
|
|
|
|
|
|
|
|
// Menu position and menu carets
|
2012-08-14 23:29:31 +02:00
|
|
|
.navbar .nav > li > .dropdown-menu {
|
2012-01-08 06:09:02 +01:00
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
border-left: 7px solid transparent;
|
|
|
|
border-right: 7px solid transparent;
|
|
|
|
border-bottom: 7px solid #ccc;
|
2012-12-01 00:09:57 +01:00
|
|
|
border-bottom-color: @dropdown-border;
|
2012-01-08 06:09:02 +01:00
|
|
|
position: absolute;
|
|
|
|
top: -7px;
|
2012-01-13 00:29:16 +01:00
|
|
|
left: 9px;
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-01-08 06:09:02 +01:00
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
border-left: 6px solid transparent;
|
|
|
|
border-right: 6px solid transparent;
|
2012-12-01 00:09:57 +01:00
|
|
|
border-bottom: 6px solid @dropdown-background;
|
2012-01-08 06:09:02 +01:00
|
|
|
position: absolute;
|
|
|
|
top: -6px;
|
2012-01-13 00:29:16 +01:00
|
|
|
left: 10px;
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-01-08 06:09:02 +01:00
|
|
|
}
|
2012-03-06 05:20:42 +01:00
|
|
|
// Menu position and menu caret support for dropups via extra dropup class
|
2012-08-14 23:29:31 +02:00
|
|
|
.navbar-fixed-bottom .nav > li > .dropdown-menu {
|
2012-01-29 23:50:47 +01:00
|
|
|
&:before {
|
|
|
|
border-top: 7px solid #ccc;
|
2012-12-01 00:09:57 +01:00
|
|
|
border-top-color: @dropdown-border;
|
2012-01-29 23:50:47 +01:00
|
|
|
border-bottom: 0;
|
|
|
|
bottom: -7px;
|
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
&:after {
|
2012-12-01 00:09:57 +01:00
|
|
|
border-top: 6px solid @dropdown-background;
|
2012-01-29 23:50:47 +01:00
|
|
|
border-bottom: 0;
|
|
|
|
bottom: -6px;
|
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
}
|
2012-01-08 06:09:02 +01:00
|
|
|
|
2012-11-28 09:42:17 +01:00
|
|
|
// Caret should match text color on hover
|
|
|
|
.navbar .nav li.dropdown > a:hover .caret {
|
2013-01-13 13:26:52 +01:00
|
|
|
border-top-color: @navbar-link-color-hover;
|
|
|
|
border-bottom-color: @navbar-link-color-hover;
|
2012-11-28 09:42:17 +01:00
|
|
|
}
|
|
|
|
|
2012-01-08 06:09:02 +01:00
|
|
|
// Remove background color from open dropdown
|
2012-04-02 00:22:52 +02:00
|
|
|
.navbar .nav li.dropdown.open > .dropdown-toggle,
|
|
|
|
.navbar .nav li.dropdown.active > .dropdown-toggle,
|
|
|
|
.navbar .nav li.dropdown.open.active > .dropdown-toggle {
|
2012-12-01 00:33:56 +01:00
|
|
|
background-color: @navbar-link-background-active;
|
|
|
|
color: @navbar-link-color-active;
|
2012-01-08 06:09:02 +01:00
|
|
|
}
|
2012-07-30 19:08:27 +02:00
|
|
|
.navbar .nav li.dropdown > .dropdown-toggle .caret {
|
2012-12-01 00:33:56 +01:00
|
|
|
border-top-color: @navbar-link-color;
|
|
|
|
border-bottom-color: @navbar-link-color;
|
2012-07-30 19:08:27 +02:00
|
|
|
}
|
|
|
|
.navbar .nav li.dropdown.open > .dropdown-toggle .caret,
|
|
|
|
.navbar .nav li.dropdown.active > .dropdown-toggle .caret,
|
|
|
|
.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
|
2012-12-01 00:33:56 +01:00
|
|
|
border-top-color: @navbar-link-color-active;
|
|
|
|
border-bottom-color: @navbar-link-color-active;
|
2012-01-13 00:29:16 +01:00
|
|
|
}
|
|
|
|
|
2012-01-08 06:09:02 +01:00
|
|
|
// Right aligned menus need alt position
|
2012-08-15 01:24:58 +02:00
|
|
|
.navbar .pull-right > li > .dropdown-menu,
|
|
|
|
.navbar .nav > li > .dropdown-menu.pull-right {
|
2012-01-28 06:25:35 +01:00
|
|
|
left: auto;
|
2012-01-08 06:09:02 +01:00
|
|
|
right: 0;
|
|
|
|
&:before {
|
|
|
|
left: auto;
|
|
|
|
right: 12px;
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-01-08 06:09:02 +01:00
|
|
|
&:after {
|
|
|
|
left: auto;
|
|
|
|
right: 13px;
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-08-14 23:32:03 +02:00
|
|
|
.dropdown-menu {
|
|
|
|
left: auto;
|
|
|
|
right: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: -1px;
|
2012-10-01 08:11:54 +02:00
|
|
|
border-radius: 6px 0 6px 6px;
|
2012-08-14 23:32:03 +02:00
|
|
|
}
|
2012-06-15 22:07:44 +02:00
|
|
|
}
|
2012-06-25 06:03:39 +02:00
|
|
|
|
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
// Inverted navbar
|
|
|
|
// -------------------------
|
2012-06-25 06:03:39 +02:00
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
.navbar-inverse {
|
2012-12-21 09:50:28 +01:00
|
|
|
background-color: @navbar-inverse-background;
|
2012-06-25 06:03:39 +02:00
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
.brand,
|
|
|
|
.nav > li > a {
|
2012-12-01 00:33:56 +01:00
|
|
|
color: @navbar-inverse-link-color;
|
2012-07-30 19:08:27 +02:00
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
|
|
&:hover {
|
2012-12-01 00:33:56 +01:00
|
|
|
color: @navbar-inverse-link-color-hover;
|
2012-07-30 19:08:27 +02:00
|
|
|
}
|
|
|
|
}
|
2012-07-05 08:31:30 +02:00
|
|
|
|
2012-11-11 02:58:00 +01:00
|
|
|
.brand {
|
2012-12-01 00:33:56 +01:00
|
|
|
color: @navbar-inverse-brand-color;
|
2012-11-11 02:58:00 +01:00
|
|
|
}
|
|
|
|
|
2012-11-05 07:50:07 +01:00
|
|
|
.navbar-text {
|
2012-12-01 00:33:56 +01:00
|
|
|
color: @navbar-inverse-text;
|
2012-11-05 07:50:07 +01:00
|
|
|
}
|
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
.nav > li > a:focus,
|
|
|
|
.nav > li > a:hover {
|
2012-12-01 00:33:56 +01:00
|
|
|
background-color: @navbar-inverse-link-background-hover;
|
|
|
|
color: @navbar-inverse-link-color-hover;
|
2012-07-30 19:08:27 +02:00
|
|
|
}
|
2012-07-05 08:31:30 +02:00
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
.nav .active > a,
|
|
|
|
.nav .active > a:hover,
|
|
|
|
.nav .active > a:focus {
|
2012-12-01 00:33:56 +01:00
|
|
|
color: @navbar-inverse-link-color-active;
|
|
|
|
background-color: @navbar-inverse-link-background-active;
|
2012-07-30 19:08:27 +02:00
|
|
|
}
|
2012-06-25 06:03:39 +02:00
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
// Inline text links
|
|
|
|
.navbar-link {
|
2012-12-01 00:33:56 +01:00
|
|
|
color: @navbar-inverse-link-color;
|
2012-07-30 19:08:27 +02:00
|
|
|
&:hover {
|
2012-12-01 00:33:56 +01:00
|
|
|
color: @navbar-inverse-link-color-hover;
|
2012-07-30 19:08:27 +02:00
|
|
|
}
|
|
|
|
}
|
2012-06-29 06:20:40 +02:00
|
|
|
|
2012-08-14 07:57:40 +02:00
|
|
|
// Dividers in navbar
|
|
|
|
.divider-vertical {
|
2012-12-01 00:33:56 +01:00
|
|
|
border-left-color: @navbar-inverse-background;
|
|
|
|
border-right-color: @navbar-inverse-background-highlight;
|
2012-08-14 07:57:40 +02:00
|
|
|
}
|
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
// Dropdowns
|
|
|
|
.nav li.dropdown.open > .dropdown-toggle,
|
|
|
|
.nav li.dropdown.active > .dropdown-toggle,
|
|
|
|
.nav li.dropdown.open.active > .dropdown-toggle {
|
2012-12-01 00:33:56 +01:00
|
|
|
background-color: @navbar-inverse-link-background-active;
|
|
|
|
color: @navbar-inverse-link-color-active;
|
2012-07-30 19:08:27 +02:00
|
|
|
}
|
2012-11-28 09:42:17 +01:00
|
|
|
.nav li.dropdown > a:hover .caret {
|
2012-12-01 00:33:56 +01:00
|
|
|
border-top-color: @navbar-inverse-link-color-active;
|
|
|
|
border-bottom-color: @navbar-inverse-link-color-active;
|
2012-11-28 09:42:17 +01:00
|
|
|
}
|
2012-07-30 19:08:27 +02:00
|
|
|
.nav li.dropdown > .dropdown-toggle .caret {
|
2012-12-01 00:33:56 +01:00
|
|
|
border-top-color: @navbar-inverse-link-color;
|
|
|
|
border-bottom-color: @navbar-inverse-link-color;
|
2012-07-30 19:08:27 +02:00
|
|
|
}
|
|
|
|
.nav li.dropdown.open > .dropdown-toggle .caret,
|
|
|
|
.nav li.dropdown.active > .dropdown-toggle .caret,
|
|
|
|
.nav li.dropdown.open.active > .dropdown-toggle .caret {
|
2012-12-01 00:33:56 +01:00
|
|
|
border-top-color: @navbar-inverse-link-color-active;
|
|
|
|
border-bottom-color: @navbar-inverse-link-color-active;
|
2012-07-30 19:08:27 +02:00
|
|
|
}
|
2012-06-25 06:03:39 +02:00
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
// Navbar search
|
|
|
|
.navbar-search {
|
|
|
|
.search-query {
|
2012-12-01 00:05:23 +01:00
|
|
|
color: #fff;
|
2012-12-01 00:33:56 +01:00
|
|
|
background-color: @navbar-inverse-search-background;
|
|
|
|
border-color: @navbar-inverse-search-border;
|
2012-09-13 00:53:29 +02:00
|
|
|
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
|
2012-07-30 19:08:27 +02:00
|
|
|
.transition(none);
|
2012-12-01 00:33:56 +01:00
|
|
|
.placeholder(@navbar-inverse-search-placeholder-color);
|
2012-07-30 19:08:27 +02:00
|
|
|
|
2012-09-26 07:07:53 +02:00
|
|
|
// Focus states (we use .focused since IE8 and down doesn't support :focus)
|
2012-07-30 19:08:27 +02:00
|
|
|
&:focus,
|
|
|
|
&.focused {
|
|
|
|
padding: 5px 15px;
|
|
|
|
color: @grayDark;
|
2012-12-01 00:05:23 +01:00
|
|
|
text-shadow: 0 1px 0 #fff;
|
2012-12-01 00:33:56 +01:00
|
|
|
background-color: @navbar-inverse-search-background-focus;
|
2012-07-30 19:08:27 +02:00
|
|
|
border: 0;
|
|
|
|
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-07-05 19:37:23 +02:00
|
|
|
|
2012-07-30 19:08:27 +02:00
|
|
|
// Navbar collapse button
|
|
|
|
.btn-navbar {
|
2012-12-01 00:33:56 +01:00
|
|
|
.buttonBackground(darken(@navbar-inverse-background-highlight, 5%), darken(@navbar-inverse-background, 5%));
|
2012-07-05 19:37:23 +02:00
|
|
|
}
|
|
|
|
|
2012-06-25 06:03:39 +02:00
|
|
|
}
|
2013-01-16 02:55:14 +01:00
|
|
|
|
|
|
|
*/
|