UNPKG

@geoapify/geocoder-autocomplete

Version:

A JavaScript address autocomplete input, compatible with Leaflet, MapLibre, OpenLayers, and other map libraries for efficient location search and geocoding.

94 lines (77 loc) 1.71 kB
.geoapify-autocomplete-input { padding: 0 31px 0 7px; width: calc(100% - 40px); outline: none; line-height: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.3); background-color: #2a2a2a; color: #ffffff; font-size: 14px; } .geoapify-autocomplete-input::placeholder { color: rgba(255, 255, 255, 0.6); } .geoapify-autocomplete-items { position: absolute; border: 1px solid rgba(255, 255, 255, 0.3); border-top: none; background-color: #2a2a2a; color: #ffffff; z-index: 99; top: 100%; left: 0; right: 0; } .geoapify-autocomplete-items div { padding: 10px; cursor: pointer; } .geoapify-autocomplete-items div:hover { background-color: #3a3a3a; } .geoapify-autocomplete-items .active { background-color: #3a3a3a; } .geoapify-autocomplete-item { display: flex; flex-direction: row; align-items: center; } .geoapify-autocomplete-item .icon { display: inline-block; width: 40px; height: 24px; color: #aaa; } .geoapify-autocomplete-item .icon.emoji { color: unset; font-size: 20px; opacity: 0.9; } .geoapify-close-button { position: absolute; right: 5px; top: 0; height: 100%; display: none; align-items: center; } .geoapify-close-button.visible { display: flex; } .geoapify-close-button { color: rgba(255, 255, 255, 0.6); cursor: pointer; } .geoapify-close-button:hover { color: rgba(255, 255, 255, 0.8); } .geoapify-autocomplete-items .secondary-part { margin-left: 10px; font-size: small; color: rgba(255, 255, 255, 0.7); } .geoapify-autocomplete-items .main-part .non-verified { color: #ff8080; }