Make header search form responsive

On narrow displays, hide all the form elements except the submit
button.  This submits the form with an empty query, effectively
acting as a link to the search page.

Addresses #774