mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
Align Geolocate icon and Search
- align geolocate and search according to mock for desktop and mobile
This commit is contained in:
parent
9f2fe1a810
commit
40e7b80f27
3 changed files with 30 additions and 38 deletions
|
@ -3,41 +3,28 @@
|
||||||
|
|
||||||
|
|
||||||
.j40Map {
|
.j40Map {
|
||||||
|
// width < 1024
|
||||||
@include at-media-max("desktop") {
|
@include at-media-max("desktop") {
|
||||||
// < 1024
|
|
||||||
height: 55vh;
|
height: 55vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mapHeaderRow{
|
.mapHeaderRow{
|
||||||
@include u-display("flex");
|
@include u-display("flex");
|
||||||
@include u-padding-left(1.5);
|
@include u-padding-left(1.5);
|
||||||
|
justify-content: flex-start;
|
||||||
justify-content: space-between;
|
|
||||||
|
|
||||||
/*
|
|
||||||
This width is set to prevent this row from
|
|
||||||
overflowing. Using justify-content: space-between
|
|
||||||
will allow the geolocation button to be right
|
|
||||||
ajusted. Without the width property constraint
|
|
||||||
of 98%, the space-between property forces the
|
|
||||||
geolocation icon out of the parent container.
|
|
||||||
|
|
||||||
Since the geolocation control is absolutely
|
|
||||||
positioned, attempts were made to set the
|
|
||||||
parent to be relative to avoid this, however
|
|
||||||
it seems that we haven't found a cleaner
|
|
||||||
solution (yet).
|
|
||||||
*/
|
|
||||||
width: 98%;
|
|
||||||
|
|
||||||
|
|
||||||
.geolocateBox {
|
.geolocateBox {
|
||||||
margin-top: 6px;
|
flex: 1 2 47%;
|
||||||
|
align-self: flex-end;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
margin-left: 1rem;
|
||||||
|
|
||||||
.geolocateMessage {
|
.geolocateMessage {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
margin-bottom: 3px;
|
margin-bottom: 3px;
|
||||||
|
max-width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.geolocateMessageHide {
|
.geolocateMessageHide {
|
||||||
|
@ -45,19 +32,8 @@
|
||||||
margin-bottom: 3px;
|
margin-bottom: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include at-media-max("tablet") {
|
|
||||||
// < 640
|
|
||||||
margin-top: 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 365px){
|
|
||||||
margin-top: 46px;
|
|
||||||
|
|
||||||
}
|
|
||||||
.geolocateIcon{
|
.geolocateIcon{
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
@include u-margin-right(4);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,27 @@
|
||||||
@use '../../styles/design-system.scss' as *;
|
@use '../../styles/design-system.scss' as *;
|
||||||
|
|
||||||
.mapSearchContainer {
|
.mapSearchContainer {
|
||||||
/*
|
/**
|
||||||
The width of the container is being limited so that
|
Various breakpoint are being used to allow a consistent ratio
|
||||||
as the device width decreases, the geolocation
|
of screen width between the search component and the geolocation
|
||||||
button has enough space between the Search
|
component across all device sizes.
|
||||||
component
|
|
||||||
*/
|
*/
|
||||||
width: 71%;
|
|
||||||
|
// width < 660
|
||||||
|
@include at-media-max("tablet") {
|
||||||
|
flex: 1 1 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 660 < width < 1024
|
||||||
|
@include at-media-max("desktop") {
|
||||||
|
@include at-media("tablet"){
|
||||||
|
flex: 1 1 56%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// > 1024
|
||||||
|
@include at-media("desktop") {
|
||||||
|
flex: 1 1 72%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
.showMessage {
|
.showMessage {
|
||||||
@include searchMessageLayout;
|
@include searchMessageLayout;
|
||||||
display: block;
|
display: block;
|
||||||
|
width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hideMessage {
|
.hideMessage {
|
||||||
|
|
Loading…
Add table
Reference in a new issue