react-datalist-input/lib/DataListInput.css

43 lines
973 B
CSS
Raw Normal View History

2018-07-16 20:02:12 +02:00
.datalist-input {
/*the container must be positioned relative:*/
position: relative;
display: inline-block;
width: 100%;
height: 100%;
}
input {
border: 1px solid transparent;
background-color: #f1f1f1;
width: 100%;
height: 100%;
}
input[type=text] {
background-color: #f1f1f1;
width: 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;
}