Skip to content
Snippets Groups Projects
Unverified Commit 8c39d127 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Fix the footer.

It was broken in previous commits. It should always stick to the bottom of the page, unless the page is long enough to not fit in the screen, so then it should just be thrown after the end of the content.
parent fa28ce7e
No related branches found
No related tags found
No related merge requests found
...@@ -388,14 +388,13 @@ HEADER ...@@ -388,14 +388,13 @@ HEADER
CONTENT CONTENT
************************************************************ */ ************************************************************ */
#layout { #layout {
position: relative;
right: 0; right: 0;
padding-right: 0; padding-right: 0;
} }
#content { #content {
padding-top: 2em; padding-top: 2em;
padding-bottom: 4rem; padding-bottom: 2rem;
} }
.message-box { .message-box {
...@@ -451,15 +450,15 @@ FOOTER ...@@ -451,15 +450,15 @@ FOOTER
************************************************************ */ ************************************************************ */
#layout { #layout {
min-height: 100%; min-height: 100%;
height: 100%; margin: 0 auto -6rem auto; /*negative margin = footer height + padding-top + padding-bottom*/
margin: 0 auto -6rem; /*negative margin = footer height + padding-top + padding-bottom*/
} }
#bottom, #push { #bottom, #push {
height: 4rem; height: 6rem;
} }
#footer { #footer {
width: 100%;
background: linear-gradient(141deg, $primaryBackground 0%, $transitionBackground 51%, $secondaryBackground 75%); background: linear-gradient(141deg, $primaryBackground 0%, $transitionBackground 51%, $secondaryBackground 75%);
height: 4rem; height: 4rem;
padding: 2rem 0 0; padding: 2rem 0 0;
......
...@@ -21,6 +21,7 @@ $(document).ready(function () { ...@@ -21,6 +21,7 @@ $(document).ready(function () {
$('#menuLink').click(function (e) { $('#menuLink').click(function (e) {
e.preventDefault(); e.preventDefault();
$('#layout').toggleClass('active'); $('#layout').toggleClass('active');
$('#foot').toggleClass('active');
$(this).toggleClass('active'); $(this).toggleClass('active');
}); });
}); });
\ No newline at end of file
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
</div> </div>
</div><!-- content --> </div><!-- content -->
<div id="push"></div> <div id="push"></div>
<div id="foot">
{%- block footer %}{% include "_footer.twig" %}{% endblock %}
</div>
</div><!-- layout --> </div><!-- layout -->
<div id="foot">
{%- block footer %}{% include "_footer.twig" %}{% endblock %}
</div>
<script src="{{ asset('js/bundle.js') }}"></script> <script src="{{ asset('js/bundle.js') }}"></script>
{%- block postload %}{% endblock %} {%- block postload %}{% endblock %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment