-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update frontend UI for changing place on place page (#3852)
Update the styling of the search bar used to change places on the place explorer to match figma mocks. This improves the current UI by preventing two search bars from showing up next to each other on page load. Screenshots: ![Screenshot 2023-12-21 at 12 56 06 PM](https://github.com/datacommonsorg/website/assets/4034366/ec687f56-0c99-4365-8258-2fe9e50e8855) ![Screenshot 2023-12-21 at 12 55 56 PM](https://github.com/datacommonsorg/website/assets/4034366/0a255caf-6449-490c-b8c1-d86e71ef2605) ![Screenshot 2023-12-21 at 12 55 33 PM](https://github.com/datacommonsorg/website/assets/4034366/4ed36fab-f1fa-439d-ae92-f0dfd5593ed0) ![Screenshot 2023-12-21 at 12 44 33 PM](https://github.com/datacommonsorg/website/assets/4034366/85139d3f-18e7-4b3c-ac92-0568d5146219) ![Screenshot 2023-12-21 at 12 44 44 PM](https://github.com/datacommonsorg/website/assets/4034366/71ed4cbf-268d-4622-8b1b-b5dd3ed3b5d6) ![Screenshot 2023-12-21 at 12 44 59 PM](https://github.com/datacommonsorg/website/assets/4034366/996ef52a-4daa-4984-8742-28fd1dca7dbd)
- Loading branch information
Showing
14 changed files
with
768 additions
and
457 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
/** | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** Styles for "Change Place" search bar on place pages */ | ||
|
||
// "Change Place" search bar colors | ||
@import "../base/color"; | ||
|
||
#place-change-ui { | ||
flex-grow: 1; | ||
margin-bottom: 4px; | ||
} | ||
|
||
#place-search-container { | ||
align-items: flex-end; | ||
display: flex; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
#change-place { | ||
display: flex; | ||
height: fit-content; | ||
width: 100%; | ||
} | ||
|
||
.toggle-text { | ||
color: var(--gm-3-sys-light-primary, #0b57d0); | ||
cursor: pointer; | ||
font-family: Google Sans Text; | ||
font-size: 14px; | ||
font-style: normal; | ||
font-weight: 500; | ||
height: 48px; | ||
justify-content: center; | ||
line-height: 20px; | ||
margin-left: auto; | ||
padding: 10px 12px 10px 0; | ||
text-align: center; | ||
width: fit-content; | ||
|
||
@media only screen and (max-width: 420px) { | ||
margin-left: 0; | ||
margin-right: auto; | ||
} | ||
} | ||
|
||
.search { | ||
background: var(--gm-3-sys-light-surface-container-low); | ||
border-bottom: 3px solid var(--gm-3-sys-light-primary); | ||
color: var(--gm-3-sys-light-primary); | ||
display: flex; | ||
flex-direction: row; | ||
flex-grow: 1; | ||
font-family: Google Sans Text; | ||
font-size: 12px; | ||
font-style: normal; | ||
font-weight: 400; | ||
justify-content: space-around; | ||
letter-spacing: 0.1px; | ||
line-height: 16px; | ||
margin-top: -6px; | ||
overflow: hidden; | ||
padding: 8px 0px; | ||
position: relative; | ||
width: 100%; | ||
} | ||
|
||
.search-text { | ||
display: flex; | ||
flex-direction: column; | ||
flex-grow: 1; | ||
justify-content: space-between; | ||
} | ||
|
||
.search-instructions { | ||
cursor: default; | ||
padding: 0px 16px; | ||
} | ||
|
||
.location-field { | ||
align-items: center; | ||
background: var(--gm-3-sys-light-surface-container-low); | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.place-list { | ||
align-items: center; | ||
display: flex; | ||
flex-shrink: 0; | ||
flex-wrap: wrap; | ||
margin-left: 32px; | ||
} | ||
|
||
.close-icon { | ||
color: #444746; | ||
cursor: pointer; | ||
height: 24px; | ||
margin-left: auto; | ||
position: absolute; | ||
right: 8px; | ||
top: 16px; | ||
width: 24px; | ||
} | ||
|
||
.place-autocomplete-input { | ||
background: var(--gm-3-sys-light-surface-container-low); | ||
border: none; | ||
box-sizing: content-box; | ||
color: var(--gm-3-sys-light-on-surface); | ||
display: flex; | ||
flex-grow: 1; | ||
font-family: Google Sans Text; | ||
font-size: 14px; | ||
font-weight: 500; | ||
height: fit-content; | ||
letter-spacing: 0; | ||
line-height: 20px; | ||
margin-left: 0; | ||
outline: none; | ||
padding: 0px 40px 0px 16px; | ||
} | ||
|
||
.place-autocomplete-input::-webkit-input-placeholder { | ||
/* Chrome/Opera/Safari */ | ||
color: rgba(0, 0, 0, 0.25); | ||
} | ||
|
||
/* Maps suggestion dropdown overrides */ | ||
.pac-container { | ||
background: white; | ||
border: none; | ||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12); | ||
box-sizing: border-box; | ||
font-weight: 500; | ||
font: normal 14px Google Sans Text; | ||
line-height: 20px; | ||
margin-top: 11px; | ||
} | ||
.pac-item { | ||
padding: 10px 16px; | ||
} | ||
.pac-icon { | ||
display: none; | ||
} | ||
.pac-logo:after { | ||
display: none; | ||
} |
Oops, something went wrong.