clone of olivero for island lives
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
4.6 KiB

12 months ago
/*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
/**
* @file
* Nav Primary.
*/
.primary-nav__menu {
flex-wrap: wrap;
list-style: none;
}
.primary-nav__menu-item {
12 months ago
margin-block-end: var(--sp0-5);
12 months ago
}
.primary-nav__menu-item:last-child {
12 months ago
margin-block-end: 0;
}
12 months ago
.primary-nav__menu-item.primary-nav__menu-item--has-children {
12 months ago
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
12 months ago
.primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--link,
12 months ago
.primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--nolink {
/* Ensure that long text doesn't make the mobile expand button wrap. */
flex-basis: calc(100% - var(--sp3));
}
12 months ago
.primary-nav__menu-link {
flex-grow: 1;
12 months ago
-webkit-text-decoration: none;
12 months ago
text-decoration: none;
color: var(--color-text-neutral-loud);
font-size: 1.75rem;
font-weight: bold;
12 months ago
line-height: var(--sp2);
12 months ago
}
.primary-nav__menu-link:hover {
12 months ago
color: inherit;
12 months ago
}
12 months ago
.primary-nav__menu-link:focus {
outline: auto 2px var(--color--primary-50);
outline-offset: 2px;
12 months ago
}
.primary-nav__menu-link--nolink {
12 months ago
padding-block: var(--sp0-5);
padding-inline-start: 0;
padding-inline-end: 0;
12 months ago
color: var(--color-text-neutral-soft);
font-weight: normal;
}
.primary-nav__menu-link--button {
position: relative;
12 months ago
padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
12 months ago
cursor: pointer;
12 months ago
text-align: start;
12 months ago
border: 0;
12 months ago
background: transparent;
12 months ago
/* Plus icon for mobile navigation. */
}
12 months ago
.primary-nav__menu-link--button.primary-nav__menu-link--has-children {
padding-inline-end: var(--sp3); /* Ensure text does not overlap icon. */
12 months ago
}
.primary-nav__menu-link--button.primary-nav__menu-link--has-children::before,
.primary-nav__menu-link--button.primary-nav__menu-link--has-children::after {
12 months ago
position: absolute;
inset-inline-end: 0.5625rem;
inset-block-start: calc(var(--sp0-5) + 1.0625rem); /* Visually align button with menu link text. */
width: 1.125rem;
height: 0;
content: "";
/* Intentionally not using CSS logical properties. */
border-top: solid 3px var(--color--primary-50);
12 months ago
}
12 months ago
.primary-nav__menu-link--button.primary-nav__menu-link--has-children::after {
transition: opacity 0.2s;
transform: rotate(90deg);
12 months ago
}
12 months ago
.primary-nav__menu-link--button.primary-nav__menu-link--has-children[aria-expanded="true"]::after {
opacity: 0;
12 months ago
}
.primary-nav__menu-link-inner {
position: relative;
display: inline-flex;
align-items: center;
12 months ago
padding-block: var(--sp0-5);
padding-inline-start: 0;
padding-inline-end: 0;
12 months ago
}
12 months ago
.primary-nav__menu-link-inner::after {
12 months ago
position: absolute;
inset-block-end: 0;
inset-inline-start: 0;
width: 100%;
height: 0;
content: "";
transition: transform 0.2s;
transform: scaleX(0);
transform-origin: left;
/* Intentionally not using CSS logical properties. */
border-top: solid 5px var(--color--primary-50);
}
12 months ago
.primary-nav__menu-link:hover .primary-nav__menu-link-inner::after {
12 months ago
transform: scaleX(1);
}
12 months ago
12 months ago
/*
Top level specific styles.
*/
.primary-nav__menu--level-1 {
12 months ago
margin-block: 0;
margin-inline-start: 0;
margin-inline-end: 0;
padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
12 months ago
}
.primary-nav__menu-link--level-1 {
position: relative;
display: flex;
letter-spacing: -1px;
}
/*
Secondary menu specific styles.
*/
.primary-nav__menu--level-2 {
visibility: hidden;
overflow: hidden;
flex-basis: 100%;
max-height: 0;
12 months ago
margin-block: 0;
margin-inline-start: calc(-1 * var(--sp));
padding-inline-start: var(--sp2-5);
12 months ago
transition: opacity 0.2s, visibility 0.2s, max-height 0.2s;
12 months ago
opacity: 0;
border-inline-start: solid var(--sp) var(--color--primary-50);
12 months ago
}
.primary-nav__menu--level-2.is-active-menu-parent {
12 months ago
visibility: visible;
max-height: none;
margin-block-start: var(--sp1-5);
opacity: 1;
}
12 months ago
@media (min-width: 43.75rem) {
12 months ago
.primary-nav__menu--level-2 {
margin-inline-start: calc(-1 * var(--sp3));
padding-inline-start: var(--sp3);
12 months ago
}
12 months ago
}
12 months ago
/*
* Olives doesn't officially support nested tertiary submenus, but this
* ensures that it doesn't break all the way.
*
* @see https://www.drupal.org/project/drupal/issues/3221399
*/
.primary-nav__menu--level-2 .primary-nav__menu-item--has-children {
display: block;
}
.primary-nav__menu-link--level-2 {
font-size: 1rem;
font-weight: normal;
line-height: var(--sp);
}
html:not(.js) .primary-nav__menu--level-2 {
12 months ago
visibility: visible;
max-height: none;
opacity: 1;
}
12 months ago
[dir="rtl"] .primary-nav__menu-link-inner::after {
12 months ago
transform-origin: right;
}