diff --git a/blocks/property-result-listing/property-result-listing.css b/blocks/property-result-listing/property-result-listing.css index 5a60c004..099e5e97 100644 --- a/blocks/property-result-listing/property-result-listing.css +++ b/blocks/property-result-listing/property-result-listing.css @@ -77,13 +77,6 @@ display: none; } -/* .property-search-template.search-map-active .property-result-listing.block .property-result-map-container { - margin-top: -30px; - flex: 0 0 100%; - max-width: 100%; - padding: 0 15px; -} */ - .property-result-listing.block .button-container a { cursor:pointer; font-family: var(--font-family-proxima); @@ -304,7 +297,7 @@ text-align: center; @media (min-width: 900px) { .property-result-listing.block { flex-direction: row; -} + } .search-map-active .property-result-listing.block .property-list-cards, .search-map-active .property-result-listing.block [name="Page"], @@ -329,12 +322,15 @@ text-align: center; .property-result-listing.block .button-container { justify-content: flex-end; } + .property-result-listing.block .property-result-map-container .disclaimer { display: none; } + .search-map-active .property-result-listing.block .property-result-content .disclaimer { display: block; } + .property-result-listing.block [class*="disclaimer"] * { font-family: var(--font-family-proxima); font-size: var(--body-font-size-xs); diff --git a/blocks/property-result-listing/property-result-listing.js b/blocks/property-result-listing/property-result-listing.js index d16d6905..4442e46f 100644 --- a/blocks/property-result-listing/property-result-listing.js +++ b/blocks/property-result-listing/property-result-listing.js @@ -137,8 +137,6 @@ export default async function decorate(block) { propertyResultContent.append(buildDisclaimer(disclaimerHtml)); block.append(propertyResultContent); - - document.querySelector('.property-result-map-container').append(disclaimerBlock); /** update page on select change */ block.querySelector('[name="Page"] .select-selected').addEventListener('click', () => { diff --git a/blocks/property-result-map/map.css b/blocks/property-result-map/map.css index 23f42774..e1318ac9 100644 --- a/blocks/property-result-map/map.css +++ b/blocks/property-result-map/map.css @@ -6,16 +6,6 @@ padding: 3px; } -/* .property-search-template.search-map-active .property-result-listing.block > div:first-of-type { - position: fixed; - width: 50%; - left: 50%; - top: calc(var(--nav-height) + 50px + 120px); - - height: 600px; - max-width: calc(1400px/2 - 30px); -} */ - .property-search-template.search-map-active .info-window { width: 178px; pointer-events: all; @@ -173,7 +163,6 @@ height: 100%; width: 100%; display: none; - /* position: absolute; */ } .property-search-template.search-map-active .property-result-map { @@ -377,41 +366,15 @@ .property-search-template.search-map-active .property-result-map-container { display: block; } - /* end */ @media (min-width: 600px) { .property-search-template.search-map-active .custom-controls { bottom: 16vw; } - - /* .property-search-template.search-map-active .property-result-listing.block > div:first-of-type { - width: 100%; - left: 0; - top: calc(var(--nav-height) + 50px + 120px); - height: 600px; - - } */ } -/* .property-result-listing.block .property-result-content .disclaimer { - display: none; -} */ - -/* @media (max-width: 899px) { - .property-search-template.search-map-active .property-result-listing.block .property-result-map-container .disclaimer { - display: block; - } -} */ - @media (min-width: 900px) { - /* .property-search-template.search-map-active .property-result-listing.block > div:first-of-type { - position: fixed; - width: 100%; - top: calc(var(--nav-height) + 50px + 120px); - height: 600px; - } */ - .property-search-template.search-map-active .custom-controls { right: 20px; bottom: 20px;