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-08-13 00:23:28 -04:00
|
|
|
|
2013-01-15 20:55:14 -05:00
|
|
|
// Wrapper and base class
|
2013-08-13 00:23:28 -04:00
|
|
|
//
|
|
|
|
// Provide a static navbar from which we expand to create full-width, fixed, and
|
|
|
|
// other navbar variations.
|
|
|
|
|
2013-01-15 20:55:14 -05:00
|
|
|
.navbar {
|
2013-02-18 04:28:35 -05:00
|
|
|
position: relative;
|
2013-07-18 04:25:08 -04:00
|
|
|
min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
|
2013-08-11 21:32:52 -04:00
|
|
|
margin-bottom: @navbar-margin-bottom;
|
2013-08-18 17:05:56 -04:00
|
|
|
border: 1px solid transparent;
|
2013-04-30 22:07:28 -04:00
|
|
|
|
2013-01-16 19:14:41 -05:00
|
|
|
// Prevent floats from breaking the navbar
|
Switch to `&:extend(.clearfix all)` for clearfix mixin
Original discussion:
https://github.com/less/less.js/issues/1437#issuecomment-21383639.
Since we’re switching to `grunt-contrib-less`, we can take advantage of
newer LESS features than what RECESS supported. Included in that is the
ability to `:extend`, and not only that, but `:extend(.mixin-name
all)`. By doing so, we remove duplicate CSS for all our elements that
were being clearfix-ed.
Fixes #8947, #8968, #8991, #9257, #9268, #9291, #9430, #9604, #9686,
#9929, #10731, #10793, #11305, #11498, #11533, #11570, #11604, #11652.
(dem issues, tho)
2013-12-09 02:18:28 -05:00
|
|
|
&:extend(.clearfix all);
|
2013-08-13 00:23:28 -04:00
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-radius: @navbar-border-radius;
|
|
|
|
}
|
2013-01-15 20:55:14 -05:00
|
|
|
}
|
|
|
|
|
2013-01-16 19:14:41 -05:00
|
|
|
|
2013-08-13 00:23:28 -04:00
|
|
|
// Navbar heading
|
|
|
|
//
|
|
|
|
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
|
|
|
// styling of responsive aspects.
|
2013-06-20 20:15:09 -04:00
|
|
|
|
2013-08-13 00:23:28 -04:00
|
|
|
.navbar-header {
|
Switch to `&:extend(.clearfix all)` for clearfix mixin
Original discussion:
https://github.com/less/less.js/issues/1437#issuecomment-21383639.
Since we’re switching to `grunt-contrib-less`, we can take advantage of
newer LESS features than what RECESS supported. Included in that is the
ability to `:extend`, and not only that, but `:extend(.mixin-name
all)`. By doing so, we remove duplicate CSS for all our elements that
were being clearfix-ed.
Fixes #8947, #8968, #8991, #9257, #9268, #9291, #9430, #9604, #9686,
#9929, #10731, #10793, #11305, #11498, #11533, #11570, #11604, #11652.
(dem issues, tho)
2013-12-09 02:18:28 -05:00
|
|
|
&:extend(.clearfix all);
|
2013-08-13 00:23:28 -04:00
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
float: left;
|
2013-06-20 20:15:09 -04:00
|
|
|
}
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-08-13 00:23:28 -04: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-16 18:07:45 -04:00
|
|
|
overflow-x: visible;
|
2013-08-15 03:07:23 -04:00
|
|
|
padding-right: @navbar-padding-horizontal;
|
|
|
|
padding-left: @navbar-padding-horizontal;
|
2013-08-18 17:05:56 -04:00
|
|
|
border-top: 1px solid transparent;
|
2013-08-13 00:23:28 -04:00
|
|
|
box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
|
Switch to `&:extend(.clearfix all)` for clearfix mixin
Original discussion:
https://github.com/less/less.js/issues/1437#issuecomment-21383639.
Since we’re switching to `grunt-contrib-less`, we can take advantage of
newer LESS features than what RECESS supported. Included in that is the
ability to `:extend`, and not only that, but `:extend(.mixin-name
all)`. By doing so, we remove duplicate CSS for all our elements that
were being clearfix-ed.
Fixes #8947, #8968, #8991, #9257, #9268, #9291, #9430, #9604, #9686,
#9929, #10731, #10793, #11305, #11498, #11533, #11570, #11604, #11652.
(dem issues, tho)
2013-12-09 02:18:28 -05:00
|
|
|
&:extend(.clearfix all);
|
2013-08-13 00:23:28 -04:00
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
2013-08-16 18:07:45 -04:00
|
|
|
&.in {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
2013-08-13 00:23:28 -04:00
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
width: auto;
|
|
|
|
border-top: 0;
|
2013-08-13 17:46:34 -04:00
|
|
|
box-shadow: none;
|
2013-08-15 00:32:23 -04:00
|
|
|
|
|
|
|
&.collapse {
|
|
|
|
display: block !important;
|
2014-09-23 16:29:19 -04:00
|
|
|
visibility: visible !important;
|
2013-08-15 00:32:23 -04:00
|
|
|
height: auto !important;
|
|
|
|
padding-bottom: 0; // Override default setting
|
|
|
|
overflow: visible !important;
|
|
|
|
}
|
2013-08-15 16:29:45 -04:00
|
|
|
|
|
|
|
&.in {
|
2013-11-16 06:03:50 -05:00
|
|
|
overflow-y: visible;
|
2013-08-15 16:29:45 -04:00
|
|
|
}
|
2013-08-18 14:17:28 -04:00
|
|
|
|
2013-12-01 22:27:33 -05:00
|
|
|
// Undo the collapse side padding for navbars with containers to ensure
|
|
|
|
// alignment of right-aligned contents.
|
|
|
|
.navbar-fixed-top &,
|
|
|
|
.navbar-static-top &,
|
|
|
|
.navbar-fixed-bottom & {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
2013-08-19 03:34:31 -04:00
|
|
|
}
|
2013-08-13 00:23:28 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-09 23:45:32 -04:00
|
|
|
.navbar-fixed-top,
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
.navbar-collapse {
|
|
|
|
max-height: @navbar-collapse-max-height;
|
|
|
|
|
2014-07-03 03:55:32 -04:00
|
|
|
@media (max-device-width: @screen-xs-min) and (orientation: landscape) {
|
2014-03-09 23:45:32 -04:00
|
|
|
max-height: 200px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-17 14:34:46 -05:00
|
|
|
|
2013-08-18 00:00:13 -04:00
|
|
|
// Both navbar header and collapse
|
|
|
|
//
|
|
|
|
// When a container is present, change the behavior of the header and collapse.
|
|
|
|
|
2013-12-07 23:52:51 -05:00
|
|
|
.container,
|
|
|
|
.container-fluid {
|
|
|
|
> .navbar-header,
|
|
|
|
> .navbar-collapse {
|
|
|
|
margin-right: -@navbar-padding-horizontal;
|
|
|
|
margin-left: -@navbar-padding-horizontal;
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2013-08-18 00:00:13 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-01-17 14:34:46 -05:00
|
|
|
//
|
|
|
|
// Navbar alignment options
|
2013-08-13 00:23:28 -04:00
|
|
|
//
|
2013-10-24 22:48:42 -04:00
|
|
|
// Display the navbar across the entirety of the page or fixed it to the top or
|
2013-08-13 00:23:28 -04:00
|
|
|
// bottom of the page.
|
2013-01-17 14:34:46 -05:00
|
|
|
|
2013-08-13 00:23:28 -04:00
|
|
|
// Static top (unfixed, but 100% wide) navbar
|
2013-01-17 14:34:46 -05:00
|
|
|
.navbar-static-top {
|
2013-10-21 00:12:09 -04:00
|
|
|
z-index: @zindex-navbar;
|
2013-08-16 14:34:30 -04:00
|
|
|
border-width: 0 0 1px;
|
2013-10-21 00:12:09 -04:00
|
|
|
|
2013-08-13 00:23:28 -04:00
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
|
|
|
|
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;
|
2013-10-20 23:30:16 -04:00
|
|
|
z-index: @zindex-navbar-fixed;
|
2013-08-13 00:23:28 -04:00
|
|
|
|
|
|
|
// Undo the rounded corners
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
2013-05-04 16:11:20 -04:00
|
|
|
.navbar-fixed-top {
|
|
|
|
top: 0;
|
2013-10-16 10:20:34 -04:00
|
|
|
border-width: 0 0 1px;
|
2013-05-04 16:11:20 -04:00
|
|
|
}
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
bottom: 0;
|
|
|
|
margin-bottom: 0; // override .navbar defaults
|
2013-10-16 10:20:34 -04:00
|
|
|
border-width: 1px 0 0;
|
2013-05-04 16:11:20 -04:00
|
|
|
}
|
2013-01-17 14:34:46 -05:00
|
|
|
|
|
|
|
|
|
|
|
// Brand/project name
|
2013-08-13 00:23:28 -04:00
|
|
|
|
2013-02-18 04:28:35 -05:00
|
|
|
.navbar-brand {
|
2013-08-11 22:06:26 -04:00
|
|
|
float: left;
|
2013-08-18 00:00:13 -04:00
|
|
|
padding: @navbar-padding-vertical @navbar-padding-horizontal;
|
2013-04-23 18:41:06 -04:00
|
|
|
font-size: @font-size-large;
|
2013-05-09 20:20:46 -04:00
|
|
|
line-height: @line-height-computed;
|
2014-01-30 16:59:54 -05:00
|
|
|
height: @navbar-height;
|
2013-10-20 23:30:16 -04:00
|
|
|
|
2013-02-05 22:53:44 -05:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-01-15 20:55:14 -05:00
|
|
|
text-decoration: none;
|
2013-12-14 02:06:04 -05:00
|
|
|
}
|
|
|
|
|
2014-07-06 21:39:37 -04:00
|
|
|
> img {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2013-08-18 00:00:13 -04:00
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
2013-12-07 23:52:51 -05:00
|
|
|
.navbar > .container &,
|
|
|
|
.navbar > .container-fluid & {
|
2013-08-18 00:00:13 -04:00
|
|
|
margin-left: -@navbar-padding-horizontal;
|
|
|
|
}
|
|
|
|
}
|
2013-01-15 20:55:14 -05:00
|
|
|
}
|
|
|
|
|
2013-08-13 00:23:28 -04:00
|
|
|
|
|
|
|
// Navbar toggle
|
|
|
|
//
|
|
|
|
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
|
|
|
// JavaScript plugin.
|
|
|
|
|
2013-02-18 04:28:35 -05:00
|
|
|
.navbar-toggle {
|
2013-08-03 10:28:17 -04:00
|
|
|
position: relative;
|
|
|
|
float: right;
|
2013-08-18 00:00:13 -04:00
|
|
|
margin-right: @navbar-padding-horizontal;
|
2013-08-11 22:06:26 -04:00
|
|
|
padding: 9px 10px;
|
2013-08-03 10:28:17 -04:00
|
|
|
.navbar-vertical-align(34px);
|
2013-02-18 04:28:35 -05:00
|
|
|
background-color: transparent;
|
2013-12-03 14:14:13 -05:00
|
|
|
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
2013-08-18 17:05:56 -04:00
|
|
|
border: 1px solid transparent;
|
2013-07-25 02:58:25 -04:00
|
|
|
border-radius: @border-radius-base;
|
2013-01-15 20:55:14 -05:00
|
|
|
|
2013-12-31 21:21:41 -05:00
|
|
|
// We remove the `outline` here, but later compensate by attaching `:hover`
|
|
|
|
// styles to `:focus`.
|
|
|
|
&:focus {
|
2014-03-10 02:55:29 -04:00
|
|
|
outline: 0;
|
2013-12-31 21:21:41 -05:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
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-08-15 00:32:23 -04:00
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
display: none;
|
|
|
|
}
|
2013-01-15 20:55:14 -05:00
|
|
|
}
|
|
|
|
|
2013-08-13 00:23:28 -04:00
|
|
|
|
|
|
|
// Navbar nav links
|
|
|
|
//
|
2013-12-15 21:13:50 -05:00
|
|
|
// Builds on top of the `.nav` components with its own modifier class to make
|
2013-08-13 00:23:28 -04:00
|
|
|
// the nav the full height of the horizontal nav (above 768px).
|
|
|
|
|
2013-12-18 17:28:03 -05:00
|
|
|
.navbar-nav {
|
2013-08-16 15:38:41 -04:00
|
|
|
margin: (@navbar-padding-vertical / 2) -@navbar-padding-horizontal;
|
2013-08-13 16:39:21 -04:00
|
|
|
|
2013-08-13 00:23:28 -04:00
|
|
|
> li > a {
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
line-height: @line-height-computed;
|
|
|
|
}
|
|
|
|
|
2013-12-05 01:32:56 -05:00
|
|
|
@media (max-width: @grid-float-breakpoint-max) {
|
2013-08-15 00:32:23 -04:00
|
|
|
// Dropdowns get custom display when collapsed
|
2013-08-13 00:23:28 -04: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 {
|
|
|
|
line-height: @line-height-computed;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-15 00:32:23 -04:00
|
|
|
// Uncollapse the nav
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
float: left;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
float: left;
|
|
|
|
> a {
|
2013-11-30 19:08:49 -05:00
|
|
|
padding-top: @navbar-padding-vertical;
|
|
|
|
padding-bottom: @navbar-padding-vertical;
|
2013-08-15 00:32:23 -04:00
|
|
|
}
|
|
|
|
}
|
2013-12-01 22:27:33 -05:00
|
|
|
}
|
2013-08-13 00:23:28 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-01-17 14:34:46 -05:00
|
|
|
// Navbar form
|
2013-08-13 00:23:28 -04:00
|
|
|
//
|
|
|
|
// Extension of the `.form-inline` with some extra flavor for optimum display in
|
|
|
|
// our navbars.
|
|
|
|
|
2013-01-17 14:34:46 -05:00
|
|
|
.navbar-form {
|
2013-08-13 18:19:59 -04:00
|
|
|
margin-left: -@navbar-padding-horizontal;
|
|
|
|
margin-right: -@navbar-padding-horizontal;
|
2013-08-13 00:23:28 -04:00
|
|
|
padding: 10px @navbar-padding-horizontal;
|
2013-08-18 17:05:56 -04:00
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-bottom: 1px solid transparent;
|
2013-08-15 14:47:56 -04: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 00:23:28 -04:00
|
|
|
|
|
|
|
// Mixin behavior for optimum display
|
2013-05-09 19:41:35 -04:00
|
|
|
.form-inline();
|
2013-08-13 00:23:28 -04:00
|
|
|
|
|
|
|
.form-group {
|
2013-12-05 01:32:56 -05:00
|
|
|
@media (max-width: @grid-float-breakpoint-max) {
|
2013-08-13 00:23:28 -04:00
|
|
|
margin-bottom: 5px;
|
2014-09-08 13:57:50 -04:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2013-08-13 00:23:28 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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-13 18:19:59 -04:00
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
2013-08-13 00:23:28 -04:00
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
2013-08-15 14:47:56 -04:00
|
|
|
.box-shadow(none);
|
2013-08-13 00:23:28 -04:00
|
|
|
}
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
2013-01-17 14:20:19 -05:00
|
|
|
|
2013-08-13 00:23:28 -04: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;
|
2013-08-09 03:44:10 -04:00
|
|
|
.border-top-radius(0);
|
2013-01-17 14:55:37 -05:00
|
|
|
}
|
|
|
|
// 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 {
|
2014-11-08 03:13:19 -05:00
|
|
|
.border-top-radius(@navbar-border-radius);
|
2013-08-09 03:44:10 -04:00
|
|
|
.border-bottom-radius(0);
|
2013-01-17 14:55:37 -05:00
|
|
|
}
|
|
|
|
|
2013-01-16 19:14:41 -05:00
|
|
|
|
2013-08-15 00:32:23 -04:00
|
|
|
// Buttons in navbars
|
|
|
|
//
|
|
|
|
// Vertically center a button within a navbar (when *not* in a form).
|
|
|
|
|
|
|
|
.navbar-btn {
|
2013-08-15 02:02:58 -04:00
|
|
|
.navbar-vertical-align(@input-height-base);
|
2013-12-01 21:13:27 -05:00
|
|
|
|
|
|
|
&.btn-sm {
|
|
|
|
.navbar-vertical-align(@input-height-small);
|
|
|
|
}
|
|
|
|
&.btn-xs {
|
|
|
|
.navbar-vertical-align(22);
|
|
|
|
}
|
2013-08-15 00:32:23 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Text in navbars
|
|
|
|
//
|
|
|
|
// Add a class to make any element properly align itself vertically within the navbars.
|
|
|
|
|
|
|
|
.navbar-text {
|
|
|
|
.navbar-vertical-align(@line-height-computed);
|
2013-08-15 16:54:47 -04:00
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
2013-11-17 17:07:28 -05:00
|
|
|
float: left;
|
2013-08-15 16:54:47 -04:00
|
|
|
margin-left: @navbar-padding-horizontal;
|
|
|
|
margin-right: @navbar-padding-horizontal;
|
2014-07-07 01:56:52 -04:00
|
|
|
}
|
|
|
|
}
|
2013-12-01 22:27:33 -05:00
|
|
|
|
2014-07-07 01:56:52 -04:00
|
|
|
|
|
|
|
// Component alignment
|
|
|
|
//
|
|
|
|
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
|
|
|
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
|
|
|
// though so that navbar contents properly stack and align in mobile.
|
|
|
|
//
|
|
|
|
// Declared after the navbar components to ensure more specificity on the margins.
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
.navbar-left { .pull-left(); }
|
|
|
|
.navbar-right {
|
|
|
|
.pull-right();
|
|
|
|
margin-right: -@navbar-padding-horizontal;
|
|
|
|
|
|
|
|
~ .navbar-right {
|
2013-12-01 22:27:33 -05:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
2013-08-15 16:54:47 -04:00
|
|
|
}
|
2013-08-15 00:32:23 -04:00
|
|
|
}
|
|
|
|
|
2014-07-07 01:56:52 -04:00
|
|
|
|
2013-08-18 17:05:56 -04:00
|
|
|
// Alternate navbars
|
|
|
|
// --------------------------------------------------
|
2013-08-15 00:32:23 -04:00
|
|
|
|
2013-08-18 17:05:56 -04:00
|
|
|
// Default navbar
|
|
|
|
.navbar-default {
|
2013-08-18 17:30:40 -04:00
|
|
|
background-color: @navbar-default-bg;
|
|
|
|
border-color: @navbar-default-border;
|
2013-08-15 00:32:23 -04:00
|
|
|
|
2013-08-18 17:05:56 -04:00
|
|
|
.navbar-brand {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-brand-color;
|
2013-08-18 17:05:56 -04:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-brand-hover-color;
|
|
|
|
background-color: @navbar-default-brand-hover-bg;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
2013-08-15 00:32:23 -04:00
|
|
|
}
|
|
|
|
|
2013-08-18 17:05:56 -04:00
|
|
|
.navbar-text {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-color;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-nav {
|
|
|
|
> li > a {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-link-color;
|
2013-08-18 17:05:56 -04:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-link-hover-color;
|
|
|
|
background-color: @navbar-default-link-hover-bg;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
> .active > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-link-active-color;
|
|
|
|
background-color: @navbar-default-link-active-bg;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
> .disabled > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-link-disabled-color;
|
|
|
|
background-color: @navbar-default-link-disabled-bg;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-toggle {
|
2013-08-18 17:30:40 -04:00
|
|
|
border-color: @navbar-default-toggle-border-color;
|
2013-08-18 17:05:56 -04:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 17:30:40 -04:00
|
|
|
background-color: @navbar-default-toggle-hover-bg;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
.icon-bar {
|
2013-08-18 17:30:40 -04:00
|
|
|
background-color: @navbar-default-toggle-icon-bar-bg;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-collapse,
|
|
|
|
.navbar-form {
|
2013-09-16 13:36:39 -04:00
|
|
|
border-color: @navbar-default-border;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
|
2013-11-28 11:41:43 -05:00
|
|
|
// Dropdown menu items
|
2013-08-18 17:05:56 -04:00
|
|
|
.navbar-nav {
|
|
|
|
// Remove background color from open dropdown
|
|
|
|
> .open > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 17:30:40 -04:00
|
|
|
background-color: @navbar-default-link-active-bg;
|
|
|
|
color: @navbar-default-link-active-color;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-05 01:32:56 -05:00
|
|
|
@media (max-width: @grid-float-breakpoint-max) {
|
2013-08-18 17:05:56 -04:00
|
|
|
// Dropdowns get custom display when collapsed
|
|
|
|
.open .dropdown-menu {
|
|
|
|
> li > a {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-link-color;
|
2013-08-18 17:05:56 -04:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-link-hover-color;
|
|
|
|
background-color: @navbar-default-link-hover-bg;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
> .active > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-link-active-color;
|
|
|
|
background-color: @navbar-default-link-active-bg;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
> .disabled > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-link-disabled-color;
|
|
|
|
background-color: @navbar-default-link-disabled-bg;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Links in navbars
|
|
|
|
//
|
|
|
|
// Add a class to ensure links outside the navbar nav are colored correctly.
|
|
|
|
|
|
|
|
.navbar-link {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-link-color;
|
2013-08-18 17:05:56 -04:00
|
|
|
&:hover {
|
2013-08-18 17:30:40 -04:00
|
|
|
color: @navbar-default-link-hover-color;
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-21 23:50:27 -05:00
|
|
|
.btn-link {
|
|
|
|
color: @navbar-default-link-color;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-default-link-hover-color;
|
|
|
|
}
|
|
|
|
&[disabled],
|
|
|
|
fieldset[disabled] & {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-default-link-disabled-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-08-18 17:05:56 -04:00
|
|
|
}
|
2013-01-15 20:55:14 -05:00
|
|
|
|
|
|
|
// Inverse navbar
|
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-08-13 16:39:21 -04:00
|
|
|
border-color: @navbar-inverse-border;
|
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;
|
2013-07-07 17:40:18 -04:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-inverse-link-hover-color;
|
|
|
|
background-color: @navbar-inverse-link-hover-bg;
|
|
|
|
}
|
2013-04-27 21:28:39 -04:00
|
|
|
}
|
2013-07-07 17:40:18 -04:00
|
|
|
> .active > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-inverse-link-active-color;
|
|
|
|
background-color: @navbar-inverse-link-active-bg;
|
|
|
|
}
|
2013-04-27 21:28:39 -04:00
|
|
|
}
|
2013-07-07 17:40:18 -04:00
|
|
|
> .disabled > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-inverse-link-disabled-color;
|
|
|
|
background-color: @navbar-inverse-link-disabled-bg;
|
|
|
|
}
|
2013-04-27 21:28:39 -04:00
|
|
|
}
|
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 {
|
2013-07-25 02:58:25 -04:00
|
|
|
border-color: @navbar-inverse-toggle-border-color;
|
2013-02-18 04:28:35 -05:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-07-25 02:58:25 -04:00
|
|
|
background-color: @navbar-inverse-toggle-hover-bg;
|
2013-02-18 04:28:35 -05:00
|
|
|
}
|
2013-03-01 03:18:10 -05:00
|
|
|
.icon-bar {
|
2013-07-25 02:58:25 -04:00
|
|
|
background-color: @navbar-inverse-toggle-icon-bar-bg;
|
2013-03-01 03:18:10 -05:00
|
|
|
}
|
2013-01-15 20:55:14 -05:00
|
|
|
}
|
|
|
|
|
2013-08-15 14:47:56 -04:00
|
|
|
.navbar-collapse,
|
|
|
|
.navbar-form {
|
|
|
|
border-color: darken(@navbar-inverse-bg, 7%);
|
2013-08-13 00:23:28 -04:00
|
|
|
}
|
|
|
|
|
2013-01-17 14:55:37 -05:00
|
|
|
// Dropdowns
|
2013-04-27 21:28:39 -04:00
|
|
|
.navbar-nav {
|
2013-07-07 17:40:18 -04:00
|
|
|
> .open > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: @navbar-inverse-link-active-bg;
|
|
|
|
color: @navbar-inverse-link-active-color;
|
|
|
|
}
|
2013-04-27 21:28:39 -04:00
|
|
|
}
|
2013-08-13 00:43:59 -04:00
|
|
|
|
2013-12-05 01:32:56 -05:00
|
|
|
@media (max-width: @grid-float-breakpoint-max) {
|
2013-08-13 00:43:59 -04:00
|
|
|
// Dropdowns get custom display
|
|
|
|
.open .dropdown-menu {
|
2013-08-13 18:19:59 -04:00
|
|
|
> .dropdown-header {
|
|
|
|
border-color: @navbar-inverse-border;
|
|
|
|
}
|
2013-11-28 15:39:39 -05:00
|
|
|
.divider {
|
|
|
|
background-color: @navbar-inverse-border;
|
|
|
|
}
|
2013-08-13 00:43:59 -04: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 14:55:37 -05:00
|
|
|
}
|
2013-08-13 00:43:59 -04:00
|
|
|
|
2013-08-15 00:32:23 -04:00
|
|
|
.navbar-link {
|
|
|
|
color: @navbar-inverse-link-color;
|
|
|
|
&:hover {
|
|
|
|
color: @navbar-inverse-link-hover-color;
|
2013-04-27 21:28:39 -04:00
|
|
|
}
|
2013-01-17 14:34:46 -05:00
|
|
|
}
|
2012-08-27 13:32:07 -04:00
|
|
|
|
2014-02-21 23:50:27 -05:00
|
|
|
.btn-link {
|
|
|
|
color: @navbar-inverse-link-color;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-inverse-link-hover-color;
|
|
|
|
}
|
|
|
|
&[disabled],
|
|
|
|
fieldset[disabled] & {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-inverse-link-disabled-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-05-03 02:13:43 -04:00
|
|
|
}
|