hide left navigation bar for top level pages

This commit is contained in:
Ulli Kehrle 2020-11-13 15:18:35 +01:00
parent 8d9eaf5df9
commit 260f81d2d9
Signed by untrusted user: hrnz
GPG Key ID: 06E88726998AB3C7
1 changed files with 4 additions and 0 deletions

View File

@ -25,5 +25,9 @@
{% block styles %}
{{ super() }}
<link rel="stylesheet" href="{{ 'assets/stylesheets/extra.css' | url }}" />
{% if page.parent == None %}
{# <style>.md-sidebar--primary{visibility:hidden}</style> #}
<style>@media screen and (min-width:76.25em){.md-sidebar--primary{display:none}.md-content__inner{margin-left:0.8rem;}.md-content{max-width:calc(100% - 12.1rem);}}</style>
{% endif %}
{% endblock %}