|
|
|
/*
|
|
|
|
* DO NOT EDIT THIS FILE.
|
|
|
|
* See the following change record for more information,
|
|
|
|
* https://www.drupal.org/node/3084859
|
|
|
|
* @preserve
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Secondary navigation styling.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.secondary-nav {
|
|
|
|
letter-spacing: 0.02em;
|
|
|
|
font-size: var(--font-size-s);
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
.secondary-nav__menu {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-block: 0;
|
|
|
|
margin-inline-start: 0;
|
|
|
|
margin-inline-end: 0;
|
|
|
|
padding-block: 0;
|
|
|
|
padding-inline-start: 0;
|
|
|
|
padding-inline-end: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.secondary-nav__menu-item {
|
|
|
|
/* @todo should this be scoped to desktop nav? */
|
|
|
|
width: max-content;
|
|
|
|
max-width: 12.5rem;
|
|
|
|
/* Parent element is set to flex-basis: 0. We
|
|
|
|
* don't want text to wrap unless it goes over a
|
|
|
|
* certain arbitrary width.
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
|
|
|
.secondary-nav__menu-item:not(:last-child) {
|
|
|
|
margin-inline-end: var(--sp1-5);
|
|
|
|
}
|
|
|
|
|
|
|
|
.secondary-nav__menu-item:first-child a:before {
|
|
|
|
/*content: url("../../../images/magnifying-glass.svg");*/
|
|
|
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' width='16' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--%3E%3Cpath fill='%232b353b' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
|
|
|
|
/*fill:blue; */
|
|
|
|
margin-right:5px;
|
|
|
|
|
|
|
|
}
|
|
|
|
.secondary-nav__menu-link {
|
|
|
|
position: relative;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
height: var(--sp2);
|
|
|
|
-webkit-text-decoration: none;
|
|
|
|
text-decoration: none;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.secondary-nav__menu-link::after {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
content: "";
|
|
|
|
transition: opacity 0.2s, transform 0.2s;
|
|
|
|
transform: translateY(0.3125rem);
|
|
|
|
opacity: 0;
|
|
|
|
/* Intentionally not using CSS logical properties. */
|
|
|
|
border-top: solid 2px currentColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
.secondary-nav__menu-link:hover::after {
|
|
|
|
transform: translateY(0);
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ((((min-width: 60rem)))) {
|
|
|
|
body:not(.is-always-mobile-nav) .secondary-nav {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
margin-inline-start: var(--sp);
|
|
|
|
padding-inline-start: var(--sp2);
|
|
|
|
}
|
|
|
|
|
|
|
|
body:not(.is-always-mobile-nav) .secondary-nav::before {
|
|
|
|
position: absolute;
|
|
|
|
inset-block-start: 50%;
|
|
|
|
inset-inline-start: 0;
|
|
|
|
width: 2px;
|
|
|
|
height: var(--sp2);
|
|
|
|
content: "";
|
|
|
|
transform: translateY(-50%);
|
|
|
|
background-color: var(--color--gray-90);
|
|
|
|
}
|
|
|
|
|
|
|
|
body:not(.is-always-mobile-nav) .secondary-nav__menu-item:not(:last-child) {
|
|
|
|
margin-inline-end: var(--sp2);
|
|
|
|
}
|
|
|
|
body:not(.is-always-mobile-nav) .secondary-nav__menu-link:focus {
|
|
|
|
position: relative;
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
body:not(.is-always-mobile-nav) .secondary-nav__menu-link:focus::before {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
width: calc(100% + var(--sp));
|
|
|
|
height: var(--sp3);
|
|
|
|
content: "";
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
border: solid 2px var(--color--primary-50);
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
}
|
|
|
|
}
|