Moved search bar to top, and styled

Also add opencase_search as dependency to opencase because the css for it is in opencase/css (hopefully all this css can go into an opencase theme one day)
This commit is contained in:
Naomi 2018-11-09 13:16:47 +00:00
parent 4b14537dc4
commit 0efab1af06
4 changed files with 16 additions and 2 deletions

View File

@ -16,3 +16,16 @@ body {
.js-form-item.form-item.js-form-type-checkbox.form-type-checkbox.js-form-item-new-revision.form-item-new-revision { .js-form-item.form-item.js-form-type-checkbox.form-type-checkbox.js-form-item-new-revision.form-item-new-revision {
display: none; display: none;
} }
/* Style the search box in header bar. */
#block-exposedformactor-searchpage-1 {
top: -20px;
}
#block-exposedformactor-searchpage-1 #edit-actions {
padding-top: 0;
}
#block-exposedformactor-searchpage-1 .form-text {
width: 200px;
}

View File

@ -9,7 +9,7 @@ dependencies:
- bartik - bartik
id: exposedformactor_searchpage_1 id: exposedformactor_searchpage_1
theme: bartik theme: bartik
region: sidebar_first region: header
weight: -9 weight: -9
provider: null provider: null
plugin: 'views_exposed_filter_block:actor_search-page_1' plugin: 'views_exposed_filter_block:actor_search-page_1'

View File

@ -554,7 +554,7 @@ display:
expose: expose:
operator_id: search_api_fulltext_op operator_id: search_api_fulltext_op
label: 'Search by Name' label: 'Search by Name'
description: 'Type at least 3 letters of a first or last name and press enter.' description: 'Type at least 3 letters and press enter.'
use_operator: false use_operator: false
operator: search_api_fulltext_op operator: search_api_fulltext_op
identifier: search_api_fulltext identifier: search_api_fulltext

View File

@ -5,5 +5,6 @@ core: 8.x
package: 'OpenCase' package: 'OpenCase'
dependencies: dependencies:
- opencase_entities - opencase_entities
- opencase_search
libraries: libraries:
- opencase/opencase-lib - opencase/opencase-lib