Recoded how the Auto-complete subdivision search worked in php and js
This commit is contained in:
@@ -12,3 +12,39 @@
|
||||
padding: 0 .75rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
/* Wrap your input in a positioned container */
|
||||
.subdivision-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Fix dropdown width + positioning */
|
||||
.subdivision-results {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 100%; /* match input width */
|
||||
max-width: 100%; /* prevent overflow */
|
||||
z-index: 1055;
|
||||
|
||||
max-height: 250px; /* scroll if too many */
|
||||
overflow-y: auto;
|
||||
|
||||
border: 1px solid #dee2e6;
|
||||
border-radius: 0.375rem;
|
||||
background: #fff;
|
||||
|
||||
box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
|
||||
}
|
||||
|
||||
.subdivision-results .dropdown-item {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.subdivision-results .dropdown-item:hover {
|
||||
background-color: #f8f9fa;
|
||||
cursor: pointer;
|
||||
}
|
||||
Reference in New Issue
Block a user