Commit b9bb924f authored by Maxime Vidori's avatar Maxime Vidori
Browse files

Remove nav elevator on small devices

parent 330f5446
......@@ -8,6 +8,11 @@ $window.on('load', function() {
var content = $('#content');
var size = 24; // magic number !
// nav is not displayed on small screens so no need to continue
if (window.matchMedia('(max-width: 40rem)').matches) {
return;
}
content.find('h2:last').add('h2:last ~ *').each(function() {
size += $(this).outerHeight(true);
});
......
......@@ -57,10 +57,8 @@
{% block content %}
{% endblock %}
</div>
<footer id="contentinfo" class="body">
<a href="#">Mentions légales</a>
<footer id="contentinfo">
<a href="#">Mentions légales</a>
</footer>
{% include 'analytics.html' %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment