Fix tapi search results
This commit is contained in:
@ -1,9 +1,39 @@
|
||||
.tapi-search-result {
|
||||
.tapi-search-autocomplete {
|
||||
/*the container must be positioned relative:*/
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.tapi-search-autocomplete input {
|
||||
border: 1px solid transparent;
|
||||
background-color: #f1f1f1;
|
||||
/*padding: 10px;*/
|
||||
/*font-size: 16px;*/
|
||||
}
|
||||
.tapi-search-autocomplete input[type=text] {
|
||||
background-color: #f1f1f1;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tapi-search-autocomplete-items {
|
||||
position: absolute;
|
||||
border: 1px solid #d4d4d4;
|
||||
border-bottom: none;
|
||||
border-top: none;
|
||||
z-index: 99;
|
||||
/*position the autocomplete items to be the same width as the container:*/
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
.tapi-search-autocomplete-items div {
|
||||
padding: 10px;
|
||||
cursor: pointer;
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #d4d4d4;
|
||||
color: #000;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.tapi-search-result:hover, .tapi-search-result-selected {
|
||||
background-color: #E7E6E6;
|
||||
.tapi-search-autocomplete-items div:hover, .tapi-search-autocomplete-active {
|
||||
/*when hovering an item:*/
|
||||
background-color: #E7E6E6 !important;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user