2014-06-04 11:14:35 -04:00
|
|
|
//
|
|
|
|
// Navbars
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Wrapper and base class
|
|
|
|
//
|
|
|
|
// Provide a static navbar from which we expand to create full-width, fixed, and
|
|
|
|
// other navbar variations.
|
|
|
|
|
|
|
|
.navbar {
|
|
|
|
position: relative;
|
|
|
|
min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
|
|
|
|
margin-bottom: @navbar-margin-bottom;
|
2014-06-04 12:46:22 -04:00
|
|
|
border-bottom: 1px solid transparent;
|
2014-06-04 11:14:35 -04:00
|
|
|
|
|
|
|
// Prevent floats from breaking the navbar
|
|
|
|
&:extend(.clearfix all);
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-radius: @navbar-border-radius;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Navbar heading
|
|
|
|
//
|
|
|
|
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
|
|
|
// styling of responsive aspects.
|
|
|
|
|
|
|
|
.navbar-header {
|
|
|
|
&:extend(.clearfix all);
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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 {
|
|
|
|
overflow-x: visible;
|
|
|
|
padding-right: @navbar-padding-horizontal;
|
2019-12-05 14:09:31 -05:00
|
|
|
padding-left: @navbar-padding-horizontal;
|
2014-06-04 11:14:35 -04:00
|
|
|
&:extend(.clearfix all);
|
|
|
|
-webkit-overflow-scrolling: touch;
|
2023-04-18 12:50:58 -04:00
|
|
|
height: 100vh;
|
2014-06-04 11:14:35 -04:00
|
|
|
|
|
|
|
&.in {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
width: auto;
|
|
|
|
border-top: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
&.collapse {
|
|
|
|
display: block !important;
|
|
|
|
height: auto !important;
|
|
|
|
padding-bottom: 0; // Override default setting
|
|
|
|
overflow: visible !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.in {
|
|
|
|
overflow-y: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-15 06:08:12 -05:00
|
|
|
.navbar-main {
|
2023-06-01 16:57:24 -04:00
|
|
|
z-index: @z-index-navbar;
|
2018-02-15 06:08:12 -05:00
|
|
|
.container-fluid > .navbar-collapse {
|
|
|
|
// High specificity needed to override Bootstrap's default.
|
2018-02-16 05:26:26 -05:00
|
|
|
margin: 10px 0 0;
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2018-02-15 06:08:12 -05:00
|
|
|
}
|
|
|
|
.navbar-collapse {
|
2018-02-15 06:29:29 -05:00
|
|
|
// Use absolute positioning to build the hamburger menu.
|
2018-02-15 06:08:12 -05:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
background-color: @navbar-default-bg;
|
|
|
|
border-bottom: solid 1px @navbar-default-border;
|
2019-04-17 06:11:17 -04:00
|
|
|
padding: 0;
|
2018-02-15 06:29:29 -05:00
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
2019-12-05 14:09:31 -05:00
|
|
|
// Get back to regular layout mode as soon as the menu items are
|
2018-02-15 06:29:29 -05:00
|
|
|
// expanded (i.e. not contained within the hamburguer menu).
|
|
|
|
position: static;
|
|
|
|
background-color: transparent;
|
|
|
|
border-bottom: 0;
|
|
|
|
padding-right: @navbar-padding-horizontal;
|
2019-12-05 14:09:31 -05:00
|
|
|
padding-left: @navbar-padding-horizontal;
|
2018-02-15 06:29:29 -05:00
|
|
|
}
|
2018-02-15 06:08:12 -05:00
|
|
|
}
|
|
|
|
}
|
2014-06-04 11:14:35 -04:00
|
|
|
// Both navbar header and collapse
|
|
|
|
//
|
|
|
|
// When a container is present, change the behavior of the header and collapse.
|
|
|
|
|
|
|
|
.container,
|
|
|
|
.container-fluid {
|
|
|
|
> .navbar-header,
|
|
|
|
> .navbar-collapse {
|
|
|
|
margin-right: -@navbar-padding-horizontal;
|
2019-12-05 14:09:31 -05:00
|
|
|
margin-left: -@navbar-padding-horizontal;
|
2014-06-04 11:14:35 -04:00
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
margin-right: 0;
|
2019-12-05 14:09:31 -05:00
|
|
|
margin-left: 0;
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Navbar alignment options
|
|
|
|
//
|
|
|
|
// Display the navbar across the entirety of the page or fixed it to the top or
|
|
|
|
// bottom of the page.
|
|
|
|
|
|
|
|
// Static top (unfixed, but 100% wide) navbar
|
|
|
|
.navbar-static-top {
|
|
|
|
z-index: @zindex-navbar;
|
|
|
|
border-width: 0 0 1px;
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fix the top/bottom navbars when screen real estate supports it
|
|
|
|
.navbar-fixed-top,
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: @zindex-navbar-fixed;
|
|
|
|
|
|
|
|
// Undo the rounded corners
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.navbar-fixed-top {
|
|
|
|
top: 0;
|
|
|
|
border-width: 0 0 1px;
|
|
|
|
}
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
bottom: 0;
|
|
|
|
margin-bottom: 0; // override .navbar defaults
|
|
|
|
border-width: 1px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Brand/project name
|
|
|
|
|
|
|
|
.navbar-brand {
|
|
|
|
float: left;
|
2014-06-04 12:57:29 -04:00
|
|
|
//padding: @navbar-padding-vertical @navbar-padding-horizontal;
|
|
|
|
//font-size: @font-size-large;
|
2014-06-04 11:14:35 -04:00
|
|
|
line-height: @line-height-computed;
|
2014-06-04 12:57:29 -04:00
|
|
|
//height: @navbar-height;
|
2014-06-04 11:14:35 -04:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2014-06-06 12:47:52 -04:00
|
|
|
// @media (min-width: @grid-float-breakpoint) {
|
|
|
|
// .navbar > .container &,
|
|
|
|
// .navbar > .container-fluid & {
|
|
|
|
// margin-left: -@navbar-padding-horizontal;
|
|
|
|
// }
|
|
|
|
// }
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
|
|
|
|
2015-02-05 11:56:35 -05:00
|
|
|
.navbar-title {
|
2019-12-05 14:09:31 -05:00
|
|
|
font-size: 20px;
|
|
|
|
display: inline-block;
|
|
|
|
margin-top: 2px;
|
|
|
|
color: @navbar-title-color;
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-title-color-hover;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2015-02-05 11:56:35 -05:00
|
|
|
}
|
|
|
|
|
2014-06-04 11:14:35 -04:00
|
|
|
// Navbar toggle
|
|
|
|
//
|
|
|
|
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
|
|
|
// JavaScript plugin.
|
|
|
|
|
|
|
|
.navbar-toggle {
|
|
|
|
position: relative;
|
|
|
|
float: right;
|
2022-09-23 04:37:02 -04:00
|
|
|
padding: 3px 10px 0px;
|
2014-06-04 11:14:35 -04:00
|
|
|
background-color: transparent;
|
|
|
|
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
2022-09-23 04:37:02 -04:00
|
|
|
border: 0;
|
2014-06-04 11:14:35 -04:00
|
|
|
border-radius: @border-radius-base;
|
|
|
|
|
2022-09-23 04:37:02 -04:00
|
|
|
.fa {
|
|
|
|
font-size: @navbar-height / 2;
|
|
|
|
}
|
|
|
|
|
2014-06-04 11:14:35 -04:00
|
|
|
// We remove the `outline` here, but later compensate by attaching `:hover`
|
|
|
|
// styles to `:focus`.
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Navbar nav links
|
|
|
|
//
|
|
|
|
// Builds on top of the `.nav` components with its own modifier class to make
|
|
|
|
// the nav the full height of the horizontal nav (above 768px).
|
|
|
|
|
|
|
|
.navbar-nav {
|
|
|
|
margin: (@navbar-padding-vertical / 2) -@navbar-padding-horizontal;
|
|
|
|
|
|
|
|
> li > a {
|
2019-12-05 14:09:31 -05:00
|
|
|
padding-top: 10px;
|
2014-06-04 11:14:35 -04:00
|
|
|
padding-bottom: 10px;
|
|
|
|
line-height: @line-height-computed;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: @grid-float-breakpoint-max) {
|
2019-04-17 06:11:17 -04:00
|
|
|
margin: (@navbar-padding-vertical / 2) 0;
|
2014-06-04 11:14:35 -04:00
|
|
|
// Dropdowns get custom display when collapsed
|
|
|
|
.open .dropdown-menu {
|
|
|
|
position: static;
|
|
|
|
float: none;
|
|
|
|
width: auto;
|
|
|
|
margin-top: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
> li > a,
|
2019-04-17 06:11:17 -04:00
|
|
|
> li > div.subdued,
|
|
|
|
> li > form > button,
|
2014-06-04 11:14:35 -04:00
|
|
|
.dropdown-header {
|
|
|
|
padding: 5px 15px 5px 25px;
|
|
|
|
}
|
2019-04-17 06:11:17 -04:00
|
|
|
> li > a,
|
|
|
|
> li > form > button {
|
2014-06-04 11:14:35 -04:00
|
|
|
line-height: @line-height-computed;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
}
|
2019-04-17 06:11:17 -04:00
|
|
|
> li > div.subdued {
|
|
|
|
line-height: @line-height-computed;
|
|
|
|
}
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Uncollapse the nav
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
float: left;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
float: left;
|
|
|
|
> a {
|
2019-12-05 14:09:31 -05:00
|
|
|
padding-top: @navbar-padding-vertical;
|
2014-06-04 11:14:35 -04:00
|
|
|
padding-bottom: @navbar-padding-vertical;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.navbar-right:last-child {
|
|
|
|
margin-right: -@navbar-padding-horizontal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
2019-12-05 14:09:31 -05:00
|
|
|
.navbar-left {
|
|
|
|
.pull-left();
|
|
|
|
}
|
|
|
|
.navbar-right {
|
|
|
|
.pull-right();
|
|
|
|
}
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Navbar form
|
|
|
|
//
|
|
|
|
// Extension of the `.form-inline` with some extra flavor for optimum display in
|
|
|
|
// our navbars.
|
|
|
|
|
|
|
|
.navbar-form {
|
|
|
|
margin-left: -@navbar-padding-horizontal;
|
|
|
|
margin-right: -@navbar-padding-horizontal;
|
|
|
|
padding: 10px @navbar-padding-horizontal;
|
|
|
|
border-top: 1px solid transparent;
|
|
|
|
border-bottom: 1px solid transparent;
|
2024-03-25 06:51:40 -04:00
|
|
|
@shadow:
|
|
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.1),
|
2019-12-05 14:09:31 -05:00
|
|
|
0 1px 0 rgba(255, 255, 255, 0.1);
|
2014-06-04 11:14:35 -04:00
|
|
|
.box-shadow(@shadow);
|
|
|
|
|
|
|
|
// Mixin behavior for optimum display
|
|
|
|
.form-inline();
|
|
|
|
|
|
|
|
.form-group {
|
|
|
|
@media (max-width: @grid-float-breakpoint-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;
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
.box-shadow(none);
|
|
|
|
|
|
|
|
// Outdent the form if last child to line up with content down the page
|
|
|
|
&.navbar-right:last-child {
|
|
|
|
margin-right: -@navbar-padding-horizontal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dropdown menus
|
|
|
|
|
|
|
|
// Menu position and menu carets
|
|
|
|
.navbar-nav > li > .dropdown-menu {
|
|
|
|
margin-top: 0;
|
|
|
|
.border-top-radius(0);
|
|
|
|
}
|
|
|
|
// Menu position and menu caret support for dropups via extra dropup class
|
|
|
|
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
|
|
|
.border-bottom-radius(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Buttons in navbars
|
|
|
|
//
|
|
|
|
// Vertically center a button within a navbar (when *not* in a form).
|
|
|
|
|
|
|
|
.navbar-btn {
|
|
|
|
.navbar-vertical-align(@input-height-base);
|
|
|
|
|
|
|
|
&.btn-sm {
|
|
|
|
.navbar-vertical-align(@input-height-small);
|
|
|
|
}
|
|
|
|
&.btn-xs {
|
|
|
|
.navbar-vertical-align(22);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
float: left;
|
|
|
|
margin-left: @navbar-padding-horizontal;
|
|
|
|
margin-right: @navbar-padding-horizontal;
|
|
|
|
|
|
|
|
// Outdent the form if last child to line up with content down the page
|
|
|
|
&.navbar-right:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Alternate navbars
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Default navbar
|
|
|
|
.navbar-default {
|
|
|
|
background-color: @navbar-default-bg;
|
|
|
|
border-color: @navbar-default-border;
|
2017-09-28 07:12:33 -04:00
|
|
|
padding: @navbar-default-padding;
|
2017-10-06 09:22:06 -04:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
2017-10-09 05:28:21 -04:00
|
|
|
height: @header-height;
|
2019-12-05 14:09:31 -05:00
|
|
|
|
2014-06-04 11:14:35 -04:00
|
|
|
.navbar-brand {
|
2016-06-17 09:55:04 -04:00
|
|
|
position: absolute;
|
|
|
|
top: 5px;
|
|
|
|
bottom: 5px;
|
2017-10-05 11:35:53 -04:00
|
|
|
width: @navbar-brand-width;
|
2016-06-17 09:55:04 -04:00
|
|
|
padding: 0;
|
2017-08-08 02:26:26 -04:00
|
|
|
background-image: @navbar-brand-image-url;
|
2016-06-17 09:37:39 -04:00
|
|
|
background-size: contain;
|
2014-06-06 11:37:59 -04:00
|
|
|
background-repeat: no-repeat;
|
2016-06-17 09:37:39 -04:00
|
|
|
background-position: left center;
|
2014-07-23 07:03:13 -04:00
|
|
|
}
|
2014-06-04 11:14:35 -04:00
|
|
|
|
|
|
|
.navbar-text {
|
|
|
|
color: @navbar-default-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-nav {
|
|
|
|
> li > a {
|
|
|
|
color: @navbar-default-link-color;
|
2014-06-06 11:37:59 -04:00
|
|
|
border: 2px solid transparent;
|
2017-09-28 07:12:33 -04:00
|
|
|
font-size: @navbar-btn-font-size;
|
|
|
|
font-weight: @navbar-btn-font-weight;
|
|
|
|
line-height: @navbar-btn-line-height;
|
2018-08-27 07:39:53 -04:00
|
|
|
background-color: @navbar-default-link-bg;
|
2014-06-04 11:14:35 -04:00
|
|
|
|
2019-04-17 06:11:17 -04:00
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-radius: @navbar-btn-border-radius;
|
|
|
|
padding: @navbar-btn-padding;
|
|
|
|
}
|
|
|
|
|
2014-06-04 11:14:35 -04:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2014-06-04 12:46:22 -04:00
|
|
|
color: #fff;
|
2014-06-04 11:14:35 -04:00
|
|
|
background-color: @navbar-default-link-hover-bg;
|
2014-06-04 12:46:22 -04:00
|
|
|
border: 2px solid @navbar-default-link-hover-color;
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
> .active > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-default-link-active-color;
|
|
|
|
background-color: @navbar-default-link-active-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
> .disabled > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-default-link-disabled-color;
|
|
|
|
background-color: @navbar-default-link-disabled-bg;
|
|
|
|
}
|
|
|
|
}
|
2014-06-06 11:37:59 -04:00
|
|
|
|
2014-06-20 16:35:42 -04:00
|
|
|
> li.subdued > a {
|
|
|
|
border: 0;
|
2017-09-28 07:12:33 -04:00
|
|
|
color: @navbar-subdued-color;
|
2014-06-20 16:42:55 -04:00
|
|
|
margin-left: 0;
|
2018-08-27 07:39:53 -04:00
|
|
|
background-color: transparent;
|
2018-11-08 10:55:46 -05:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-09-28 07:12:33 -04:00
|
|
|
color: @navbar-subdued-hover-color;
|
|
|
|
background-color: @navbar-subdued-hover-bg;
|
2014-06-20 16:35:42 -04:00
|
|
|
}
|
2014-07-22 06:50:15 -04:00
|
|
|
&:focus {
|
2019-12-05 14:09:31 -05:00
|
|
|
.tab-focus();
|
2014-07-22 06:50:15 -04:00
|
|
|
}
|
2019-04-17 06:11:17 -04:00
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
padding: @navbar-subdued-padding;
|
|
|
|
}
|
2014-06-20 16:35:42 -04:00
|
|
|
}
|
|
|
|
|
2023-12-15 10:43:40 -05:00
|
|
|
> li.primary > a {
|
|
|
|
.btn-borderless();
|
|
|
|
}
|
|
|
|
|
|
|
|
> li.secondary > a {
|
|
|
|
.btn-bordered();
|
|
|
|
|
|
|
|
border-width: @border-radius-small;
|
|
|
|
}
|
|
|
|
|
2014-06-06 11:37:59 -04:00
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
> li > a {
|
2018-08-27 07:39:53 -04:00
|
|
|
border-color: @navbar-default-link-border-color;
|
2014-06-06 11:37:59 -04:00
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
}
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-toggle {
|
2024-03-25 11:05:36 -04:00
|
|
|
&.collapsed {
|
|
|
|
border-color: @navbar-default-toggle-border-color;
|
|
|
|
color: @navbar-default-link-color;
|
|
|
|
transition: 0.2s ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.collapsed) {
|
2014-06-04 11:14:35 -04:00
|
|
|
background-color: @navbar-default-toggle-hover-bg;
|
2014-06-04 12:57:29 -04:00
|
|
|
border-color: @navbar-default-toggle-hover-bg;
|
|
|
|
color: #fff;
|
2024-03-25 11:05:36 -04:00
|
|
|
transition: 0.2s ease-in;
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-collapse,
|
|
|
|
.navbar-form {
|
|
|
|
border-color: @navbar-default-border;
|
|
|
|
}
|
|
|
|
|
2019-04-17 06:11:17 -04:00
|
|
|
.navbar-collapse.in {
|
2019-12-05 14:09:31 -05:00
|
|
|
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.25);
|
2019-04-17 06:11:17 -04:00
|
|
|
}
|
2014-06-04 11:14:35 -04:00
|
|
|
// Dropdown menu items
|
|
|
|
.navbar-nav {
|
|
|
|
// Remove background color from open dropdown
|
|
|
|
> .open > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: @navbar-default-link-active-bg;
|
|
|
|
color: @navbar-default-link-active-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-20 16:35:42 -04:00
|
|
|
> .open.subdued > a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-09-28 07:12:33 -04:00
|
|
|
color: @navbar-subdued-hover-color;
|
|
|
|
background-color: @navbar-subdued-hover-bg;
|
2014-06-20 16:35:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-04 11:14:35 -04:00
|
|
|
@media (max-width: @grid-float-breakpoint-max) {
|
|
|
|
// Dropdowns get custom display when collapsed
|
|
|
|
.open .dropdown-menu {
|
2019-04-17 06:11:17 -04:00
|
|
|
background-color: lighten(@navbar-default-bg, 10%);
|
|
|
|
> li > div.subdued {
|
|
|
|
color: mix(@navbar-default-link-color, @navbar-default-bg);
|
|
|
|
}
|
|
|
|
> li > a,
|
|
|
|
> li > form > button {
|
|
|
|
// padding: 12px 12px 13px 30px;
|
2014-06-04 11:14:35 -04:00
|
|
|
color: @navbar-default-link-color;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2014-06-06 11:37:59 -04:00
|
|
|
color: #fff;
|
2014-06-04 11:14:35 -04:00
|
|
|
background-color: @navbar-default-link-hover-bg;
|
|
|
|
}
|
|
|
|
}
|
2019-04-17 06:11:17 -04:00
|
|
|
> .active > a,
|
|
|
|
> .active > form > button {
|
2014-06-04 11:14:35 -04:00
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-default-link-active-color;
|
|
|
|
background-color: @navbar-default-link-active-bg;
|
|
|
|
}
|
|
|
|
}
|
2019-04-17 06:11:17 -04:00
|
|
|
> .disabled > a,
|
|
|
|
> .disabled > form > button {
|
2014-06-04 11:14:35 -04:00
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-default-link-disabled-color;
|
|
|
|
background-color: @navbar-default-link-disabled-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Links in navbars
|
|
|
|
//
|
|
|
|
// Add a class to ensure links outside the navbar nav are colored correctly.
|
|
|
|
|
|
|
|
.navbar-link {
|
|
|
|
color: @navbar-default-link-color;
|
|
|
|
&:hover {
|
|
|
|
color: @navbar-default-link-hover-color;
|
|
|
|
}
|
|
|
|
}
|
2018-02-15 06:46:40 -05:00
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
padding: @navbar-default-padding-v 0;
|
|
|
|
}
|
|
|
|
}
|
2021-07-27 09:23:05 -04:00
|
|
|
|
|
|
|
// Accessibility
|
|
|
|
.skip-to-content {
|
|
|
|
color: @navbar-default-link-color;
|
|
|
|
background-color: @navbar-default-link-bg;
|
|
|
|
border: 2px solid transparent;
|
|
|
|
border-radius: @navbar-btn-border-radius;
|
|
|
|
font-size: @navbar-btn-font-size;
|
|
|
|
font-weight: @navbar-btn-font-weight;
|
|
|
|
left: @navbar-brand-width + @padding-lg;
|
|
|
|
line-height: @navbar-btn-line-height;
|
|
|
|
padding: @navbar-btn-padding;
|
|
|
|
position: absolute;
|
|
|
|
top: -200px;
|
|
|
|
z-index: @zindex-navbar + 1;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: @navbar-default-link-hover-bg;
|
|
|
|
border: 2px solid @navbar-default-link-hover-color;
|
|
|
|
color: @white;
|
|
|
|
text-decoration: none;
|
|
|
|
top: @navbar-default-padding-v;
|
|
|
|
}
|
|
|
|
}
|
2023-12-04 12:53:26 -05:00
|
|
|
|
2023-12-15 10:43:40 -05:00
|
|
|
.website-redesign-navbar {
|
2023-12-04 12:53:26 -05:00
|
|
|
&.navbar-default {
|
|
|
|
background-color: @navbar-default-bg-website-redesign;
|
|
|
|
|
|
|
|
.navbar-brand {
|
|
|
|
background-image: @navbar-brand-image-url-website-redesign;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-text {
|
|
|
|
color: @navbar-default-color-website-redesign;
|
|
|
|
}
|
|
|
|
|
2023-12-15 10:43:40 -05:00
|
|
|
// There is this -15px margin hack that is needed on the original
|
|
|
|
// This causes inconsistency with the website redesign navbar,
|
|
|
|
// so reset it to 0 for now
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
.navbar-right:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-04 12:53:26 -05:00
|
|
|
.navbar-nav {
|
|
|
|
> li > a {
|
|
|
|
color: @navbar-default-link-color-website-redesign;
|
|
|
|
// border: 2px solid transparent;
|
|
|
|
|
2023-12-15 10:43:40 -05:00
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-radius: @navbar-btn-border-radius;
|
|
|
|
padding: @navbar-btn-padding;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> li.subdued > a {
|
|
|
|
color: @navbar-subdued-color-website-redesign;
|
2023-12-04 12:53:26 -05:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2023-12-15 10:43:40 -05:00
|
|
|
color: @navbar-subdued-hover-color-website-redesign;
|
|
|
|
background-color: @navbar-subdued-hover-bg-website-redesign;
|
|
|
|
}
|
|
|
|
&:focus {
|
|
|
|
.tab-focus();
|
|
|
|
}
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
padding: @navbar-subdued-padding;
|
2023-12-04 12:53:26 -05:00
|
|
|
}
|
|
|
|
}
|
2023-12-15 10:43:40 -05:00
|
|
|
|
|
|
|
> li.primary > a {
|
2024-08-01 11:14:57 -04:00
|
|
|
.btn-borderless(@white, @green-50, @green-60);
|
2023-12-15 10:43:40 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
> li.secondary > a {
|
|
|
|
.btn-bordered();
|
|
|
|
|
|
|
|
border-width: @border-radius-small;
|
|
|
|
border-color: transparent;
|
|
|
|
|
|
|
|
@media (min-width: @grid-float-breakpoint) {
|
|
|
|
border-color: @btn-bordered-border-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-toggle {
|
2024-03-25 11:05:36 -04:00
|
|
|
&.collapsed {
|
|
|
|
border-color: @navbar-default-toggle-border-color-website-redesign;
|
|
|
|
color: @navbar-default-link-color-website-redesign;
|
|
|
|
transition: 0.2s ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.collapsed) {
|
2023-12-15 10:43:40 -05:00
|
|
|
background-color: @navbar-default-toggle-hover-bg-website-redesign;
|
|
|
|
border-color: @navbar-default-toggle-hover-bg-website-redesign;
|
|
|
|
color: #fff;
|
2024-03-25 11:05:36 -04:00
|
|
|
transition: 0.2s ease-in;
|
2023-12-15 10:43:40 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-collapse {
|
|
|
|
// Use absolute positioning to build the hamburger menu.
|
|
|
|
background-color: @navbar-default-bg-website-redesign;
|
|
|
|
border-bottom: solid 1px @navbar-default-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dropdown menu items
|
|
|
|
.navbar-nav {
|
|
|
|
.dropdown-menu-button,
|
|
|
|
.dropdown-menu > li > a {
|
2023-12-04 12:53:26 -05:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2023-12-15 10:43:40 -05:00
|
|
|
background-color: @navbar-default-link-active-bg-website-redesign;
|
2023-12-04 12:53:26 -05:00
|
|
|
}
|
|
|
|
}
|
2023-12-15 10:43:40 -05:00
|
|
|
|
|
|
|
// Remove background color from open dropdown
|
|
|
|
> .open > a {
|
2023-12-04 12:53:26 -05:00
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2023-12-15 10:43:40 -05:00
|
|
|
background-color: @btn-secondary-hover-bg-color; // force secondary button style
|
|
|
|
color: @navbar-default-link-active-color-website-redesign;
|
2023-12-04 12:53:26 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-15 10:43:40 -05:00
|
|
|
> .open.subdued > a {
|
|
|
|
&,
|
2023-12-04 12:53:26 -05:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-subdued-hover-color-website-redesign;
|
|
|
|
background-color: @navbar-subdued-hover-bg-website-redesign;
|
|
|
|
}
|
2023-12-15 10:43:40 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: @grid-float-breakpoint-max) {
|
|
|
|
// Dropdowns get custom display when collapsed
|
|
|
|
.open .dropdown-menu {
|
|
|
|
background-color: darken(@navbar-default-bg-website-redesign, 5%);
|
|
|
|
> li > div.subdued {
|
|
|
|
color: mix(
|
|
|
|
@navbar-default-link-color-website-redesign,
|
|
|
|
@navbar-default-bg-website-redesign
|
|
|
|
);
|
|
|
|
}
|
|
|
|
> li > a,
|
|
|
|
> li > form > button {
|
|
|
|
// padding: 12px 12px 13px 30px;
|
|
|
|
color: @navbar-default-link-color-website-redesign;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: #fff;
|
|
|
|
background-color: @navbar-default-link-hover-bg-website-redesign;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
> .active > a,
|
|
|
|
> .active > form > button {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-default-link-active-color-website-redesign;
|
|
|
|
background-color: @navbar-default-link-active-bg-website-redesign;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
> .disabled > a,
|
|
|
|
> .disabled > form > button {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @navbar-default-link-disabled-color-website-redesign;
|
|
|
|
background-color: @navbar-default-link-disabled-bg;
|
|
|
|
}
|
|
|
|
}
|
2023-12-04 12:53:26 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|