From 4f60b57ca0dd26b168f5096896a86b5f33b66e00 Mon Sep 17 00:00:00 2001 From: Skyler C Date: Fri, 13 Sep 2024 17:41:29 -0400 Subject: [PATCH 1/2] Delete static/css/unbounce-banner.css * Temporarily remove all the CSS code related to the Unbounce banners until all scenarios have been tested * Resolve issues with using the old sheets editor --- static/css/unbounce-banner.css | 59 ---------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 static/css/unbounce-banner.css diff --git a/static/css/unbounce-banner.css b/static/css/unbounce-banner.css deleted file mode 100644 index 142dc7f1f8..0000000000 --- a/static/css/unbounce-banner.css +++ /dev/null @@ -1,59 +0,0 @@ -/* - Change styling when Unbounce banner is going to be placed on the page - Unbounce adds a top margin to the body of the main DOM based on the height of the banner - The default top of 0 needs to be removed - ub-emb-container is the class of the node that Unbounce inserts into the main body at the end - The node is at the same level of the tree as the s2 node used for React -*/ -div#s2:has(~ div.ub-emb-container) { - top: unset; -} - -/* - Adjust margin on footer when banner is shown - The introduction of the banner into the DOM by Unbounce with the top margin causes the footer to be cutoff -*/ -div#s2:has(~ div.ub-emb-container):not(:has(~ div#staticContentWrapper)) #footer { - margin-bottom: 120px; -} - -/* - Remove adjustment margin when banner is removed - This sets the footer back to its default when the banner is removed - When the Unbounce banner is closed out by its button, the nodes from the div node with the ub-emb-container class are removed - A single blank div remains -*/ -div#s2:has(~ div.ub-emb-container div:only-child:empty):not(:has(~ div#staticContentWrapper)) #footer { - margin-bottom: 0; -} - -/* Make some style changes on the static pages where the React node is in header only mode */ -div#staticContentWrapper:has(~ .ub-emb-container):has(.staticPage) { - padding-top: 60px; -} - -div#staticContentWrapper:has(~ .ub-emb-container) .staticPage .staticPageHeader { - margin-top: unset; -} - -/* - The mobile navigation menu needs to be shifted when displayed and the banner is displaying on mobile -*/ -div#s2:has(~ div.ub-emb-container) .singlePanel div.mobileNavMenu { - height: calc(100vh - 180px); - top: 180px; -} - -/* - Readjust the mobile navigation menu to its previous positioning after the banner is removed -*/ -div#s2:has(~ div.ub-emb-container div:only-child:empty) .singlePanel div.mobileNavMenu { - height: calc(100vh - 60px); - top: 60px; -} - -div#s2:has(~ div.ub-emb-container) .singlePanel .autocomplete-dropdown { - top: 45px; - left: -10px; - position: absolute; -} \ No newline at end of file From e8fa822f01fe5ff472fa93c175813ba9346bd8f8 Mon Sep 17 00:00:00 2001 From: Skyler C Date: Fri, 13 Sep 2024 17:45:22 -0400 Subject: [PATCH 2/2] Remove reference to unbounce-banner.css --- templates/base.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/templates/base.html b/templates/base.html index 154d9dfe8e..363c9106f4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -97,8 +97,6 @@ - - {% block static_css %} {% if not html %}