Skip to content

Commit

Permalink
Fix margin adjustmnet on footer when banner is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
relyks committed Sep 8, 2024
1 parent eaeaacd commit d940e02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions static/css/s2.css
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,16 @@ div#s2:has(~ div.ub-emb-container) {
top: unset;
}

/* Adjust margin on footer when banner is shown */
div#s2:has(~ div.ub-emb-container):not(:has(~ div#staticContentWrapper)) #footer {
margin-bottom: 120px;
}

/* Remove adjustment margin when banner is removed */
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;
Expand Down
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
{% endif %}

<!-- Unbounce Embed Code -->
<script src="https://fd810a0513c94a16a52ef4d0d9b9c6c8.js.ubembed.com" async></script>
<script src="https://fd810a0513c94a16a52ef4d0d9b9c6c8.js.ubembed.com" async></script>
</head>

<body class="interface-{% if request.interfaceLang %}{{request.interfaceLang}}{% else %}english{% endif %}{% if EMBED %} embeded{% endif %} {% block bodyclasses %}{% endblock %}">
Expand Down

0 comments on commit d940e02

Please sign in to comment.