@@ -163,35 +163,40 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
163
163
}
164
164
} , _defineProperty ( _headerContainer , theme . breakpoints . up ( 'lg' ) , {
165
165
'& .header__search--inner > .header__search--title' : {
166
- fontSize : '1.2rem !important' // Changed from 1.0 to match Drupal site.
166
+ fontSize : '1.25rem !important' // Changed from 1.0 to match Drupal site.
167
167
168
168
}
169
- } ) , _defineProperty ( _headerContainer , '& .header__search--inner > .form-item' , {
170
- width : '100%' ,
169
+ } ) , _defineProperty ( _headerContainer , '& .header__search--inner > div.search-api-form > form#search-api-form' , {
171
170
display : 'flex' ,
172
171
'-ms-flex-pack' : 'start' ,
173
172
justifyContent : 'flex-start' ,
174
173
'-ms-flex-align' : 'center' ,
175
- alignItems : 'center'
176
- } ) , _defineProperty ( _headerContainer , '& .header__search--inner > form.search-form' , {
174
+ alignItems : 'center' ,
175
+ width : '100%'
176
+ } ) , _defineProperty ( _headerContainer , '& .header__search--inner > div.search-api-form > form#search-api-form > .form-item' , {
177
+ width : '100%' ,
177
178
display : 'flex' ,
178
179
'-ms-flex-pack' : 'start' ,
179
180
justifyContent : 'flex-start' ,
180
181
'-ms-flex-align' : 'center' ,
181
182
alignItems : 'center' ,
183
+ margin : '20px 0'
184
+ } ) , _defineProperty ( _headerContainer , '& .header__search--inner > div.search-api-form' , {
182
185
width : '100%'
183
- } ) , _defineProperty ( _headerContainer , '& .header__search--inner > form .search-form > .form-item ' , {
184
- width : '100% '
185
- } ) , _defineProperty ( _headerContainer , '& .header__search--inner > form .search-form > .form-item > .search-form__input ' , {
186
+ } ) , _defineProperty ( _headerContainer , '& .header__search--inner > div .search-api- form > form#search-api-form > .form-actions.form-wrapper ' , {
187
+ display : 'flex '
188
+ } ) , _defineProperty ( _headerContainer , '& .header__search--inner > div .search-api- form > form#search-api-form > .form-item > .form-search ' , {
186
189
width : '100%' ,
190
+ height : '48px' ,
187
191
background : '#fff' ,
188
192
border : '1px solid #d7d9d9' ,
189
193
boxSizing : 'border-box' ,
190
194
borderRadius : '3px 0 0 3px' ,
191
- padding : '14px '
192
- } ) , _defineProperty ( _headerContainer , '& .header__search--inner > form .search-form > . search-form__actions > .search-form__button ' , {
195
+ padding : '12px 18px '
196
+ } ) , _defineProperty ( _headerContainer , '& .header__search--inner > div .search-api- form > form# search-api-form > .form-actions > .form-submit.button--search ' , {
193
197
borderRadius : '0px 3px 3px 0px' ,
194
- width : '60px' ,
198
+ width : '48px' ,
199
+ height : '48px' ,
195
200
background : '#0073cf' ,
196
201
border : '#0073cf 1px solid' ,
197
202
color : 'transparent !important' ,
@@ -200,11 +205,11 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
200
205
backgroundRepeat : 'no-repeat' ,
201
206
padding : '0.86rem 0' ,
202
207
transition : 'all 0.2s ease-in-out'
203
- } ) , _defineProperty ( _headerContainer , '& .header__search--inner > form .search-form > . search-form__actions > .search-form__button :hover' , {
208
+ } ) , _defineProperty ( _headerContainer , '& .header__search--inner > div .search-api- form > form# search-api-form > .form-actions > .form-submit.button--search :hover' , {
204
209
transition : 'all 0.2s ease-in-out' ,
205
210
backgroundColor : '#002c77' ,
206
211
border : '#002c77 1px solid'
207
- } ) , _defineProperty ( _headerContainer , '& .header__search--inner > form .search-form > label' , {
212
+ } ) , _defineProperty ( _headerContainer , '& .header__search--inner > div .search-api- form > form#search-api-form > .form-item > label' , {
208
213
fontWeight : 600 ,
209
214
fontSize : '20px' ,
210
215
margin : 'auto 2.6rem'
@@ -222,34 +227,50 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
222
227
fill : '#002c77' ,
223
228
transition : 'all 0.2s ease-in-out'
224
229
} ) , _defineProperty ( _headerContainer , theme . breakpoints . down ( 'md' ) , {
225
- '& nav#block-neon-main-menu > ul > li.siteSearch' : {
226
- padding : '0 1.5rem 0.5rem 1.5rem'
230
+ '& nav#block-neon-main-menu > ul.menu.menu--main > li.siteSearch' : {
231
+ padding : '0 1.875rem 0.625rem 1.875rem !important'
232
+ } ,
233
+ '& .search-form-mobile.isMobile' : {
234
+ display : 'flex' ,
235
+ '-ms-flex-pack' : 'start' ,
236
+ justifyContent : 'flex-start' ,
237
+ '-ms-flex-align' : 'center' ,
238
+ alignItems : 'center'
227
239
} ,
228
240
'& .search-form-mobile' : {
229
241
width : '100%'
230
242
} ,
231
- '& form.search-form' : {
243
+ '& .search- form-mobile > div .search-api-form > form#search-api -form' : {
232
244
display : 'flex' ,
233
245
'-ms-flex-pack' : 'start' ,
234
246
justifyContent : 'flex-start' ,
235
247
'-ms-flex-align' : 'center' ,
236
248
alignItems : 'center' ,
237
249
width : '100%'
238
250
} ,
239
- '& form .search-form > .form-item ' : {
251
+ '& .search-form-mobile > div.search-api-form ' : {
240
252
width : '100%'
241
253
} ,
242
- '& form .search-form > . form-item > .search-form__input ' : {
254
+ '& .search-form-mobile > div.search-api- form > form#search-api-form > .form-item ' : {
243
255
width : '100%' ,
256
+ margin : '20px 0'
257
+ } ,
258
+ '& .search-form-mobile > div.search-api-form > form#search-api-form > .form-item > .form-search' : {
259
+ width : '100%' ,
260
+ height : '48px' ,
244
261
background : '#fff' ,
245
262
border : '1px solid #d7d9d9' ,
246
263
boxSizing : 'border-box' ,
247
264
borderRadius : '3px 0 0 3px' ,
248
- padding : '0.88rem'
265
+ padding : '0.75rem 1.125rem'
266
+ } ,
267
+ '& .search-form-mobile > div.search-api-form > form#search-api-form > .form-actions.form-wrapper' : {
268
+ display : 'flex'
249
269
} ,
250
- '& form .search-form > .search-form__actions > . search-form__button ' : {
270
+ '& .search-form-mobile > div .search-api-form > form# search-api-form > .form-actions > .form-submit.button--search ' : {
251
271
borderRadius : '0px 3px 3px 0px' ,
252
- width : '60px' ,
272
+ width : '48px' ,
273
+ height : '48px' ,
253
274
background : '#0073cf' ,
254
275
border : '#0073cf 1px solid' ,
255
276
color : 'transparent !important' ,
@@ -259,12 +280,12 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
259
280
padding : '14px 0' ,
260
281
transition : 'all 0.2s ease-in-out'
261
282
} ,
262
- '& form .search-form > .search-form__actions > . search-form__button :hover' : {
283
+ '& .search-form-mobile > div .search-api-form > form# search-api-form > .form-actions > .form-submit.button--search :hover' : {
263
284
transition : 'all 0.2s ease-in-out' ,
264
285
backgroundColor : '#002c77' ,
265
286
border : '#002c77 1px solid'
266
287
} ,
267
- '& form.search-form > .form-item > label' : {
288
+ '& .search- form-mobile > div .search-api-form > form#search-api -form > .form-item > label' : {
268
289
display : 'none !important'
269
290
}
270
291
} ) , _headerContainer )
@@ -406,7 +427,7 @@ var NeonHeader = /*#__PURE__*/(0, _react.forwardRef)(function (props, headerRef)
406
427
attribs = _domNode$attribs === void 0 ? { } : _domNode$attribs ,
407
428
name = domNode . name ;
408
429
409
- if ( name === 'form' && attribs . class === 'search-form' ) {
430
+ if ( name === 'form' && attribs . id === 'search-api -form' ) {
410
431
var nextAttribs = { } ;
411
432
Object . keys ( attribs ) . forEach ( function ( attr ) {
412
433
applyAttribute ( nextAttribs , attribs , attr ) ;
0 commit comments