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-08-18 23:05:56 +02:00
|
|
|
border: 1px solid transparent;
|
2013-05-01 04:07:28 +02:00
|
|
|
|
2013-01-17 01:14:41 +01: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 08:18:28 +01:00
|
|
|
&:extend(.clearfix all);
|
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 {
|
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 08:18:28 +01:00
|
|
|
&:extend(.clearfix all);
|
2013-08-13 06:23:28 +02:00
|
|
|
|
|
|
|
@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-17 00:07:45 +02:00
|
|
|
max-height: 340px;
|
|
|
|
overflow-x: visible;
|
2013-08-15 09:07:23 +02:00
|
|
|
padding-right: @navbar-padding-horizontal;
|
|
|
|
padding-left: @navbar-padding-horizontal;
|
2013-08-18 23:05:56 +02:00
|
|
|
border-top: 1px solid transparent;
|
2013-08-13 06:23:28 +02: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 08:18:28 +01:00
|
|
|
&:extend(.clearfix all);
|
2013-08-13 06:23:28 +02:00
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
2013-08-17 00:07:45 +02:00
|
|
|
&.in {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
2013-08-13 06:23:28 +02:00
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
width: auto;
|
|
|
|
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 {
|
2013-11-16 12:03:50 +01:00
|
|
|
overflow-y: visible;
|
2013-08-15 22:29:45 +02:00
|
|
|
}
|
2013-08-18 20:17:28 +02:00
|
|
|
|
2013-12-02 04:27:33 +01: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 09:34:31 +02:00
|
|
|
}
|
2013-08-13 06:23:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
|
2013-08-18 06:00:13 +02:00
|
|
|
// Both navbar header and collapse
|
|
|
|
//
|
|
|
|
// When a container is present, change the behavior of the header and collapse.
|
|
|
|
|
2013-12-08 05:52:51 +01: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 06:00:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-01-17 20:34:46 +01:00
|
|
|
//
|
|
|
|
// Navbar alignment options
|
2013-08-13 06:23:28 +02:00
|
|
|
//
|
2013-10-25 04:48:42 +02:00
|
|
|
// Display the navbar across the entirety of the page or fixed it to the top or
|
2013-08-13 06:23:28 +02:00
|
|
|
// 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-10-21 06:12:09 +02:00
|
|
|
z-index: @zindex-navbar;
|
2013-08-16 20:34:30 +02:00
|
|
|
border-width: 0 0 1px;
|
2013-10-21 06:12:09 +02:00
|
|
|
|
2013-08-13 06:23:28 +02:00
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
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;
|
2013-10-21 05:30:16 +02:00
|
|
|
z-index: @zindex-navbar-fixed;
|
2013-08-13 06:23:28 +02:00
|
|
|
|
|
|
|
// Undo the rounded corners
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2013-01-17 20:34:46 +01:00
|
|
|
}
|
2013-05-04 22:11:20 +02:00
|
|
|
.navbar-fixed-top {
|
|
|
|
top: 0;
|
2013-10-16 16:20:34 +02:00
|
|
|
border-width: 0 0 1px;
|
2013-05-04 22:11:20 +02:00
|
|
|
}
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
bottom: 0;
|
|
|
|
margin-bottom: 0; // override .navbar defaults
|
2013-10-16 16:20:34 +02:00
|
|
|
border-width: 1px 0 0;
|
2013-05-04 22:11:20 +02:00
|
|
|
}
|
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;
|
2013-08-18 06:00:13 +02:00
|
|
|
padding: @navbar-padding-vertical @navbar-padding-horizontal;
|
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-10-21 05:30:16 +02:00
|
|
|
|
2013-02-06 04:53:44 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-01-16 02:55:14 +01:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2013-08-18 06:00:13 +02:00
|
|
|
|
2013-12-14 08:06:04 +01:00
|
|
|
// Prevent Glyphicons from increasing height of navbar
|
|
|
|
> .glyphicon {
|
|
|
|
float: left;
|
|
|
|
margin-top: -2px;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
2013-08-18 06:00:13 +02:00
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
2013-12-08 05:52:51 +01:00
|
|
|
.navbar > .container &,
|
|
|
|
.navbar > .container-fluid & {
|
2013-08-18 06:00:13 +02:00
|
|
|
margin-left: -@navbar-padding-horizontal;
|
|
|
|
}
|
|
|
|
}
|
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-18 06:00:13 +02:00
|
|
|
margin-right: @navbar-padding-horizontal;
|
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-12-03 20:14:13 +01:00
|
|
|
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
2013-08-18 23:05:56 +02:00
|
|
|
border: 1px solid transparent;
|
2013-07-25 08:58:25 +02:00
|
|
|
border-radius: @border-radius-base;
|
2013-01-16 02:55:14 +01:00
|
|
|
|
2014-01-01 03:21:41 +01:00
|
|
|
// We remove the `outline` here, but later compensate by attaching `:hover`
|
|
|
|
// styles to `:focus`.
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
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) {
|
|
|
|
display: none;
|
|
|
|
}
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
|
2013-08-13 06:23:28 +02:00
|
|
|
|
|
|
|
// Navbar nav links
|
|
|
|
//
|
2013-12-16 03:13:50 +01:00
|
|
|
// Builds on top of the `.nav` components with its own modifier class to make
|
2013-08-13 06:23:28 +02:00
|
|
|
// the nav the full height of the horizontal nav (above 768px).
|
|
|
|
|
2013-12-18 23:28:03 +01:00
|
|
|
.navbar-nav {
|
2013-08-16 21:38:41 +02:00
|
|
|
margin: (@navbar-padding-vertical / 2) -@navbar-padding-horizontal;
|
2013-08-13 22:39:21 +02:00
|
|
|
|
2013-08-13 06:23:28 +02:00
|
|
|
> li > a {
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
line-height: @line-height-computed;
|
|
|
|
}
|
|
|
|
|
2013-12-05 07:32:56 +01:00
|
|
|
@media (max-width: @grid-float-breakpoint-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 {
|
|
|
|
line-height: @line-height-computed;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-15 06:32:23 +02:00
|
|
|
// Uncollapse the nav
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
float: left;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
float: left;
|
|
|
|
> a {
|
2013-12-01 01:08:49 +01:00
|
|
|
padding-top: @navbar-padding-vertical;
|
|
|
|
padding-bottom: @navbar-padding-vertical;
|
2013-08-15 06:32:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-02 04:27:33 +01:00
|
|
|
&.navbar-right:last-child {
|
|
|
|
margin-right: -@navbar-padding-horizontal;
|
|
|
|
}
|
|
|
|
}
|
2013-08-13 06:23:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-08-14 00:19:59 +02:00
|
|
|
// Component alignment
|
|
|
|
//
|
2013-10-25 04:50:08 +02:00
|
|
|
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
2013-08-14 00:19:59 +02:00
|
|
|
// 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-19 17:54:40 +02:00
|
|
|
.navbar-right { .pull-right(); }
|
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;
|
2013-08-18 23:05:56 +02:00
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-bottom: 1px solid transparent;
|
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 {
|
2013-12-05 07:32:56 +01:00
|
|
|
@media (max-width: @grid-float-breakpoint-max) {
|
2013-08-13 06:23:28 +02:00
|
|
|
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-12-02 04:27:33 +01:00
|
|
|
|
|
|
|
// Outdent the form if last child to line up with content down the page
|
|
|
|
&.navbar-right:last-child {
|
|
|
|
margin-right: -@navbar-padding-horizontal;
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
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-12-02 03:13:27 +01:00
|
|
|
|
|
|
|
&.btn-sm {
|
|
|
|
.navbar-vertical-align(@input-height-small);
|
|
|
|
}
|
|
|
|
&.btn-xs {
|
|
|
|
.navbar-vertical-align(22);
|
|
|
|
}
|
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 {
|
|
|
|
.navbar-vertical-align(@line-height-computed);
|
2013-08-15 22:54:47 +02:00
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
2013-11-17 23:07:28 +01:00
|
|
|
float: left;
|
2013-08-15 22:54:47 +02:00
|
|
|
margin-left: @navbar-padding-horizontal;
|
|
|
|
margin-right: @navbar-padding-horizontal;
|
2013-12-02 04:27:33 +01:00
|
|
|
|
|
|
|
// Outdent the form if last child to line up with content down the page
|
|
|
|
&.navbar-right:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2013-08-15 22:54:47 +02:00
|
|
|
}
|
2013-08-15 06:32:23 +02:00
|
|
|
}
|
|
|
|
|
2013-08-18 23:05:56 +02:00
|
|
|
// Alternate navbars
|
|
|
|
// --------------------------------------------------
|
2013-08-15 06:32:23 +02:00
|
|
|
|
2013-08-18 23:05:56 +02:00
|
|
|
// Default navbar
|
|
|
|
.navbar-default {
|
2013-08-18 23:30:40 +02:00
|
|
|
background-color: @navbar-default-bg;
|
|
|
|
border-color: @navbar-default-border;
|
2013-08-15 06:32:23 +02:00
|
|
|
|
2013-08-18 23:05:56 +02:00
|
|
|
.navbar-brand {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-brand-color;
|
2013-08-18 23:05:56 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-brand-hover-color;
|
|
|
|
background-color: @navbar-default-brand-hover-bg;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
2013-08-15 06:32:23 +02:00
|
|
|
}
|
|
|
|
|
2013-08-18 23:05:56 +02:00
|
|
|
.navbar-text {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-color;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-nav {
|
|
|
|
> li > a {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-link-color;
|
2013-08-18 23:05:56 +02:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-link-hover-color;
|
|
|
|
background-color: @navbar-default-link-hover-bg;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
> .active > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-link-active-color;
|
|
|
|
background-color: @navbar-default-link-active-bg;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
> .disabled > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-link-disabled-color;
|
|
|
|
background-color: @navbar-default-link-disabled-bg;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-toggle {
|
2013-08-18 23:30:40 +02:00
|
|
|
border-color: @navbar-default-toggle-border-color;
|
2013-08-18 23:05:56 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 23:30:40 +02:00
|
|
|
background-color: @navbar-default-toggle-hover-bg;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
.icon-bar {
|
2013-08-18 23:30:40 +02:00
|
|
|
background-color: @navbar-default-toggle-icon-bar-bg;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-collapse,
|
|
|
|
.navbar-form {
|
2013-09-16 19:36:39 +02:00
|
|
|
border-color: @navbar-default-border;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
|
2013-11-28 17:41:43 +01:00
|
|
|
// Dropdown menu items
|
2013-08-18 23:05:56 +02:00
|
|
|
.navbar-nav {
|
|
|
|
// Remove background color from open dropdown
|
|
|
|
> .open > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 23:30:40 +02:00
|
|
|
background-color: @navbar-default-link-active-bg;
|
|
|
|
color: @navbar-default-link-active-color;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-05 07:32:56 +01:00
|
|
|
@media (max-width: @grid-float-breakpoint-max) {
|
2013-08-18 23:05:56 +02:00
|
|
|
// Dropdowns get custom display when collapsed
|
|
|
|
.open .dropdown-menu {
|
|
|
|
> li > a {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-link-color;
|
2013-08-18 23:05:56 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-link-hover-color;
|
|
|
|
background-color: @navbar-default-link-hover-bg;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
> .active > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-link-active-color;
|
|
|
|
background-color: @navbar-default-link-active-bg;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
> .disabled > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-link-disabled-color;
|
|
|
|
background-color: @navbar-default-link-disabled-bg;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Links in navbars
|
|
|
|
//
|
|
|
|
// Add a class to ensure links outside the navbar nav are colored correctly.
|
|
|
|
|
|
|
|
.navbar-link {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-link-color;
|
2013-08-18 23:05:56 +02:00
|
|
|
&:hover {
|
2013-08-18 23:30:40 +02:00
|
|
|
color: @navbar-default-link-hover-color;
|
2013-08-18 23:05:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
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 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-08-13 06:43:59 +02:00
|
|
|
|
2013-12-05 07:32:56 +01:00
|
|
|
@media (max-width: @grid-float-breakpoint-max) {
|
2013-08-13 06:43:59 +02:00
|
|
|
// Dropdowns get custom display
|
|
|
|
.open .dropdown-menu {
|
2013-08-14 00:19:59 +02:00
|
|
|
> .dropdown-header {
|
|
|
|
border-color: @navbar-inverse-border;
|
|
|
|
}
|
2013-11-28 21:39:39 +01:00
|
|
|
.divider {
|
|
|
|
background-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
|
|
|
}
|