react-datalist-input/lib/DataListInput.css
2019-06-12 12:26:27 +02:00

40 lines
919 B
CSS

.datalist-input {
/*the container must be positioned relative:*/
position: relative;
display: inline-block;
width: 100%;
height: 100%;
}
.autocomplete-input {
border: 1px solid transparent;
background-color: #f1f1f1;
width: 100%;
height: 100%;
}
.datalist-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;
}
.datalist-items div {
padding: 10px;
cursor: pointer;
background-color: #fff;
border-bottom: 1px solid #d4d4d4;
}
.datalist-items div:hover {
/*when hovering an item:*/
background-color: #e9e9e9;
}
.datalist-active-item {
/*when navigating through the items using the arrow keys:*/
background-color: DodgerBlue !important;
color: #ffffff;
}