Compare commits
No commits in common. "b19740d7e442b61ad7278d085d079571a43fdcf5" and "4abb52075def6d2c27529f9061f51fb15336b0f5" have entirely different histories.
b19740d7e4
...
4abb52075d
@ -81,10 +81,10 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.primary_nav__toggle p {
|
.primary_nav__toggle p {
|
||||||
margin: 0.5rem 0 0 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0 0 0 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
left: -0.2rem;
|
right: 0.5rem;
|
||||||
bottom: 0.65rem;
|
bottom: 0.65rem;
|
||||||
color: var(--wtf-nearly-black);
|
color: var(--wtf-nearly-black);
|
||||||
}
|
}
|
||||||
@ -105,47 +105,20 @@ body {
|
|||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.primary_nav__navlink.-active,
|
.primary_nav__navlink.-active {
|
||||||
.primary_nav__sub_navlink.-active {
|
|
||||||
color: var(--wtf-orange);
|
color: var(--wtf-orange);
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.primary_nav__navitem.-last, .primary_nav__navitem.-last a {
|
|
||||||
margin-right: 0;
|
|
||||||
padding-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.primary_nav__navlink {
|
.primary_nav__navlink {
|
||||||
color: var(--wtf-nearly-black);
|
color: var(--wtf-nearly-black);
|
||||||
}
|
}
|
||||||
|
|
||||||
.primary_nav__sub_navlink {
|
|
||||||
color: var(--wtf-nearly-white);
|
|
||||||
}
|
|
||||||
|
|
||||||
.primary_nav__navlink:hover {
|
.primary_nav__navlink:hover {
|
||||||
color: var(--wtf-mid-grey);
|
color: var(--wtf-mid-grey);
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.primary_nav__sub_navlist.-closed {
|
|
||||||
display: none;
|
|
||||||
z-index: 20;
|
|
||||||
}
|
|
||||||
|
|
||||||
.primary_nav__sub_navlist.-open {
|
|
||||||
display: block;
|
|
||||||
margin: 2.6rem 0 0 -0.5rem;
|
|
||||||
padding: 0;
|
|
||||||
position: absolute;
|
|
||||||
background-color: var(--wtf-dark-blue);
|
|
||||||
border-left: 2px solid var(--wtf-mid-grey);
|
|
||||||
border-right: 2px solid var(--wtf-mid-grey);
|
|
||||||
border-bottom: 2px solid var(--wtf-mid-grey);
|
|
||||||
box-shadow: 5px 5px 15px 0px rgba(0, 0, 0, 0.35);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Gleicht zusammen mit padding von .primary_nav__navitem die Verschiebung durch
|
* Gleicht zusammen mit padding von .primary_nav__navitem die Verschiebung durch
|
||||||
* Submenümarker aus.
|
* Submenümarker aus.
|
||||||
@ -175,13 +148,6 @@ body {
|
|||||||
border-right: 3px solid var(--wtf-nearly-black);
|
border-right: 3px solid var(--wtf-nearly-black);
|
||||||
}
|
}
|
||||||
|
|
||||||
.primary_nav__sub_navitem {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0.5rem 0.5rem;
|
|
||||||
list-style: none;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header__secondary_nav {
|
.header__secondary_nav {
|
||||||
margin: 4.5rem 0.5rem 0 0;
|
margin: 4.5rem 0.5rem 0 0;
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,8 @@
|
|||||||
document.getElementsByClassName('primary_nav__toggle')[0].addEventListener('click', function(){
|
document.getElementsByClassName('primary_nav__toggle')[0].addEventListener('click', function(){
|
||||||
let nav_list = document.getElementsByClassName('primary_nav__navlist')[0]
|
var nav_list = document.getElementsByClassName('primary_nav__navlist')[0]
|
||||||
if (nav_list.style.display === 'block') {
|
if (nav_list.style.display === 'block') {
|
||||||
nav_list.style.display = 'none';
|
nav_list.style.display = 'none';
|
||||||
} else {
|
} else {
|
||||||
nav_list.style.display = 'block';
|
nav_list.style.display = 'block';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let primary_menu_items = document.getElementsByClassName('primary_nav__navitem');
|
|
||||||
for (let i = 0; i < primary_menu_items.length; i++) {
|
|
||||||
primary_menu_items[i].addEventListener('click', function(event) {
|
|
||||||
let dropdown = event.currentTarget.firstElementChild;
|
|
||||||
if (dropdown.classList.contains('-closed')) {
|
|
||||||
dropdown.classList.remove('-closed');
|
|
||||||
dropdown.classList.add('-open');
|
|
||||||
} else {
|
|
||||||
dropdown.classList.remove('-open');
|
|
||||||
dropdown.classList.add('-closed');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"Was wir tun": {
|
"Was wir tun": {
|
||||||
"href": "/about",
|
"href": "/about",
|
||||||
"slug": "about",
|
|
||||||
"visible": true,
|
"visible": true,
|
||||||
"list_childs": false,
|
"list_childs": false,
|
||||||
"items": {}
|
"items": {}
|
||||||
},
|
},
|
||||||
"Was geht ab?": {
|
"Was geht ab?": {
|
||||||
"href": "/aktuelles",
|
"href": "/aktuelles",
|
||||||
"slug": "aktuelles",
|
|
||||||
"visible": true,
|
"visible": true,
|
||||||
"list_childs": false,
|
"list_childs": false,
|
||||||
"items": {
|
"items": {
|
||||||
@ -18,9 +16,8 @@
|
|||||||
},
|
},
|
||||||
"Mitglied werden": {
|
"Mitglied werden": {
|
||||||
"href": "/mitglieder",
|
"href": "/mitglieder",
|
||||||
"slug": "mitglieder",
|
|
||||||
"visible": true,
|
"visible": true,
|
||||||
"list_childs": true,
|
"list_childs": false,
|
||||||
"items": {
|
"items": {
|
||||||
"Satzung": "/mitglieder/satzung",
|
"Satzung": "/mitglieder/satzung",
|
||||||
"Mitglied werden": "/mitglieder/beitreten"
|
"Mitglied werden": "/mitglieder/beitreten"
|
||||||
|
@ -12,11 +12,7 @@
|
|||||||
<ul class="primary_nav__navlist">
|
<ul class="primary_nav__navlist">
|
||||||
{% for title, mapping in bag("navigation").items() %}
|
{% for title, mapping in bag("navigation").items() %}
|
||||||
{% if mapping.visible|default(true) %}
|
{% if mapping.visible|default(true) %}
|
||||||
<li id="{{ mapping.slug }}" class="primary_nav__navitem">
|
<li class="primary_nav__navitem">
|
||||||
{{ title }}
|
|
||||||
{% if mapping.list_childs %}
|
|
||||||
<ul class="primary_nav__sub_navlist -closed">
|
|
||||||
<li>
|
|
||||||
<a class="primary_nav__navlink {% if this._path == mapping.href or
|
<a class="primary_nav__navlink {% if this._path == mapping.href or
|
||||||
this._path in mapping['items'].values() or
|
this._path in mapping['items'].values() or
|
||||||
title == 'Aktuelles' and
|
title == 'Aktuelles' and
|
||||||
@ -24,7 +20,8 @@
|
|||||||
%}-active{% endif %}" href="{{ mapping.href|url }}">
|
%}-active{% endif %}" href="{{ mapping.href|url }}">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
{% if mapping.list_childs %}
|
||||||
|
<ul class="primary_nav__sub_navlist">
|
||||||
{% set sub_menu = mapping['items'].items() %}
|
{% set sub_menu = mapping['items'].items() %}
|
||||||
{% for sub_title, href in sub_menu %}
|
{% for sub_title, href in sub_menu %}
|
||||||
<li class="primary_nav__sub_navitem">
|
<li class="primary_nav__sub_navitem">
|
||||||
|
Loading…
Reference in New Issue
Block a user