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.
192 lines
5.8 KiB
192 lines
5.8 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
|
||
|
* Header Search Narrow Block.
|
||
|
*/
|
||
|
|
||
|
.block-search-narrow {
|
||
|
margin-inline: calc(-1 * var(--sp));
|
||
|
margin-block-end: var(--sp2);
|
||
|
background: var(--color--black);
|
||
|
}
|
||
|
|
||
|
.block-search-narrow .search-block-form {
|
||
|
display: flex;
|
||
|
}
|
||
|
|
||
|
.block-search-narrow .form-item {
|
||
|
flex-grow: 1;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.block-search-narrow .form-actions {
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.block-search-narrow input[type="search"] {
|
||
|
width: calc(100% + var(--sp2));
|
||
|
height: calc(3 * var(--sp));
|
||
|
padding-block: 0;
|
||
|
padding-inline-start: var(--sp);
|
||
|
padding-inline-end: var(--sp);
|
||
|
transition: background-size 0.4s;
|
||
|
color: var(--color--white);
|
||
|
border: solid 1px transparent;
|
||
|
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.3125rem;
|
||
|
box-shadow: none;
|
||
|
font-family: var(--font-serif);
|
||
|
font-size: 1rem;
|
||
|
-webkit-appearance: none;
|
||
|
}
|
||
|
|
||
|
.block-search-narrow input[type="search"]:focus {
|
||
|
outline: solid 4px transparent;
|
||
|
outline-offset: -4px;
|
||
|
background-size: 100% 0.3125rem;
|
||
|
}
|
||
|
|
||
|
@media (min-width: 43.75rem) {
|
||
|
.block-search-narrow input[type="search"] {
|
||
|
height: calc(4 * var(--sp));
|
||
|
padding-inline-start: var(--sp2);
|
||
|
padding-inline-end: var(--sp2);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.block-search-narrow .search-form__submit {
|
||
|
position: relative;
|
||
|
overflow: hidden;
|
||
|
align-self: stretch;
|
||
|
width: var(--sp3);
|
||
|
height: auto;
|
||
|
margin-block: 0;
|
||
|
margin-inline-start: 0;
|
||
|
margin-inline-end: 0;
|
||
|
padding-block: 0;
|
||
|
padding-inline-start: 0;
|
||
|
padding-inline-end: 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>.
|
||
|
*/
|
||
|
}
|
||
|
|
||
|
.block-search-narrow .search-form__submit .icon--search {
|
||
|
position: absolute;
|
||
|
inset-block-start: 0;
|
||
|
inset-inline-start: 0;
|
||
|
display: block;
|
||
|
width: 100%; /* 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: auto;
|
||
|
}
|
||
|
|
||
|
.block-search-narrow .search-form__submit .icon--search::after {
|
||
|
position: absolute;
|
||
|
inset-block-end: 0;
|
||
|
inset-inline-start: 0;
|
||
|
width: 100%;
|
||
|
height: 0;
|
||
|
content: "";
|
||
|
transition: transform 0.2s;
|
||
|
transform: scaleX(0);
|
||
|
transform-origin: left; /* LTR */
|
||
|
border-block-start: solid 0.3125rem var(--color--primary-50);
|
||
|
}
|
||
|
|
||
|
@media (forced-colors: active) {
|
||
|
.block-search-narrow .search-form__submit .icon--search {
|
||
|
background: buttontext;
|
||
|
-webkit-mask-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");
|
||
|
mask-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");
|
||
|
-webkit-mask-repeat: no-repeat;
|
||
|
mask-repeat: no-repeat;
|
||
|
-webkit-mask-position: center;
|
||
|
mask-position: center;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.block-search-narrow .search-form__submit:focus {
|
||
|
outline: solid 4px transparent;
|
||
|
outline-offset: -4px;
|
||
|
box-shadow: none;
|
||
|
}
|
||
|
|
||
|
.block-search-narrow .search-form__submit:focus span::after {
|
||
|
transform: scaleX(1);
|
||
|
}
|
||
|
|
||
|
@media screen and (-ms-high-contrast: active) {
|
||
|
.block-search-narrow .search-form__submit:focus {
|
||
|
border-bottom-width: var(--sp0-5);
|
||
|
}
|
||
|
|
||
|
.block-search-narrow .search-form__submit:focus span::after {
|
||
|
content: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (min-width: 43.75rem) {
|
||
|
.block-search-narrow .search-form__submit {
|
||
|
width: 5rem;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media screen and (-ms-high-contrast: active) {
|
||
|
/* IE11's high contrast show will not show the background image, so we show the text. */
|
||
|
.block-search-narrow .search-form__submit .visually-hidden {
|
||
|
position: static;
|
||
|
overflow: visible;
|
||
|
clip: auto;
|
||
|
width: auto;
|
||
|
height: auto;
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
/* Edge's high contrast does show the background image, so we hide it. */
|
||
|
.block-search-narrow .search-form__submit .icon--search {
|
||
|
display: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* 500px is the width of the primary nav at mobile. */
|
||
|
|
||
|
@media (min-width: 31.25rem) {
|
||
|
.block-search-narrow {
|
||
|
margin-inline-start: 0;
|
||
|
margin-inline-end: 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (min-width: 75rem) {
|
||
|
body:not(.is-always-mobile-nav) .block-search-narrow {
|
||
|
display: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .block-search-narrow input[type="search"] {
|
||
|
background-position: bottom right;
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] .block-search-narrow .search-form__submit .icon--search::after {
|
||
|
transform-origin: right;
|
||
|
}
|