2024-05-28 07:40:05 -04:00
|
|
|
// Default navbar
|
|
|
|
.navbar-default {
|
|
|
|
background-color: var(--navbar-bg);
|
|
|
|
border-color: var(--navbar-border);
|
|
|
|
padding: var(--navbar-padding);
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: $header-height;
|
|
|
|
|
|
|
|
.navbar-container {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-brand {
|
|
|
|
width: var(--navbar-brand-width);
|
|
|
|
height: $header-height;
|
|
|
|
padding: 0;
|
|
|
|
background: var(--navbar-brand-image-url) no-repeat left center;
|
|
|
|
background-size: contain;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-title {
|
|
|
|
display: inline-block;
|
|
|
|
font-size: var(--navbar-title-font-size);
|
|
|
|
color: var(--navbar-title-color);
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
color: var(--navbar-title-color-hover);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-nav {
|
|
|
|
> li {
|
|
|
|
display: inline-flex;
|
2024-10-18 04:24:07 -04:00
|
|
|
flex-shrink: 0;
|
2024-05-28 07:40:05 -04:00
|
|
|
|
2024-08-21 06:33:17 -04:00
|
|
|
> .nav-link,
|
2024-05-28 07:40:05 -04:00
|
|
|
> .dropdown-toggle {
|
|
|
|
display: block;
|
|
|
|
color: var(--navbar-link-color);
|
|
|
|
background-color: transparent;
|
|
|
|
padding: var(--navbar-btn-padding-v) var(--navbar-btn-padding-h);
|
|
|
|
margin-left: var(--navbar-item-spacing-horizontal);
|
|
|
|
border: var(--navbar-btn-border-width) solid
|
|
|
|
var(--navbar-link-border-color);
|
|
|
|
border-radius: var(--navbar-btn-border-radius);
|
|
|
|
font-size: var(--navbar-btn-font-size);
|
|
|
|
font-weight: var(--navbar-btn-font-weight);
|
|
|
|
line-height: var(--navbar-btn-line-height);
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&.show,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: var(--navbar-link-hover-color);
|
|
|
|
background-color: var(--navbar-link-hover-bg);
|
|
|
|
border-color: var(--navbar-link-hover-border-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-21 06:33:17 -04:00
|
|
|
&.subdued > .nav-link,
|
2024-05-28 07:40:05 -04:00
|
|
|
&.subdued > .dropdown-toggle {
|
|
|
|
border: 0;
|
|
|
|
color: var(--navbar-subdued-color);
|
|
|
|
padding: var(--navbar-subdued-padding);
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
|
|
&.show,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: var(--navbar-subdued-hover-color);
|
|
|
|
background-color: var(--navbar-subdued-hover-bg);
|
|
|
|
}
|
|
|
|
}
|
2024-10-31 11:50:53 -04:00
|
|
|
|
|
|
|
&.primary > .nav-link {
|
|
|
|
color: var(--navbar-primary-color);
|
|
|
|
background-color: var(--navbar-primary-bg);
|
|
|
|
border-color: var(--navbar-primary-border-color);
|
|
|
|
|
|
|
|
&.show,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: var(--navbar-primary-hover-bg);
|
|
|
|
border-color: var(--navbar-primary-hover-border-color);
|
|
|
|
}
|
|
|
|
}
|
2024-05-28 07:40:05 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-toggler {
|
2024-08-21 06:33:17 -04:00
|
|
|
--bs-navbar-toggler-padding-x: var(--spacing-04);
|
|
|
|
|
2024-05-28 07:40:05 -04:00
|
|
|
color: var(--navbar-link-color);
|
|
|
|
border-radius: var(--border-radius-base);
|
|
|
|
border-width: 0;
|
|
|
|
transition: 0.2s ease-out;
|
|
|
|
|
|
|
|
&:not(.collapsed) {
|
|
|
|
color: var(--navbar-toggler-expanded-color);
|
|
|
|
background-color: var(--navbar-toggler-expanded-bg);
|
|
|
|
transition: 0.2s ease-in;
|
|
|
|
}
|
2024-08-21 06:33:17 -04:00
|
|
|
|
|
|
|
& .material-symbols {
|
|
|
|
font-size: inherit;
|
|
|
|
font-weight: bold;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2024-05-28 07:40:05 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-collapse,
|
|
|
|
.navbar-form {
|
|
|
|
border-color: var(--navbar-border);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-only(lg) {
|
|
|
|
:root {
|
|
|
|
--navbar-btn-padding-h: #{$spacing-04};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Different (stacked) layout for smaller screens
|
|
|
|
@include media-breakpoint-down(lg) {
|
|
|
|
.navbar-default .navbar-collapse {
|
|
|
|
&.show {
|
|
|
|
min-height: calc(100vh - $header-height);
|
|
|
|
}
|
|
|
|
|
|
|
|
background-color: var(--navbar-bg);
|
|
|
|
margin: 0 calc(-1 * var(--navbar-padding-h));
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
.navbar-nav {
|
|
|
|
> li {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
> a,
|
|
|
|
> .dropdown-toggle {
|
|
|
|
margin: 0;
|
2024-08-21 06:33:17 -04:00
|
|
|
padding-top: var(--spacing-05);
|
|
|
|
padding-bottom: var(--spacing-05);
|
2024-05-28 07:40:05 -04:00
|
|
|
width: 100%;
|
|
|
|
text-align: left;
|
|
|
|
border-radius: 0;
|
|
|
|
border-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dropdowns get custom display when collapsed
|
|
|
|
.dropdown-menu.show {
|
|
|
|
--bs-dropdown-spacer: 0;
|
|
|
|
|
2024-07-22 04:10:54 -04:00
|
|
|
box-shadow: none;
|
2024-05-28 07:40:05 -04:00
|
|
|
background-color: var(--navbar-hamburger-submenu-bg);
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
.dropdown-item {
|
|
|
|
padding: var(--spacing-02) var(--spacing-06) var(--spacing-02)
|
|
|
|
var(--spacing-08);
|
|
|
|
|
|
|
|
&:not(.disabled) {
|
|
|
|
color: var(--navbar-hamburger-submenu-item-color);
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: var(--navbar-hamburger-submenu-item-hover-color);
|
|
|
|
background-color: var(--navbar-hamburger-submenu-item-hover-bg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Accessibility
|
|
|
|
.skip-to-content {
|
|
|
|
color: var(--navbar-link-color);
|
|
|
|
background-color: var(--navbar-link-bg);
|
|
|
|
border: var(--spacing-01) solid transparent;
|
|
|
|
border-radius: var(--navbar-btn-border-radius);
|
|
|
|
font-size: var(--navbar-btn-font-size);
|
|
|
|
font-weight: var(--navbar-btn-font-weight);
|
|
|
|
left: calc(var(--navbar-brand-width) + var(--spacing-09));
|
|
|
|
line-height: var(--navbar-btn-line-height);
|
|
|
|
padding: var(--navbar-btn-padding-v) var(--navbar-btn-padding-h);
|
|
|
|
position: absolute;
|
|
|
|
top: -200px;
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: var(--navbar-link-hover-bg);
|
|
|
|
border: var(--spacing-01) solid var(--navbar-link-hover-color);
|
|
|
|
color: var(--white);
|
|
|
|
text-decoration: none;
|
|
|
|
top: calc(($header-height - 36px) / 2); // 36px is the height of the link
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-11-04 11:10:49 -05:00
|
|
|
.website-redesign-navbar,
|
|
|
|
.website-redesign .navbar-default {
|
2024-05-28 07:40:05 -04:00
|
|
|
--navbar-title-color: var(--content-primary);
|
|
|
|
--navbar-title-color-hover: var(--content-secondary);
|
2024-07-22 04:10:54 -04:00
|
|
|
--navbar-brand-image-url: url('../../../../public/img/ol-brand/overleaf-black.svg');
|
2024-05-28 07:40:05 -04:00
|
|
|
--navbar-subdued-color: var(--content-primary);
|
|
|
|
--navbar-subdued-hover-bg: var(--bg-dark-primary);
|
|
|
|
--navbar-subdued-hover-color: var(--content-primary-dark);
|
|
|
|
--navbar-bg: var(--bg-light-primary);
|
|
|
|
|
|
|
|
// Navbar links
|
|
|
|
--navbar-link-color: var(--content-primary);
|
|
|
|
--navbar-link-border-color: var(--border-primary);
|
|
|
|
--navbar-link-hover-color: var(--navbar-link-color);
|
|
|
|
--navbar-link-hover-bg: var(--bg-light-tertiary);
|
|
|
|
--navbar-link-hover-border-color: var(--navbar-link-border-color);
|
|
|
|
|
|
|
|
// Toggler
|
|
|
|
--navbar-toggler-expanded-color: var(--white);
|
|
|
|
--navbar-toggler-expanded-bg: var(--bg-dark-primary);
|
|
|
|
|
|
|
|
// Mobile view
|
|
|
|
--navbar-hamburger-submenu-bg: var(--bg-light-secondary);
|
|
|
|
--navbar-hamburger-submenu-item-color: var(--navbar-link-color);
|
|
|
|
--navbar-hamburger-submenu-item-hover-color: var(--white);
|
|
|
|
--navbar-hamburger-submenu-item-hover-bg: var(--bg-dark-primary);
|
|
|
|
}
|