Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a-thansen committed Nov 3, 2023
1 parent 7a88dc3 commit 14616de
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions frontend/src/css/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,49 +13,59 @@

.geoapify-autocomplete-items {
position: absolute;
/* left: 20px; This need to be improve later to align with the left side of search input box */
top: calc(100% + 2px);
width: 280px;

width: 230px;
background-color: #ddddddbd;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 5px;
overflow: hidden;

box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.1);
z-index: calc(var(--navbar-z-index)+20);
}

.geoapify-autocomplete-items div {
padding: 10px;
cursor: pointer;
width: 230px;
color: #333;
font-size: 14px;
}

.geoapify-autocomplete-items div:hover {
background-color: rgba(212, 43, 198, 0.223);
width: 250px;
background-color: #eef4fc;
width: 230px;
}

.geoapify-autocomplete-items .active {
background-color: rgba(212, 43, 198, 0.223);
width: 250px;
background-color: #eef4fc;
width: 230px;
}

.geoapify-autocomplete-item {
display: inline-flex;
margin-right: 5px;
width: 200px;
justify-content: space-between;
margin-right: 0px;
width: 230px;
flex-direction: row;
align-items: left;
}

.geoapify-autocomplete-item .icon {
display: inline-flex;
margin-right: 5px;
width: 200px;
align-items: center;
margin-right: 10px;
margin-left: 6px;
width: 20px;
height: 24px;
color: rgba(0, 0, 0, 0.6);
}

.geoapify-autocomplete-item .icon svg {
height: 16px;
color: #2e75f1;
}

.geoapify-autocomplete-item .icon.emoji {
color: unset;
width: 100px;
Expand All @@ -66,28 +76,22 @@
/* Address text format*/
.geoapify-autocomplete-item .address {
display: flex;
min-width: 230px;
width: 230px;
flex-direction: column;
align-items: flex-start;
text-align: left;
margin-left: 7px;
}

.geoapify-autocomplete-item .address .secondary-part {
margin: 0;
margin-left: -4px;
overflow-wrap: break-word;
hyphens: manual;
text-align: left;
z-index: calc(var(--navbar-z-index)+22);
}

.geoapify-close-button {
position: absolute;
right: 0%;
width: 30px;
top: 0px;

height: 100%;
display: none;
align-items: center;
Expand Down

0 comments on commit 14616de

Please sign in to comment.