Skip to content

Commit

Permalink
Fix responsive navbar (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix authored May 22, 2024
1 parent 9fe81ad commit a791c6a
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions qgis-app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
</form>

{% get_namedmenu Navigation as menu %}
<div class="nav-collapse collapse">
<div class="nav-collapse collapse" style="height: 0px;">
<ul class="unstyled nav main-menu">
{% for item in menu %}
<li><a href="{{ item.page.url }}">{{ item.name }}</a></li>
Expand Down Expand Up @@ -115,7 +115,7 @@
{% endfor %}
</div>
{% endif %}
<div>
<div class="responsive-content">
{% block content %}
{% endblock %}
</div>
Expand Down Expand Up @@ -179,6 +179,32 @@ <h5>Silver Sponsors</h5>
</script>
<script type="text/javascript" src="{% static 'js/moment.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/local_timezone-1.0.js' %}"></script>
<style>
@media (max-width: 979px) {
.nav-collapse, .nav-collapse.collapse {
height: auto;
}

.nav-collapse .nav>li {
float: none !important;
}

.nav-collapse .nav>li>ul {
display:block;
}

.responsive-content {
max-width: 100dvw;
overflow: auto;
}

}
@media (max-width: 500px){
#page_bg {
width: auto;
}
}
</style>
{% tracking_code %}
</body>
</html>

0 comments on commit a791c6a

Please sign in to comment.