MDL-59632 search: Style search box for boost

This commit is contained in:
David Monllao 2017-07-25 16:11:25 +02:00
parent 229ae617c5
commit ad382c6a71
2 changed files with 2 additions and 1 deletions

View file

@ -3170,7 +3170,7 @@ EOD;
array('role' => 'button', 'tabindex' => 0)); array('role' => 'button', 'tabindex' => 0));
$formattrs = array('class' => 'search-input-form', 'action' => $CFG->wwwroot . '/search/index.php'); $formattrs = array('class' => 'search-input-form', 'action' => $CFG->wwwroot . '/search/index.php');
$inputattrs = array('type' => 'text', 'name' => 'q', 'placeholder' => get_string('search', 'search'), $inputattrs = array('type' => 'text', 'name' => 'q', 'placeholder' => get_string('search', 'search'),
'size' => 13, 'tabindex' => -1, 'id' => 'id_q_' . $id); 'size' => 13, 'tabindex' => -1, 'id' => 'id_q_' . $id, 'class' => 'form-control');
$contents = html_writer::tag('label', get_string('enteryoursearchquery', 'search'), $contents = html_writer::tag('label', get_string('enteryoursearchquery', 'search'),
array('for' => 'id_q_' . $id, 'class' => 'accesshide')) . html_writer::tag('input', '', $inputattrs); array('for' => 'id_q_' . $id, 'class' => 'accesshide')) . html_writer::tag('input', '', $inputattrs);

View file

@ -36,6 +36,7 @@
.search-input-wrapper > form > input { .search-input-wrapper > form > input {
margin: 0; margin: 0;
height: 23px;
} }
.search-input-wrapper form.expanded { .search-input-wrapper form.expanded {