From ad382c6a71b333d10509c1a02491c01bb97cee05 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Tue, 25 Jul 2017 16:11:25 +0200 Subject: [PATCH] MDL-59632 search: Style search box for boost --- lib/outputrenderers.php | 2 +- theme/boost/scss/moodle/search.scss | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 139e6f9d3db..29c5f2e95ab 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -3170,7 +3170,7 @@ EOD; array('role' => 'button', 'tabindex' => 0)); $formattrs = array('class' => 'search-input-form', 'action' => $CFG->wwwroot . '/search/index.php'); $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'), array('for' => 'id_q_' . $id, 'class' => 'accesshide')) . html_writer::tag('input', '', $inputattrs); diff --git a/theme/boost/scss/moodle/search.scss b/theme/boost/scss/moodle/search.scss index a125f5d92e0..615d18d0330 100644 --- a/theme/boost/scss/moodle/search.scss +++ b/theme/boost/scss/moodle/search.scss @@ -36,6 +36,7 @@ .search-input-wrapper > form > input { margin: 0; + height: 23px; } .search-input-wrapper form.expanded { -- 2.43.0