D10 theme for Island Lives. This is a clone of drupals core theme Olivero. Notice this theme is named Olivera not Olivero :)
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.

113 lines
2.4 KiB

11 months ago
/*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
/**
* @file
* Sticky Header Toggle Button.
*
* This button shows on the left hand side of the header (in LTR layouts), and
* toggles fixing the header to the top of the viewport.
*/
10 months ago
/*
* 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. */
11 months ago
.sticky-header-toggle {
10 months ago
display: none
11 months ago
}
@media (min-width: 75rem) {
10 months ago
.sticky-header-toggle {
11 months ago
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: var(--content-left);
height: var(--sp6);
pointer-events: none;
opacity: 0;
border: 0;
outline: 0;
10 months ago
background-color: var(--color--primary-50)
}
11 months ago
10 months ago
.sticky-header-toggle:focus {
cursor: pointer;
pointer-events: auto;
opacity: 1;
outline: solid 2px var(--color--white);
outline-offset: -4px;
}
11 months ago
}
@media (min-width: 75rem) {
10 months ago
body:not(.is-always-mobile-nav) .is-fixed .sticky-header-toggle {
visibility: visible
11 months ago
}
10 months ago
}
11 months ago
@media (min-width: 75rem) {
10 months ago
body.is-always-mobile-nav .sticky-header-toggle {
visibility: hidden
11 months ago
}
10 months ago
}
11 months ago
.sticky-header-toggle__icon {
--icon-bar-height: 0.1875rem;
--icon-bar-space: 0.4375rem;
display: flex;
flex-direction: column;
justify-content: space-between;
width: var(--sp2);
10 months ago
height: calc(var(--icon-bar-height)*3 + var(--icon-bar-space)*2);
11 months ago
/* Height = 3 bars + 2 spaces */
transition: opacity 0.2s;
pointer-events: none;
10 months ago
transform-style: preserve-3d
11 months ago
}
.sticky-header-toggle__icon > span {
10 months ago
display: block;
width: 100%;
height: var(--icon-bar-height);
transition: transform 0.2s;
transform-origin: center;
background-color: var(--color--white);
}
11 months ago
.is-fixed .sticky-header-toggle {
cursor: pointer;
pointer-events: auto;
opacity: 1;
}
[aria-checked="true"] .sticky-header-toggle__icon > span:nth-child(1) {
10 months ago
transform: translateY(calc(var(--icon-bar-height) + var(--icon-bar-space))) rotate(-45deg);
}
11 months ago
[aria-checked="true"] .sticky-header-toggle__icon > span:nth-child(2) {
10 months ago
opacity: 0;
}
11 months ago
[aria-checked="true"] .sticky-header-toggle__icon > span:nth-child(3) {
10 months ago
transform: translateY(calc(0px - var(--icon-bar-height) - var(--icon-bar-space))) rotate(45deg);
}