diff --git a/_sass/_shelter-map.scss b/_sass/_shelter-map.scss index 8a479c7..f0ea453 100644 --- a/_sass/_shelter-map.scss +++ b/_sass/_shelter-map.scss @@ -1,4 +1,4 @@ -$map-height: 90vh; +$map-height: 100%; .shelter-popup > .mapboxgl-popup-content { padding: 0; @@ -21,10 +21,22 @@ $map-height: 90vh; } +.container.shelter-map { + //position: relative; +} + #map-container { overflow: hidden; } +.map-wrapper { + //position: absolute; + margin: auto; + max-width: 100vw; + min-width: 90vw; +} + + #map-container.shelter-map_container #map { min-height: $map-height; max-height: $map-height; @@ -34,9 +46,15 @@ $map-height: 90vh; position: absolute; top: 10px; left: 10px; - height: 0; + //height: 0; + width: 100%; + max-width: 80vw; } +.shelter-map-controls { + display: flex; + justify-content: flex-start; +} // Filter Controls #ShelterFilterToggle, #geolocate { @@ -82,4 +100,38 @@ $map-height: 90vh; &.visible { transform: translateX(0); } +} + +#ShelterSearch { + //position: relative; + width: 100%; + + & .control { + width: 100%; + padding: 0 6px; + } + +} + +#SearchResultsList { + position: absolute; + top: 39px; + left: 82px; + max-height: 200px; + overflow: auto; + background: rgba(245, 245, 245, 0.87); + padding: 0 3px; + right: 8px; +} + +.search-result_item { + cursor: pointer; + display: flex; + flex-wrap: wrap; + background: rgba(195, 243, 255, 0.42); + margin-bottom: 4px; + + div { + padding: 0 6px; + } } \ No newline at end of file From 91c42a946865497a60fe1444bca4d85f1727da28 Mon Sep 17 00:00:00 2001 From: Rex Beatie Date: Thu, 11 Oct 2018 20:31:57 -0700 Subject: [PATCH 2/7] built search feature and refactore map control UI to fit in with search results. --- _includes/shelter_map.html | 51 ++++++++++++++++++-------------------- _sass/_shelter-map.scss | 31 ++++++++++++++++++++--- 2 files changed, 51 insertions(+), 31 deletions(-) diff --git a/_includes/shelter_map.html b/_includes/shelter_map.html index 9b095ea..e2b7a59 100644 --- a/_includes/shelter_map.html +++ b/_includes/shelter_map.html @@ -3,10 +3,13 @@
-
+
- - - - - - - -
  • @@ -59,6 +51,12 @@
+ + + + + +