@ -10,31 +10,60 @@
* Header Search Narrow Block .
* Header Search Narrow 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. */
. block-search-narrow {
. block-search-narrow {
margin-inline : calc ( -1 * var ( --sp ) ) ;
margin-left : calc ( var ( --sp ) * -1 ) ;
margin-block-end : var ( --sp2 ) ;
margin-right : calc ( var ( --sp ) * -1 ) ;
background : var ( --color--black ) ;
margin-bottom : var ( --sp2 ) ;
background : var ( --color--black )
}
}
. block-search-narrow . search-block-form {
. block-search-narrow . search-block-form {
display : flex ;
display : flex ;
}
}
. block-search-narrow . form-item {
. block-search-narrow . form-item {
flex-grow : 1 ;
flex-grow : 1 ;
margin : 0 ;
margin : 0 ;
}
}
. block-search-narrow . form-actions {
. block-search-narrow . form-actions {
margin : 0 ;
margin : 0 ;
}
[ dir = "ltr" ] . block-search-narrow input [ type = "search" ] {
padding-left : var ( --sp )
}
[ dir = "rtl" ] . block-search-narrow input [ type = "search" ] {
padding-right : var ( --sp )
}
[ dir = "ltr" ] . block-search-narrow input [ type = "search" ] {
padding-right : var ( --sp )
}
[ dir = "rtl" ] . block-search-narrow input [ type = "search" ] {
padding-left : var ( --sp )
}
}
. block-search-narrow input [ type = "search" ] {
. block-search-narrow input [ type = "search" ] {
width : calc ( 100 % + var ( --sp2 ) ) ;
width : calc ( 100 % + var ( --sp2 ) ) ;
height : calc ( 3 * var ( --sp ) ) ;
height : calc ( var ( --sp ) * 3 ) ;
padding-block : 0 ;
padding-top : 0 ;
padding-inline-start : var ( --sp ) ;
padding-bottom : 0 ;
padding-inline-end : var ( --sp ) ;
transition : background-size 0 . 4s ;
transition : background-size 0 . 4s ;
color : var ( --color--white ) ;
color : var ( --color--white ) ;
border : solid 1px transparent ;
border : solid 1px transparent ;
@ -46,49 +75,102 @@
box-shadow : none ;
box-shadow : none ;
font-family : var ( --font-serif ) ;
font-family : var ( --font-serif ) ;
font-size : 1rem ;
font-size : 1rem ;
-webkit-appearance : none ;
-webkit-appearance : none
}
}
. block-search-narrow input [ type = "search" ] : focus {
. block-search-narrow input [ type = "search" ] : focus {
outline : solid 4px transparent ;
outline : solid 4px transparent ;
outline-offset : -4px ;
outline-offset : -4px ;
background-size : 100 % 0 . 3125rem ;
background-size : 100 % 0 . 3125rem ;
}
}
@ media ( min-width : 43 . 75rem ) {
@ media ( min-width : 43 . 75rem ) {
. block-search-narrow input [ type = "search" ] {
height : calc ( 4 * var ( --sp ) ) ;
[ dir = "ltr" ] . block-search-narrow input [ type = "search" ] {
padding-inline-start : var ( --sp2 ) ;
padding-left : var ( --sp2 )
padding-inline-end : var ( --sp2 ) ;
}
[ dir = "rtl" ] . block-search-narrow input [ type = "search" ] {
padding-right : var ( --sp2 )
}
[ dir = "ltr" ] . block-search-narrow input [ type = "search" ] {
padding-right : var ( --sp2 )
}
[ dir = "rtl" ] . block-search-narrow input [ type = "search" ] {
padding-left : var ( --sp2 )
}
. block-search-narrow input [ type = "search" ] {
height : calc ( var ( --sp ) * 4 )
}
}
}
[ dir = "ltr" ] . block-search-narrow . search-form__submit {
margin-left : 0
}
[ dir = "rtl" ] . block-search-narrow . search-form__submit {
margin-right : 0
}
[ dir = "ltr" ] . block-search-narrow . search-form__submit {
margin-right : 0
}
[ dir = "rtl" ] . block-search-narrow . search-form__submit {
margin-left : 0
}
[ dir = "ltr" ] . block-search-narrow . search-form__submit {
padding-left : 0
}
[ dir = "rtl" ] . block-search-narrow . search-form__submit {
padding-right : 0
}
[ dir = "ltr" ] . block-search-narrow . search-form__submit {
padding-right : 0
}
[ dir = "rtl" ] . block-search-narrow . search-form__submit {
padding-left : 0
}
}
. block-search-narrow . search-form__submit {
. block-search-narrow . search-form__submit {
position : relative ;
position : relative ;
overflow : hidden ;
overflow : hidden ;
-ms-grid-row-align : stretch ;
align-self : stretch ;
align-self : stretch ;
width : var ( --sp3 ) ;
width : var ( --sp3 ) ;
height : auto ;
height : auto ;
margin-block : 0 ;
margin-top : 0 ;
margin-inline-start : 0 ;
margin-bottom : 0 ;
margin-inline-end : 0 ;
padding-top : 0 ;
padding-block : 0 ;
padding-bottom : 0 ;
padding-inline-start : 0 ;
padding-inline-end : 0 ;
cursor : pointer ;
cursor : pointer ;
border-color : transparent ;
border-color : transparent ;
background-color : transparent ;
background-color : transparent
/ *
/ *
When in Windows high contrast mode , FF will not output either background
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 > .
images or SVGs that are nested directly within a < button > element , so we add a < span > .
* /
* /
}
[ dir = "ltr" ] . block-search-narrow . search-form__submit . icon--search {
left : 0
}
[ dir = "rtl" ] . block-search-narrow . search-form__submit . icon--search {
right : 0
}
}
. block-search-narrow . search-form__submit . icon--search {
. block-search-narrow . search-form__submit . icon--search {
position : absolute ;
position : absolute ;
inset-block-start : 0 ;
top : 0 ;
inset-inline-start : 0 ;
display : block ;
display : block ;
width : 100 % ; /* Width of the SVG background image. */
width : 100 % ; /* Width of the SVG background image. */
height : 100 % ;
height : 100 % ;
@ -96,62 +178,75 @@
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-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-repeat : no-repeat ;
background-position : center ;
background-position : center ;
background-size : auto ;
background-size : auto
}
[ dir = "ltr" ] . block-search-narrow . search-form__submit . icon--search :: after {
left : 0
}
[ dir = "rtl" ] . block-search-narrow . search-form__submit . icon--search :: after {
right : 0
}
}
. block-search-narrow . search-form__submit . icon--search :: after {
. block-search-narrow . search-form__submit . icon--search :: after {
position : absolute ;
position : absolute ;
inset-block-end : 0 ;
bottom : 0 ;
inset-inline-start : 0 ;
width : 100 % ;
width : 100 % ;
height : 0 ;
height : 0 ;
content : "" ;
content : "" ;
transition : transform 0 . 2s ;
transition : transform 0 . 2s ;
transform : scaleX ( 0 ) ;
transform : scaleX ( 0 ) ;
transform-origin : left ; /* LTR */
transform-origin : left ; /* LTR */
border-block-start : solid 0 . 3125rem var ( --color--primary-50 ) ;
border-top : solid 5px var ( --color--primary-50 ) ;
}
}
@ media ( forced-colors : active ) {
@ media ( forced-colors : active ) {
. block-search-narrow . search-form__submit . icon--search {
. block-search-narrow . search-form__submit . icon--search {
background : buttontext ;
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" ) ;
-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" ) ;
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 ;
-webkit-mask-repeat : no-repeat ;
mask-repeat : no-repeat ;
mask-repeat : no-repeat ;
-webkit-mask-position : center ;
-webkit-mask-position : center ;
mask-position : center ;
mask-position : center
}
}
}
}
. block-search-narrow . search-form__submit : focus {
. block-search-narrow . search-form__submit : focus {
outline : solid 4px transparent ;
outline : solid 4px transparent ;
outline-offset : -4px ;
outline-offset : -4px ;
box-shadow : none ;
box-shadow : none
}
}
. block-search-narrow . search-form__submit : focus span :: after {
. block-search-narrow . search-form__submit : focus span :: after {
transform : scaleX ( 1 ) ;
transform : scaleX ( 1 ) ;
}
}
@ media screen and ( -ms-high-contrast : active ) {
@ 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 {
border-bottom-width : var ( --sp0-5 )
}
}
. block-search-narrow . search-form__submit : focus span :: after {
. block-search-narrow . search-form__submit : focus span :: after {
content : none ;
content : none ;
}
}
}
}
@ media ( min-width : 43 . 75rem ) {
@ media ( min-width : 43 . 75rem ) {
. block-search-narrow . search-form__submit {
width : 5rem ;
. block-search-narrow . search-form__submit {
width : 5rem
}
}
}
}
@ media screen and ( -ms-high-contrast : active ) {
@ media screen and ( -ms-high-contrast : active ) {
. block-search-narrow . search-form__submit {
/* IE11's high contrast show will not show the background image, so we show the text. */
/* IE11's high contrast show will not show the background image, so we show the text. */
}
. block-search-narrow . search-form__submit . visually-hidden {
. block-search-narrow . search-form__submit . visually-hidden {
position : static ;
position : static ;
overflow : visible ;
overflow : visible ;
@ -161,31 +256,50 @@
text-align : center ;
text-align : center ;
}
}
. block-search-narrow . search-form__submit {
/* Edge's high contrast does show the background image, so we hide it. */
/* Edge's high contrast does show the background image, so we hide it. */
}
. block-search-narrow . search-form__submit . icon--search {
. block-search-narrow . search-form__submit . icon--search {
display : none ;
display : none ;
}
}
}
}
/* 500px is the width of the primary nav at mobile. */
. block-search-narrow {
/* 500px is the width of the primary nav at mobile. */
}
@ media ( min-width : 31 . 25rem ) {
@ media ( min-width : 31 . 25rem ) {
. block-search-narrow {
margin-inline-start : 0 ;
[ dir = "ltr" ] . block-search-narrow {
margin-inline-end : 0 ;
margin-left : 0
}
}
}
@ media ( min-width : 75rem ) {
[ dir = "rtl" ] . block-search-narrow {
body : not ( . is-always-mobile-nav ) . block-search-narrow {
margin-right : 0
display : none ;
}
}
[ dir = "ltr" ] . block-search-narrow {
margin-right : 0
}
[ dir = "rtl" ] . block-search-narrow {
margin-left : 0
}
}
@ media ( min-width : 75rem ) {
body : not ( . is-always-mobile-nav ) . block-search-narrow {
display : none
}
}
}
[ dir = "rtl" ] . block-search-narrow input [ type = "search" ] {
[ dir = "rtl" ] . block-search-narrow input [ type = "search" ] {
background-position : bottom right ;
background-position : bottom right ;
}
}
[ dir = "rtl" ] . block-search-narrow . search-form__submit . icon--search :: after {
[ dir = "rtl" ] . block-search-narrow . search-form__submit . icon--search :: after {
transform-origin : right ;
transform-origin : right ;
}
}