Commit 9a66a5a3 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

autocomplete styling added

parent f459f067
......@@ -1195,3 +1195,39 @@ input[type=file] {
padding: 5px;
display: none;
}
/**
* For autocomplete.js (https://github.com/algolia/autocomplete.js#look-and-feel)
*/
.algolia-autocomplete {
width: 100%;
}
.algolia-autocomplete .aa-input, .algolia-autocomplete .aa-hint {
width: 100%;
}
.algolia-autocomplete .aa-hint {
color: #999;
}
.algolia-autocomplete .aa-dropdown-menu {
width: 100%;
background-color: #fff;
border: 1px solid #999;
border-top: none;
}
.algolia-autocomplete .aa-dropdown-menu .aa-suggestion {
cursor: pointer;
padding: 5px 4px;
}
.algolia-autocomplete .aa-dropdown-menu .aa-suggestion.aa-cursor {
background-color: #B2D7FF;
}
.algolia-autocomplete .aa-dropdown-menu .aa-suggestion em {
font-weight: bold;
font-style: normal;
}
\ No newline at end of file
......@@ -66,6 +66,9 @@ AbstractDbPanel.prototype._createEventHandlers = function () {
minLength: 1,
hint: true
}, {
displayKey: function(suggestion) {
return suggestion;
},
source: function (query, callback) {
callback(self.getAutocomplete(query.toLowerCase()));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment