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.
115 lines
2.3 KiB
115 lines
2.3 KiB
1 year ago
|
/*
|
||
|
* 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.
|
||
|
*/
|
||
|
|
||
|
.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;
|
||
|
}
|
||
|
|
||
|
.wide-nav-expand__icon > span:nth-child(1) {
|
||
|
position: absolute;
|
||
|
inset-block-start: 0;
|
||
|
inset-inline-start: 0;
|
||
|
width: 100%;
|
||
|
height: 0;
|
||
|
transition: transform 0.2s;
|
||
|
background-color: currentColor;
|
||
|
}
|
||
|
|
||
|
.wide-nav-expand__icon > span:nth-child(2) {
|
||
|
position: absolute;
|
||
|
inset-block-start: 0.5625rem;
|
||
|
inset-inline-start: 0;
|
||
|
width: 100%;
|
||
|
height: 0;
|
||
|
transition: opacity 0.2s;
|
||
|
background-color: currentColor;
|
||
|
}
|
||
|
|
||
|
.wide-nav-expand__icon > span:nth-child(3) {
|
||
|
position: absolute;
|
||
|
inset-block: auto 0;
|
||
|
inset-inline-start: 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) {
|
||
|
inset-block-start: 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) {
|
||
|
inset-block-start: 0.5625rem;
|
||
|
transform: rotate(45deg);
|
||
|
}
|