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.
434 lines
10 KiB
434 lines
10 KiB
/* |
|
* DO NOT EDIT THIS FILE. |
|
* See the following change record for more information, |
|
* https://www.drupal.org/node/3084859 |
|
* @preserve |
|
*/ |
|
|
|
/** |
|
* @file |
|
* Header Search Wide Block. |
|
*/ |
|
|
|
/* |
|
* 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. */ |
|
|
|
/* Override contextual links so we can position against .site-header. */ |
|
|
|
.block-search-wide.contextual-region { |
|
position: static; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper { |
|
left: calc(var(--content-left)*-1); |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper { |
|
right: calc(var(--content-left)*-1); |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper { |
|
margin-left: 0; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper { |
|
margin-right: 0; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper { |
|
margin-right: 0; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper { |
|
margin-left: 0; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper { |
|
padding-left: 0; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper { |
|
padding-right: 0; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper { |
|
padding-right: 0; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper { |
|
padding-left: 0; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper { |
|
border-left: solid var(--content-left) var(--color--gray-20); |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper { |
|
border-right: solid var(--content-left) var(--color--gray-20); |
|
} |
|
|
|
.block-search-wide__wrapper { |
|
position: absolute; |
|
z-index: 1; /* Ensure left border shows above social region in IE11. */ |
|
top: 100%; |
|
display: none; |
|
visibility: hidden; |
|
overflow: hidden; |
|
width: calc(100% + var(--content-left)); |
|
max-width: var(--max-bg-color); |
|
height: var(--sp8); |
|
max-height: 0; |
|
margin-top: 0; |
|
margin-bottom: 0; |
|
padding-top: 0; |
|
padding-bottom: 0; |
|
transition: all 0.2s; |
|
background: var(--color--black) |
|
} |
|
|
|
.block-search-wide__wrapper.is-active { |
|
visibility: visible; |
|
max-height: var(--sp8); |
|
} |
|
|
|
.block-search-wide__wrapper form { |
|
display: flex; |
|
-ms-grid-column: 1; |
|
-ms-grid-column-span: 13; |
|
grid-column: 1 / 14; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper input[type="search"] { |
|
padding-left: var(--sp12); |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper input[type="search"] { |
|
padding-right: var(--sp12); |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper input[type="search"] { |
|
padding-right: 0; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper input[type="search"] { |
|
padding-left: 0; |
|
} |
|
|
|
.block-search-wide__wrapper input[type="search"] { |
|
width: calc(100% + var(--sp2)); |
|
height: var(--sp8); |
|
padding-top: 0; |
|
padding-bottom: 0; |
|
transition: background-size 0.4s; |
|
color: var(--color--white); |
|
border: solid 1px transparent; |
|
box-shadow: none; |
|
font-family: var(--font-serif); |
|
font-size: 2rem; |
|
-webkit-appearance: none |
|
} |
|
|
|
.block-search-wide__wrapper input[type="search"]:focus { |
|
outline: solid 4px transparent; |
|
outline-offset: -4px; |
|
} |
|
|
|
.block-search-wide__wrapper .form-item-keys { |
|
flex-grow: 1; |
|
margin: 0; |
|
} |
|
|
|
.block-search-wide__wrapper .form-actions { |
|
display: flex; |
|
margin: 0; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper .search-form__submit { |
|
margin-left: 0; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper .search-form__submit { |
|
margin-right: 0; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper .search-form__submit { |
|
margin-right: 0; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper .search-form__submit { |
|
margin-left: 0; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper .search-form__submit { |
|
padding-left: 0; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper .search-form__submit { |
|
padding-right: 0; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper .search-form__submit { |
|
padding-right: 0; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper .search-form__submit { |
|
padding-left: 0; |
|
} |
|
|
|
.block-search-wide__wrapper .search-form__submit { |
|
position: relative; |
|
overflow: hidden; |
|
-ms-grid-row-align: stretch; |
|
align-self: stretch; |
|
width: 6.25rem; |
|
height: auto; |
|
margin-top: 0; |
|
margin-bottom: 0; |
|
padding-top: 0; |
|
padding-bottom: 0; |
|
cursor: pointer; |
|
border-color: transparent; |
|
background-color: transparent |
|
|
|
/* |
|
When in Windows high contrast mode, FF will not output either background |
|
images or SVGs that are nested directly within a <button> element, so we add a <span>. |
|
*/ |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper .search-form__submit .icon--search { |
|
right: 0; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper .search-form__submit .icon--search { |
|
left: 0; |
|
} |
|
|
|
.block-search-wide__wrapper .search-form__submit .icon--search { |
|
position: absolute; |
|
top: 0; |
|
display: block; |
|
width: 1.5rem; /* Width of the SVG background image. */ |
|
height: 100%; |
|
pointer-events: none; |
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e"); |
|
background-repeat: no-repeat; |
|
background-position: center; |
|
background-size: contain |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__wrapper .search-form__submit .icon--search::after { |
|
left: 0; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper .search-form__submit .icon--search::after { |
|
right: 0; |
|
} |
|
|
|
.block-search-wide__wrapper .search-form__submit .icon--search::after { |
|
position: absolute; |
|
bottom: 0; |
|
width: 100%; |
|
height: 0; |
|
content: ""; |
|
transition: transform 0.2s; |
|
transform: scaleX(0); |
|
transform-origin: left; |
|
border-top: solid var(--sp0-5) var(--color--primary-50); |
|
} |
|
|
|
.block-search-wide__wrapper .search-form__submit:focus { |
|
outline: solid 4px transparent; |
|
outline-offset: -4px; |
|
box-shadow: none |
|
} |
|
|
|
.block-search-wide__wrapper .search-form__submit:focus span::after { |
|
transform: scaleX(1); |
|
} |
|
|
|
@media screen and (-ms-high-contrast: active) { |
|
|
|
.block-search-wide__wrapper .search-form__submit:focus { |
|
border-bottom-width: var(--sp0-5) |
|
} |
|
|
|
.block-search-wide__wrapper .search-form__submit:focus span::after { |
|
content: none; |
|
} |
|
} |
|
|
|
@media screen and (-ms-high-contrast: active) { |
|
|
|
.block-search-wide__wrapper .search-form__submit { |
|
/* Edge's high contrast does show the background image, so we hide it. */ |
|
} |
|
.block-search-wide__wrapper .search-form__submit .icon--search { |
|
display: none; |
|
} |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__container { |
|
padding-right: var(--sp2); |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__container { |
|
padding-left: var(--sp2); |
|
} |
|
|
|
.block-search-wide__container { |
|
max-width: var(--max-width); |
|
} |
|
|
|
.block-search-wide__grid { |
|
display: -ms-grid; |
|
display: grid; |
|
-ms-grid-columns: (1fr)[var(--grid-col-count)]; |
|
grid-template-columns: repeat(var(--grid-col-count), 1fr); |
|
grid-column-gap: var(--grid-gap); |
|
} |
|
|
|
/* Override specificity from container-inline.module.css */ |
|
|
|
.container-inline .block-search-wide__container { |
|
display: block; |
|
} |
|
|
|
.container-inline .block-search-wide__grid { |
|
display: -ms-grid; |
|
display: grid; |
|
} |
|
|
|
.block-search-wide__button { |
|
position: relative; |
|
display: none; |
|
width: var(--sp3); |
|
height: var(--sp6); |
|
cursor: pointer; |
|
color: var(--color-text-neutral-loud); /* Affects SVG search icon. */ |
|
border: 0; |
|
background: transparent; |
|
-webkit-appearance: none |
|
} |
|
|
|
.block-search-wide__button:focus { |
|
position: relative; |
|
outline: 0 |
|
} |
|
|
|
.block-search-wide__button:focus::after { |
|
position: absolute; |
|
top: 50%; |
|
left: 50%; |
|
width: 80%; |
|
height: var(--sp3); |
|
content: ""; |
|
transform: translate(-50%, -50%); |
|
border: solid 2px var(--color--primary-50); |
|
border-radius: 0.25rem; |
|
} |
|
|
|
.block-search-wide__button[aria-expanded="true"] { |
|
background: var(--color--black) |
|
} |
|
|
|
.block-search-wide__button[aria-expanded="true"]:focus::after { |
|
border-color: var(--color--white); |
|
} |
|
|
|
.block-search-wide__button[aria-expanded="true"] .block-search-wide__button-close::before, |
|
.block-search-wide__button[aria-expanded="true"] .block-search-wide__button-close::after { |
|
position: absolute; |
|
top: 50%; |
|
left: 50%; |
|
width: var(--sp1-5); |
|
height: 0; |
|
content: ""; |
|
border-top: solid 2px var(--color--white); |
|
} |
|
|
|
.block-search-wide__button[aria-expanded="true"] .block-search-wide__button-close::before { |
|
transform: translate(-50%, -50%) rotate(-45deg); |
|
} |
|
|
|
.block-search-wide__button[aria-expanded="true"] .block-search-wide__button-close::after { |
|
transform: translate(-50%, -50%) rotate(45deg); |
|
} |
|
|
|
.block-search-wide__button[aria-expanded="true"] svg { |
|
display: none; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__button svg { |
|
margin-left: auto; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__button svg { |
|
margin-right: auto; |
|
} |
|
|
|
[dir="ltr"] .block-search-wide__button svg { |
|
margin-right: auto; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__button svg { |
|
margin-left: auto; |
|
} |
|
|
|
@media (forced-colors: active) { |
|
|
|
.block-search-wide__button { |
|
background: ButtonFace |
|
} |
|
|
|
.block-search-wide__button path { |
|
fill: ButtonText; |
|
} |
|
} |
|
|
|
/* Provide rudimentary access to site search if JS is disabled. */ |
|
|
|
html:not(.js) .search-block-form:focus-within .block-search-wide__wrapper { |
|
visibility: visible; |
|
max-height: var(--sp8); |
|
} |
|
|
|
/* Necessary to override specificity of transpiled PostCSS properties from default input focus styling. */ |
|
|
|
[dir] .block-search-wide__wrapper input[type="search"] { |
|
background-color: transparent; |
|
background-image: linear-gradient(var(--color--primary-50), var(--color--primary-50)); /* Two values are needed for IE11 support. */ |
|
background-repeat: no-repeat; |
|
background-position: bottom left; /* LTR */ |
|
background-size: 0% 0.625rem |
|
} |
|
|
|
[dir] .block-search-wide__wrapper input[type="search"]:focus { |
|
background-size: 100% var(--sp0-5); |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper input[type="search"] { |
|
background-position: bottom right; |
|
} |
|
|
|
[dir="rtl"] .block-search-wide__wrapper .search-form__submit .icon--search::after { |
|
transform-origin: right; |
|
} |
|
|
|
@media (min-width: 75rem) { |
|
|
|
body:not(.is-always-mobile-nav) .block-search-wide__wrapper, |
|
body:not(.is-always-mobile-nav) .block-search-wide__button { |
|
display: block |
|
} |
|
}
|
|
|