446 lines
10 KiB
CSS
446 lines
10 KiB
CSS
|
/*
|
||
|
* 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.
|
||
|
*/
|
||
|
|
||
|
/* Override contextual links so we can position against .site-header. */
|
||
|
|
||
|
.search-block-form.contextual-region {
|
||
|
position: static;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper {
|
||
|
left: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper {
|
||
|
right: 0;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper {
|
||
|
margin-left: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper {
|
||
|
margin-right: 0;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper {
|
||
|
margin-right: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper {
|
||
|
margin-left: 0;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper {
|
||
|
padding-left: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper {
|
||
|
padding-right: 0;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper {
|
||
|
padding-right: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper {
|
||
|
padding-left: 0;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper {
|
||
|
border-left: solid 90px #313637;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper {
|
||
|
border-right: solid 90px #313637;
|
||
|
}
|
||
|
|
||
|
.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: 100vw;
|
||
|
max-width: 1570px;
|
||
|
height: 144px;
|
||
|
max-height: 0;
|
||
|
margin-top: 0;
|
||
|
margin-bottom: 0;
|
||
|
padding-top: 0;
|
||
|
padding-bottom: 0;
|
||
|
transition: all 0.2s;
|
||
|
background: #000
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper.is-active {
|
||
|
visibility: visible;
|
||
|
max-height: 144px;
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper form {
|
||
|
display: flex;
|
||
|
-ms-grid-column: 1;
|
||
|
-ms-grid-column-span: 13;
|
||
|
grid-column: 1 / 14;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper input[type="search"] {
|
||
|
padding-left: 216px;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper input[type="search"] {
|
||
|
padding-right: 216px;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper input[type="search"] {
|
||
|
padding-right: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper input[type="search"] {
|
||
|
padding-left: 0;
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper input[type="search"] {
|
||
|
width: calc(100% + 36px);
|
||
|
height: 144px;
|
||
|
padding-top: 0;
|
||
|
padding-bottom: 0;
|
||
|
transition: background-size 0.4s;
|
||
|
color: #fff;
|
||
|
border: solid 1px transparent;
|
||
|
box-shadow: none;
|
||
|
font-family: serif;
|
||
|
font-size: 32px;
|
||
|
-webkit-appearance: none
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper input[type="search"]::-ms-clear {
|
||
|
width: 40px;
|
||
|
opacity: 0.5;
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper input[type="search"]:focus {
|
||
|
outline: 0
|
||
|
|
||
|
/*
|
||
|
We normally indicate focus by animating background-image width. This isn't
|
||
|
available in IE11 when in Windows high contrast mode.
|
||
|
*/
|
||
|
}
|
||
|
|
||
|
@media screen and (-ms-high-contrast: active) {
|
||
|
|
||
|
.search-wide__wrapper input[type="search"]:focus {
|
||
|
border-bottom-width: 9px
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper .form-item-keys {
|
||
|
flex-grow: 1;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper .form-actions {
|
||
|
display: flex;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper .search-form__submit {
|
||
|
margin-left: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper .search-form__submit {
|
||
|
margin-right: 0;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper .search-form__submit {
|
||
|
margin-right: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper .search-form__submit {
|
||
|
margin-left: 0;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper .search-form__submit {
|
||
|
padding-left: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper .search-form__submit {
|
||
|
padding-right: 0;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper .search-form__submit {
|
||
|
padding-right: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper .search-form__submit {
|
||
|
padding-left: 0;
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper .search-form__submit {
|
||
|
position: relative;
|
||
|
overflow: hidden;
|
||
|
-ms-grid-row-align: stretch;
|
||
|
align-self: stretch;
|
||
|
width: 100px;
|
||
|
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 will not output either background
|
||
|
images or SVGs that are nested directly within a <button> element, so we add a <span>.
|
||
|
*/
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__wrapper .search-form__submit .icon--search {
|
||
|
right: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper .search-form__submit .icon--search {
|
||
|
left: 0;
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper .search-form__submit .icon--search {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
display: block;
|
||
|
width: 24px; /* 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"] .search-wide__wrapper .search-form__submit .icon--search:after {
|
||
|
left: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper .search-form__submit .icon--search:after {
|
||
|
right: 0;
|
||
|
}
|
||
|
|
||
|
.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 9px #2494db;
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper .search-form__submit:focus {
|
||
|
outline: 0;
|
||
|
box-shadow: none
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper .search-form__submit:focus span:after {
|
||
|
transform: scaleX(1);
|
||
|
}
|
||
|
|
||
|
@media screen and (-ms-high-contrast: active) {
|
||
|
|
||
|
.search-wide__wrapper .search-form__submit:focus {
|
||
|
border-bottom-width: 9px
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper .search-form__submit:focus span:after {
|
||
|
content: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media screen and (-ms-high-contrast: active) {
|
||
|
|
||
|
.search-wide__wrapper .search-form__submit {
|
||
|
/* IE11's high contrast show will not show the background image, so we show the text. */
|
||
|
}
|
||
|
.search-wide__wrapper .search-form__submit .visually-hidden {
|
||
|
position: static;
|
||
|
overflow: visible;
|
||
|
clip: auto;
|
||
|
width: auto;
|
||
|
height: auto;
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
.search-wide__wrapper .search-form__submit {
|
||
|
|
||
|
/* Edge's high contrast does show the background image, so we hide it. */
|
||
|
}
|
||
|
.search-wide__wrapper .search-form__submit .icon--search {
|
||
|
display: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .search-wide__container {
|
||
|
padding-right: 36px;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__container {
|
||
|
padding-left: 36px;
|
||
|
}
|
||
|
|
||
|
.search-wide__container {
|
||
|
max-width: 1350px;
|
||
|
}
|
||
|
|
||
|
.search-wide__grid {
|
||
|
display: -ms-grid;
|
||
|
display: grid;
|
||
|
-ms-grid-columns: (1fr)[14];
|
||
|
grid-template-columns: repeat(14, 1fr);
|
||
|
grid-column-gap: 36px;
|
||
|
}
|
||
|
|
||
|
/* Override specificity from container-inline.module.css */
|
||
|
|
||
|
.container-inline .search-wide__container {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
.container-inline .search-wide__grid {
|
||
|
display: -ms-grid;
|
||
|
display: grid;
|
||
|
}
|
||
|
|
||
|
.header-nav__search-button {
|
||
|
position: relative;
|
||
|
display: none;
|
||
|
width: 54px;
|
||
|
height: 108px;
|
||
|
cursor: pointer;
|
||
|
border: 0;
|
||
|
background: transparent;
|
||
|
-webkit-appearance: none
|
||
|
}
|
||
|
|
||
|
.header-nav__search-button:focus {
|
||
|
outline: 0
|
||
|
}
|
||
|
|
||
|
.header-nav__search-button:focus:after {
|
||
|
transform: scaleX(0.5);
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .header-nav__search-button:after {
|
||
|
left: 0;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .header-nav__search-button:after {
|
||
|
right: 0;
|
||
|
}
|
||
|
|
||
|
.header-nav__search-button:after {
|
||
|
position: absolute;
|
||
|
bottom: 0;
|
||
|
width: 100%;
|
||
|
height: 0;
|
||
|
content: "";
|
||
|
transition: transform 0.2s;
|
||
|
transform: scaleX(0);
|
||
|
border-top: solid 9px #2494db;
|
||
|
}
|
||
|
|
||
|
.header-nav__search-button[aria-expanded="true"] {
|
||
|
background: #000
|
||
|
}
|
||
|
|
||
|
.header-nav__search-button[aria-expanded="true"] .header-nav__search-button__close:before,
|
||
|
.header-nav__search-button[aria-expanded="true"] .header-nav__search-button__close:after {
|
||
|
position: absolute;
|
||
|
/* stylelint-disable csstools/use-logical */
|
||
|
top: 50%;
|
||
|
left: 50%;
|
||
|
/* stylelint-enable csstools/use-logical */
|
||
|
width: 27px;
|
||
|
height: 0;
|
||
|
content: "";
|
||
|
border-top: solid 2px #fff;
|
||
|
}
|
||
|
|
||
|
.header-nav__search-button[aria-expanded="true"] .header-nav__search-button__close:before {
|
||
|
transform: translate(-50%, -50%) rotate(-45deg);
|
||
|
}
|
||
|
|
||
|
.header-nav__search-button[aria-expanded="true"] .header-nav__search-button__close:after {
|
||
|
transform: translate(-50%, -50%) rotate(45deg);
|
||
|
}
|
||
|
|
||
|
.header-nav__search-button[aria-expanded="true"] svg {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .header-nav__search-button svg {
|
||
|
margin-left: auto;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .header-nav__search-button svg {
|
||
|
margin-right: auto;
|
||
|
}
|
||
|
|
||
|
[dir="ltr"] .header-nav__search-button svg {
|
||
|
margin-right: auto;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .header-nav__search-button svg {
|
||
|
margin-left: auto;
|
||
|
}
|
||
|
|
||
|
/* Provide rudimentary access to site search if JS is disabled. */
|
||
|
|
||
|
html:not(.js) .search-block-form:focus-within .search-wide__wrapper {
|
||
|
visibility: visible;
|
||
|
max-height: 144px;
|
||
|
}
|
||
|
|
||
|
/* Necessary to override specificity of transpiled PostCSS properties from default input focus styling. */
|
||
|
|
||
|
[dir] .search-wide__wrapper input[type="search"] {
|
||
|
background-color: transparent;
|
||
|
background-image: linear-gradient(#2494db, #2494db); /* Two values are needed for IE11 support. */
|
||
|
background-repeat: no-repeat;
|
||
|
background-position: bottom left; /* LTR */
|
||
|
background-size: 0% 10px
|
||
|
}
|
||
|
|
||
|
[dir] .search-wide__wrapper input[type="search"]:focus {
|
||
|
background-size: 100% 9px;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper input[type="search"] {
|
||
|
background-position: bottom right;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .search-wide__wrapper .search-form__submit .icon--search:after {
|
||
|
transform-origin: right;
|
||
|
}
|
||
|
|
||
|
@media (min-width: 1200px) {
|
||
|
|
||
|
body:not(.is-always-mobile-nav) .search-wide__wrapper,
|
||
|
body:not(.is-always-mobile-nav) .header-nav__search-button {
|
||
|
display: block
|
||
|
}
|
||
|
}
|