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.
152 lines
2.9 KiB
152 lines
2.9 KiB
/* |
|
* DO NOT EDIT THIS FILE. |
|
* See the following change record for more information, |
|
* https://www.drupal.org/node/3084859 |
|
* @preserve |
|
*/ |
|
|
|
/** |
|
* @file |
|
* Button which expands the navigation at wide viewport widths. |
|
*/ |
|
|
|
/* |
|
* Media query breakpoints. |
|
* Processed by postcss/postcss-custom-media. |
|
*/ |
|
|
|
/* Navigation related breakpoints */ |
|
|
|
/* Grid related breakpoints */ |
|
|
|
/* Grid shifts from 6 to 14 columns. */ |
|
|
|
/* Width of the entire grid maxes out. */ |
|
|
|
.wide-nav-expand { |
|
display: none |
|
} |
|
|
|
@media (min-width: 75rem) { |
|
|
|
.wide-nav-expand { |
|
display: flex; |
|
visibility: hidden; |
|
flex-shrink: 0; |
|
align-items: center; |
|
justify-content: center; |
|
width: var(--content-left); |
|
height: var(--sp6); |
|
cursor: pointer; |
|
pointer-events: auto; |
|
color: var(--color--white); |
|
border: 0; |
|
background-color: var(--color--primary-50) |
|
} |
|
|
|
.wide-nav-expand:focus { |
|
outline: solid 2px currentColor; |
|
outline-offset: -4px; |
|
} |
|
} |
|
|
|
@media (min-width: 75rem) { |
|
|
|
body:not(.is-always-mobile-nav) .is-fixed .wide-nav-expand { |
|
visibility: visible |
|
} |
|
} |
|
|
|
@media (min-width: 75rem) { |
|
|
|
body.is-always-mobile-nav .wide-nav-expand { |
|
visibility: hidden |
|
} |
|
} |
|
|
|
.wide-nav-expand__icon { |
|
position: relative; |
|
width: var(--sp2); |
|
height: 1.3125rem; |
|
transition: opacity 0.2s; |
|
pointer-events: none; |
|
opacity: 0; |
|
transform-style: preserve-3d |
|
} |
|
|
|
.wide-nav-expand__icon > span { |
|
display: block; |
|
height: 0; |
|
/* Intentionally not using CSS logical properties. */ |
|
border-top: solid 3px currentColor |
|
} |
|
|
|
[dir="ltr"] .wide-nav-expand__icon > span:nth-child(1) { |
|
left: 0 |
|
} |
|
|
|
[dir="rtl"] .wide-nav-expand__icon > span:nth-child(1) { |
|
right: 0 |
|
} |
|
|
|
.wide-nav-expand__icon > span:nth-child(1) { |
|
position: absolute; |
|
top: 0; |
|
width: 100%; |
|
height: 0; |
|
transition: transform 0.2s; |
|
background-color: currentColor; |
|
} |
|
|
|
[dir="ltr"] .wide-nav-expand__icon > span:nth-child(2) { |
|
left: 0 |
|
} |
|
|
|
[dir="rtl"] .wide-nav-expand__icon > span:nth-child(2) { |
|
right: 0 |
|
} |
|
|
|
.wide-nav-expand__icon > span:nth-child(2) { |
|
position: absolute; |
|
top: 0.5625rem; |
|
width: 100%; |
|
height: 0; |
|
transition: opacity 0.2s; |
|
background-color: currentColor; |
|
} |
|
|
|
[dir="ltr"] .wide-nav-expand__icon > span:nth-child(3) { |
|
left: 0 |
|
} |
|
|
|
[dir="rtl"] .wide-nav-expand__icon > span:nth-child(3) { |
|
right: 0 |
|
} |
|
|
|
.wide-nav-expand__icon > span:nth-child(3) { |
|
position: absolute; |
|
top: auto; |
|
bottom: 0; |
|
width: 100%; |
|
height: 0; |
|
transition: transform 0.2s; |
|
background-color: currentColor; |
|
} |
|
|
|
.is-fixed .wide-nav-expand__icon { |
|
opacity: 1; |
|
} |
|
|
|
[aria-expanded="true"] .wide-nav-expand__icon > span:nth-child(1) { |
|
top: 0.5625rem; |
|
transform: rotate(-45deg); |
|
} |
|
|
|
[aria-expanded="true"] .wide-nav-expand__icon > span:nth-child(2) { |
|
opacity: 0; |
|
} |
|
|
|
[aria-expanded="true"] .wide-nav-expand__icon > span:nth-child(3) { |
|
top: 0.5625rem; |
|
transform: rotate(45deg); |
|
}
|
|
|