Fixed sidebar disappearing if JavaScript is not available and tabs are enabled

This commit is contained in:
squidfunk 2018-02-22 19:53:44 +01:00
parent 969a0d4bbc
commit 060a5df1f5
3 changed files with 6 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -48,7 +48,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.9d8fef76.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.78aab2dc.css">
{% if palette.primary or palette.accent %} {% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.6079476c.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.6079476c.css">
{% endif %} {% endif %}

View File

@ -128,6 +128,11 @@
display: none; display: none;
} }
// Show 1st level navigation always expanded
.no-js & .md-nav {
display: block;
}
// Hide 1st level normal items // Hide 1st level normal items
& > .md-nav__list > .md-nav__item { & > .md-nav__list > .md-nav__item {
font-size: 0; font-size: 0;