43 lines
1.0 KiB
CSS
43 lines
1.0 KiB
CSS
.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;
|
|
}
|
|
.tapi-search-autocomplete-items div p {
|
|
margin: 0;
|
|
}
|
|
.tapi-search-autocomplete-items div:hover, .tapi-search-autocomplete-active {
|
|
/*when hovering an item:*/
|
|
background-color: #E7E6E6 !important;
|
|
}
|