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-08-13 06:23:28 +02:00
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
// Wrapper and base class
|
2013-08-13 06:23:28 +02:00
|
|
|
//
|
|
|
|
// Provide a static navbar from which we expand to create full-width, fixed, and
|
|
|
|
// other navbar variations.
|
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
.navbar {
|
2013-02-18 10:28:35 +01:00
|
|
|
position: relative;
|
2013-07-18 10:25:08 +02:00
|
|
|
min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
|
2013-08-12 03:32:52 +02:00
|
|
|
margin-bottom: @navbar-margin-bottom;
|
2013-01-17 00:35:41 +01:00
|
|
|
background-color: @navbar-bg;
|
2013-08-13 22:39:21 +02:00
|
|
|
border: 1px solid @navbar-border;
|
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-08-13 06:23:28 +02:00
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-radius: @navbar-border-radius;
|
|
|
|
}
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
|
2013-01-17 01:14:41 +01:00
|
|
|
|
2013-08-13 06:23:28 +02:00
|
|
|
// Navbar heading
|
|
|
|
//
|
|
|
|
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
|
|
|
// styling of responsive aspects.
|
2013-06-21 02:15:09 +02:00
|
|
|
|
2013-08-13 06:23:28 +02:00
|
|
|
.navbar-header {
|
|
|
|
padding-left: @navbar-padding-horizontal;
|
|
|
|
padding-right: @navbar-padding-horizontal;
|
|
|
|
.clearfix();
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
float: left;
|
2013-06-21 02:15:09 +02:00
|
|
|
}
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-08-13 06:23:28 +02:00
|
|
|
// Navbar collapse (body)
|
|
|
|
//
|
|
|
|
// Group your navbar content into this for easy collapsing and expanding across
|
|
|
|
// various device sizes. By default, this content is collapsed when <768px, but
|
|
|
|
// will expand past that for a horizontal display.
|
|
|
|
//
|
|
|
|
// To start (on mobile devices) the navbar links, forms, and buttons are stacked
|
|
|
|
// vertically and include a `max-height` to overflow in case you have too much
|
|
|
|
// content for the user's viewport.
|
|
|
|
|
|
|
|
.navbar-collapse {
|
2013-08-15 09:07:23 +02:00
|
|
|
padding-right: @navbar-padding-horizontal;
|
|
|
|
padding-left: @navbar-padding-horizontal;
|
2013-08-13 06:23:28 +02:00
|
|
|
border-top: 1px solid darken(@navbar-bg, 7%);
|
|
|
|
box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
|
|
|
|
// Clear floated elements and prevent collapsing of padding
|
|
|
|
.clearfix();
|
|
|
|
|
|
|
|
// This is not automatically added to the `.navbar-fixed-top` because it causes
|
|
|
|
// z-index bugs in iOS7 (possibly earlier).
|
2013-08-14 00:22:05 +02:00
|
|
|
max-height: 340px;
|
2013-08-13 06:23:28 +02:00
|
|
|
overflow-x: visible;
|
2013-08-14 00:22:05 +02:00
|
|
|
overflow-y: auto;
|
2013-08-13 06:23:28 +02:00
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
width: auto;
|
2013-08-15 09:07:23 +02:00
|
|
|
padding-right: 0;
|
|
|
|
padding-left: 0;
|
2013-08-13 06:23:28 +02:00
|
|
|
border-top: 0;
|
2013-08-13 23:46:34 +02:00
|
|
|
box-shadow: none;
|
2013-08-15 06:32:23 +02:00
|
|
|
|
|
|
|
&.collapse {
|
|
|
|
display: block !important;
|
|
|
|
height: auto !important;
|
|
|
|
padding-bottom: 0; // Override default setting
|
|
|
|
overflow: visible !important;
|
|
|
|
}
|
2013-08-15 22:29:45 +02:00
|
|
|
|
|
|
|
&.in {
|
|
|
|
overflow-y: visible;
|
|
|
|
}
|
2013-08-13 06:23:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Navbar alignment options
|
2013-08-13 06:23:28 +02:00
|
|
|
//
|
|
|
|
// Display the navbar across the entirity of the page or fixed it to the top or
|
|
|
|
// bottom of the page.
|
2013-01-17 20:34:46 +01:00
|
|
|
|
2013-08-13 06:23:28 +02:00
|
|
|
// Static top (unfixed, but 100% wide) navbar
|
2013-01-17 20:34:46 +01:00
|
|
|
.navbar-static-top {
|
2013-08-13 06:23:28 +02:00
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
2013-08-13 22:39:21 +02:00
|
|
|
border-width: 0 0 1px;
|
2013-08-13 06:23:28 +02:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
|
|
|
|
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-08-13 22:39:21 +02:00
|
|
|
border-width: 0 0 1px;
|
2013-08-13 06:23:28 +02:00
|
|
|
|
|
|
|
// Undo the rounded corners
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-radius: 0;
|
2013-08-16 09:54:12 +02:00
|
|
|
|
|
|
|
.navbar-header {
|
|
|
|
margin-left: -@navbar-padding-horizontal;
|
|
|
|
}
|
2013-08-13 06:23:28 +02:00
|
|
|
}
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
2013-05-04 22:11:20 +02:00
|
|
|
.navbar-fixed-top {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
bottom: 0;
|
|
|
|
margin-bottom: 0; // override .navbar defaults
|
|
|
|
}
|
2013-01-17 20:34:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
// Brand/project name
|
2013-08-13 06:23:28 +02:00
|
|
|
|
2013-02-18 10:28:35 +01:00
|
|
|
.navbar-brand {
|
2013-08-12 04:06:26 +02:00
|
|
|
float: left;
|
|
|
|
padding-top: @navbar-padding-vertical;
|
|
|
|
padding-bottom: @navbar-padding-vertical;
|
2013-04-24 00:41:06 +02:00
|
|
|
font-size: @font-size-large;
|
2013-05-10 02:20:46 +02:00
|
|
|
line-height: @line-height-computed;
|
2013-01-17 00:35:41 +01:00
|
|
|
color: @navbar-brand-color;
|
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-08-13 06:23:28 +02:00
|
|
|
|
|
|
|
// Navbar toggle
|
|
|
|
//
|
|
|
|
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
|
|
|
// JavaScript plugin.
|
|
|
|
|
2013-02-18 10:28:35 +01:00
|
|
|
.navbar-toggle {
|
2013-08-03 16:28:17 +02:00
|
|
|
position: relative;
|
|
|
|
float: right;
|
2013-08-12 04:06:26 +02:00
|
|
|
padding: 9px 10px;
|
2013-08-03 16:28:17 +02:00
|
|
|
.navbar-vertical-align(34px);
|
2013-02-18 10:28:35 +01:00
|
|
|
background-color: transparent;
|
2013-07-25 08:58:25 +02:00
|
|
|
border: 1px solid @navbar-toggle-border-color;
|
|
|
|
border-radius: @border-radius-base;
|
2013-01-16 02:55:14 +01:00
|
|
|
|
2013-02-18 10:28:35 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-07-25 08:58:25 +02:00
|
|
|
background-color: @navbar-toggle-hover-bg;
|
2013-02-18 10:28:35 +01:00
|
|
|
}
|
|
|
|
|
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-07-25 08:58:25 +02:00
|
|
|
background-color: @navbar-toggle-icon-bar-bg;
|
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-08-15 06:32:23 +02:00
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
position: relative;
|
|
|
|
top: auto;
|
|
|
|
left: auto;
|
|
|
|
display: none;
|
|
|
|
}
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
|
2013-08-13 06:23:28 +02:00
|
|
|
|
|
|
|
// Navbar nav links
|
|
|
|
//
|
|
|
|
// Builds on top of the `.nav` components with it's own modifier class to make
|
|
|
|
// the nav the full height of the horizontal nav (above 768px).
|
|
|
|
|
|
|
|
.navbar-nav {
|
2013-08-15 09:07:23 +02:00
|
|
|
padding-top: (@navbar-padding-vertical / 2);
|
|
|
|
padding-bottom: (@navbar-padding-vertical / 2);
|
2013-08-13 22:39:21 +02:00
|
|
|
margin-left: -@navbar-padding-horizontal;
|
|
|
|
margin-right: -@navbar-padding-horizontal;
|
|
|
|
|
2013-08-13 06:23:28 +02:00
|
|
|
> li > a {
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
color: @navbar-link-color;
|
|
|
|
line-height: @line-height-computed;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-link-hover-color;
|
|
|
|
background-color: @navbar-link-hover-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
> .active > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-link-active-color;
|
|
|
|
background-color: @navbar-link-active-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
> .disabled > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-link-disabled-color;
|
|
|
|
background-color: @navbar-link-disabled-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: @screen-phone-max) {
|
2013-08-15 06:32:23 +02:00
|
|
|
// Dropdowns get custom display when collapsed
|
2013-08-13 06:23:28 +02:00
|
|
|
.open .dropdown-menu {
|
|
|
|
position: static;
|
|
|
|
float: none;
|
|
|
|
width: auto;
|
|
|
|
margin-top: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
> li > a,
|
|
|
|
.dropdown-header {
|
|
|
|
padding: 5px 15px 5px 25px;
|
|
|
|
}
|
|
|
|
> li > a {
|
|
|
|
color: @navbar-link-color;
|
|
|
|
line-height: @line-height-computed;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-link-hover-color;
|
|
|
|
background-color: @navbar-link-hover-bg;
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
> .active > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-link-active-color;
|
|
|
|
background-color: @navbar-link-active-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
> .disabled > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-link-disabled-color;
|
|
|
|
background-color: @navbar-link-disabled-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-15 06:32:23 +02:00
|
|
|
// Uncollapse the nav
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
float: left;
|
|
|
|
margin: 0;
|
2013-08-15 09:07:23 +02:00
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
2013-08-15 06:32:23 +02:00
|
|
|
|
|
|
|
> li {
|
|
|
|
float: left;
|
|
|
|
> a {
|
|
|
|
padding-top: ((@navbar-height - @line-height-computed) / 2);
|
|
|
|
padding-bottom: ((@navbar-height - @line-height-computed) / 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-13 06:23:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-08-14 00:19:59 +02:00
|
|
|
// Component alignment
|
|
|
|
//
|
|
|
|
// Repurpose the pull utilities as their own navbar utilities to avoid specifity
|
|
|
|
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
|
|
|
// though so that navbar contents properly stack and align in mobile.
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
.navbar-left { .pull-left(); }
|
2013-08-14 04:30:02 +02:00
|
|
|
.navbar-right {
|
|
|
|
.pull-right();
|
2013-08-14 04:53:23 +02:00
|
|
|
.dropdown-menu {
|
|
|
|
.pull-right > .dropdown-menu();
|
|
|
|
}
|
2013-08-14 04:30:02 +02:00
|
|
|
}
|
2013-08-14 00:19:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
// Navbar form
|
2013-08-13 06:23:28 +02:00
|
|
|
//
|
|
|
|
// Extension of the `.form-inline` with some extra flavor for optimum display in
|
|
|
|
// our navbars.
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
.navbar-form {
|
2013-08-14 00:19:59 +02:00
|
|
|
margin-left: -@navbar-padding-horizontal;
|
|
|
|
margin-right: -@navbar-padding-horizontal;
|
2013-08-13 06:23:28 +02:00
|
|
|
padding: 10px @navbar-padding-horizontal;
|
|
|
|
border-top: 1px solid darken(@navbar-bg, 7%);
|
|
|
|
border-bottom: 1px solid darken(@navbar-bg, 7%);
|
2013-08-15 20:47:56 +02:00
|
|
|
@shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
|
|
|
|
.box-shadow(@shadow);
|
2013-08-13 06:23:28 +02:00
|
|
|
|
|
|
|
// Mixin behavior for optimum display
|
2013-05-10 01:41:35 +02:00
|
|
|
.form-inline();
|
2013-08-13 06:23:28 +02:00
|
|
|
|
|
|
|
.form-group {
|
|
|
|
@media (max-width: @screen-phone-max) {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Vertically center in expanded, horizontal navbar
|
|
|
|
.navbar-vertical-align(@input-height-base);
|
|
|
|
|
|
|
|
// Undo 100% width for pull classes
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
width: auto;
|
|
|
|
border: 0;
|
2013-08-14 00:19:59 +02:00
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
2013-08-13 06:23:28 +02:00
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
2013-08-15 20:47:56 +02:00
|
|
|
.box-shadow(none);
|
2013-08-13 06:23:28 +02:00
|
|
|
}
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
2013-01-17 20:20:19 +01:00
|
|
|
|
2013-08-13 06:23:28 +02: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;
|
2013-08-09 09:44:10 +02:00
|
|
|
.border-top-radius(0);
|
2013-01-17 20:55:37 +01:00
|
|
|
}
|
|
|
|
// 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-08-09 09:44:10 +02:00
|
|
|
.border-bottom-radius(0);
|
2013-01-17 20:55:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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-05-13 01:30:54 +02:00
|
|
|
> .dropdown > a:hover .caret,
|
|
|
|
> .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
|
2013-07-07 23:40:18 +02:00
|
|
|
> .open > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: @navbar-link-active-bg;
|
|
|
|
color: @navbar-link-active-color;
|
|
|
|
.caret {
|
|
|
|
border-top-color: @navbar-link-active-color;
|
|
|
|
border-bottom-color: @navbar-link-active-color;
|
|
|
|
}
|
|
|
|
}
|
2013-01-17 20:55:37 +01:00
|
|
|
}
|
2013-05-13 01:30:54 +02:00
|
|
|
> .dropdown > a .caret {
|
2013-01-17 20:55:37 +01:00
|
|
|
border-top-color: @navbar-link-color;
|
|
|
|
border-bottom-color: @navbar-link-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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-08-15 06:32:23 +02:00
|
|
|
// Buttons in navbars
|
|
|
|
//
|
|
|
|
// Vertically center a button within a navbar (when *not* in a form).
|
|
|
|
|
|
|
|
.navbar-btn {
|
2013-08-15 08:02:58 +02:00
|
|
|
.navbar-vertical-align(@input-height-base);
|
2013-08-15 06:32:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Text in navbars
|
|
|
|
//
|
|
|
|
// Add a class to make any element properly align itself vertically within the navbars.
|
|
|
|
|
|
|
|
.navbar-text {
|
|
|
|
float: left;
|
|
|
|
color: @navbar-color;
|
|
|
|
.navbar-vertical-align(@line-height-computed);
|
2013-08-15 22:54:47 +02:00
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
margin-left: @navbar-padding-horizontal;
|
|
|
|
margin-right: @navbar-padding-horizontal;
|
|
|
|
}
|
2013-08-15 06:32:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Links in navbars
|
|
|
|
//
|
|
|
|
// Add a class to ensure links outside the navbar nav are colored correctly.
|
|
|
|
|
|
|
|
// Default navbar variables
|
|
|
|
.navbar-link {
|
|
|
|
color: @navbar-link-color;
|
|
|
|
&:hover {
|
|
|
|
color: @navbar-link-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-08-13 22:39:21 +02:00
|
|
|
border-color: @navbar-inverse-border;
|
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 {
|
2013-05-04 00:29:32 +02:00
|
|
|
color: @navbar-inverse-color;
|
2013-01-17 08:33:26 +01:00
|
|
|
}
|
|
|
|
|
2013-04-28 03:28:39 +02:00
|
|
|
.navbar-nav {
|
|
|
|
> li > a {
|
|
|
|
color: @navbar-inverse-link-color;
|
2013-07-07 23:40:18 +02:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-inverse-link-hover-color;
|
|
|
|
background-color: @navbar-inverse-link-hover-bg;
|
|
|
|
}
|
2013-04-28 03:28:39 +02:00
|
|
|
}
|
2013-07-07 23:40:18 +02:00
|
|
|
> .active > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-inverse-link-active-color;
|
|
|
|
background-color: @navbar-inverse-link-active-bg;
|
|
|
|
}
|
2013-04-28 03:28:39 +02:00
|
|
|
}
|
2013-07-07 23:40:18 +02:00
|
|
|
> .disabled > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-inverse-link-disabled-color;
|
|
|
|
background-color: @navbar-inverse-link-disabled-bg;
|
|
|
|
}
|
2013-04-28 03:28:39 +02:00
|
|
|
}
|
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 {
|
2013-07-25 08:58:25 +02:00
|
|
|
border-color: @navbar-inverse-toggle-border-color;
|
2013-02-18 10:28:35 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-07-25 08:58:25 +02:00
|
|
|
background-color: @navbar-inverse-toggle-hover-bg;
|
2013-02-18 10:28:35 +01:00
|
|
|
}
|
2013-03-01 09:18:10 +01:00
|
|
|
.icon-bar {
|
2013-07-25 08:58:25 +02:00
|
|
|
background-color: @navbar-inverse-toggle-icon-bar-bg;
|
2013-03-01 09:18:10 +01:00
|
|
|
}
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
|
2013-08-15 20:47:56 +02:00
|
|
|
.navbar-collapse,
|
|
|
|
.navbar-form {
|
|
|
|
border-color: darken(@navbar-inverse-bg, 7%);
|
2013-08-13 06:23:28 +02:00
|
|
|
}
|
|
|
|
|
2013-01-17 20:55:37 +01:00
|
|
|
// Dropdowns
|
2013-04-28 03:28:39 +02:00
|
|
|
.navbar-nav {
|
2013-07-07 23:40:18 +02:00
|
|
|
> .open > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: @navbar-inverse-link-active-bg;
|
|
|
|
color: @navbar-inverse-link-active-color;
|
|
|
|
}
|
2013-04-28 03:28:39 +02:00
|
|
|
}
|
2013-05-13 01:30:54 +02:00
|
|
|
> .dropdown > a:hover .caret {
|
2013-04-28 03:28:39 +02:00
|
|
|
border-top-color: @navbar-inverse-link-hover-color;
|
|
|
|
border-bottom-color: @navbar-inverse-link-hover-color;
|
|
|
|
}
|
2013-05-13 01:30:54 +02:00
|
|
|
> .dropdown > a .caret {
|
2013-04-28 03:28:39 +02:00
|
|
|
border-top-color: @navbar-inverse-link-color;
|
|
|
|
border-bottom-color: @navbar-inverse-link-color;
|
|
|
|
}
|
2013-07-07 23:40:18 +02:00
|
|
|
> .open > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
.caret {
|
|
|
|
border-top-color: @navbar-inverse-link-active-color;
|
|
|
|
border-bottom-color: @navbar-inverse-link-active-color;
|
|
|
|
}
|
|
|
|
}
|
2013-04-28 03:28:39 +02:00
|
|
|
}
|
2013-08-13 06:43:59 +02:00
|
|
|
|
|
|
|
@media (max-width: @screen-phone-max) {
|
|
|
|
// Dropdowns get custom display
|
|
|
|
.open .dropdown-menu {
|
2013-08-14 00:19:59 +02:00
|
|
|
> .dropdown-header {
|
|
|
|
border-color: @navbar-inverse-border;
|
|
|
|
}
|
2013-08-13 06:43:59 +02:00
|
|
|
> li > a {
|
|
|
|
color: @navbar-inverse-link-color;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-inverse-link-hover-color;
|
|
|
|
background-color: @navbar-inverse-link-hover-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
> .active > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-inverse-link-active-color;
|
|
|
|
background-color: @navbar-inverse-link-active-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
> .disabled > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-inverse-link-disabled-color;
|
|
|
|
background-color: @navbar-inverse-link-disabled-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-01-17 20:55:37 +01:00
|
|
|
}
|
2013-08-13 06:43:59 +02:00
|
|
|
|
2013-08-15 06:32:23 +02:00
|
|
|
.navbar-link {
|
|
|
|
color: @navbar-inverse-link-color;
|
|
|
|
&:hover {
|
|
|
|
color: @navbar-inverse-link-hover-color;
|
2013-04-28 03:28:39 +02:00
|
|
|
}
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
2012-08-27 19:32:07 +02:00
|
|
|
|
2013-05-03 08:13:43 +02:00
|
|
|
}
|