Skip to content
Snippets Groups Projects
Verified Commit 2edca640 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix borders in projects mega menu

parent ca84a59c
No related branches found
No related tags found
1 merge request!28Neue Website basierend auf Zola
...@@ -40,4 +40,8 @@ ...@@ -40,4 +40,8 @@
.is-mega-menu-subtitle { .is-mega-menu-subtitle {
padding: .375rem 1rem; padding: .375rem 1rem;
} }
} }
\ No newline at end of file
.navbar-dropdown {
overflow: hidden;
}
...@@ -10,11 +10,14 @@ $project-colors: ( ...@@ -10,11 +10,14 @@ $project-colors: (
.menu-project-section { .menu-project-section {
border-left: 0.5em solid; border-left: 0.5em solid;
margin-left: 1em;
} }
@each $project in $projects { @each $project in $projects {
#menu-project-section-#{$project} { #menu-project-section-#{$project} {
border-color: map-get($project-colors, $project); border-color: map-get($project-colors, $project);
.is-mega-menu-title .is-mega-menu-subtitle {
color: map-get($project-colors, $project);
}
} }
} }
{% set projects = get_taxonomy(kind = "projekt") %} {% set projects = get_taxonomy(kind = "projekt") %}
<div class="columns"> <div class="container is-fluid">
{% for project in projects.items %} <div class="columns">
<section class="column menu-project-section" id="menu-project-section-{{ project.slug }}"> {% for project in projects.items %}
{% set section = get_section(path = "projekte/" ~ project.slug ~ "/_index.md") %} <section class="column menu-project-section" id="menu-project-section-{{ project.slug }}">
<h1 class="title is-6 is-mega-menu-title">{{ section.title }}</h1> {% set section = get_section(path = "projekte/" ~ project.slug ~ "/_index.md") %}
<p class="is-mega-menu-subtitle">{{ section.description }}</p> <h1 class="title is-6 is-mega-menu-title">{{ section.title }}</h1>
<p class="is-mega-menu-subtitle">{{ section.description }}</p>
{% for page in project.pages %} {% for page in project.pages %}
<a class="navbar-item" href="{{ page.permalink }}"> <a class="navbar-item" href="{{ page.permalink }}">
<div class="navbar-content"> <div class="navbar-content">
{{ page.title }} {{ page.title }}
</div> </div>
</a> </a>
{% endfor %}
</section>
{% endfor %} {% endfor %}
</section> </div>
{% endfor %}
</div> </div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment