drop_menu_comming_back #241

Open
muli wants to merge 37 commits from drop_menu_comming_back into spielwiese
2 changed files with 33 additions and 9 deletions
Showing only changes of commit db367e8c34 - Show all commits

View File

@ -1919,25 +1919,41 @@ footer {
position: absolute;
top: 6.5rem;
right: 0;
border-top: 2px solid var(--wtf-nearly-black);
border-left: 2px solid var(--wtf-nearly-black);
border-bottom: 2px solid var(--wtf-nearly-black);
border-top: 1px solid var(--wtf-grey);
border-left: 1px solid var(--wtf-grey);
border-bottom: 1px solid var(--wtf-grey);
background-color: var(--wtf-light-grey);
opacity: 97%;
box-shadow: 5px 0px 15px 5px rgba(0, 0, 0, 0.25);
}
.primary_nav__navitem {
margin: 0;
padding: 1rem 1rem 1rem 1.5rem;
padding: 1rem 1rem 0.5rem 1.5rem;
display: block;
}
.primary_nav__navlink {
color: var(--wtf-nearly-black)
.primary_nav__navlink,
.primary_nav__sub_navlink {
color: var(--wtf-nearly-black);
text-decoration: underline;
}
.primary_nav__navlink:hover {
.primary_nav__navlink:hover,
.primary_nav__sub_navlink:hover {
color: var(--wtf-mid-grey);
text-decoration: none;
}
.primary_nav__sub_navlist,
.primary_nav__sub_navlist.-open,
.primary_nav__sub_navlist.-closed {
display: block;
margin: 0.25rem 0 0.75rem 0.75rem;
}
.primary_nav__sub_navitem {
padding: 0.25rem 0.5rem;
}
/* mobile nav - Ende */

View File

@ -13,8 +13,16 @@
{% for title, mapping in bag("navigation").items() %}
{% if mapping.visible|default(true) %}
<li id="{{ mapping.slug }}" class="primary_nav__navitem">
{%if not mapping.list_childs %}
<a class="primary_nav__navlink {% if this._path == mapping.href or
this._path in mapping['items'].values() or
title == 'Aktuelles' and
('blog' in this._path or 'podcast' in this._path)
%}-active{% endif %}" href="{{ mapping.href|url }}">
{{ title }}
</a>
{% elif mapping.list_childs %}
<span>{{ title }}</span>
{% if mapping.list_childs %}
<ul class="primary_nav__sub_navlist -closed">
<li class="primary_nav__sub_navitem">
<a class="primary_nav__sub_navlink {% if this._path == mapping.href or