google-typeahead
Version:
A Google Search styled typeahead for React
46 lines (45 loc) • 945 B
CSS
.google-typeahead-item {
width: 100%;
display: flex;
position: relative;
box-sizing: border-box;
text-align: left;
align-items: center;
padding-top: 8px;
padding-bottom: 8px;
justify-content: flex-start;
text-decoration: none;
padding-left: 16px;
padding-right: 16px;
}
.google-typeahead-item:hover {
background-color: #eeeeee;
}
.google-typeahead-item.google-typeahead-selected {
background-color: #cecece;
}
.google-typeahead-text {
flex: 1 1 auto;
min-width: 0;
margin-top: 4px;
margin-bottom: 4px;
}
.google-typeahead-input {
height: 44px;
background-color: transparent;
width: 100%;
border: none;
outline: none;
font-size: 16px;
}
.google-typeahead-text{
font-size: 16px;
}
.google-typeahead-dropdown{
position: absolute;
width:100%;
background-color: white;
border-bottom-left-radius: 22px;
border-bottom-right-radius: 22px;
box-shadow: 0 1px 6px 0 rgba(32, 33, 36, 0.28);
}