From 4fad0c97ce6f79cbd7f591a8ac3028f200258e18 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Tue, 15 Feb 2022 18:48:43 +0100 Subject: [PATCH] Fix nav ul --- base.twig | 1 - css/style.css | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/base.twig b/base.twig index 677d333..c8d9282 100644 --- a/base.twig +++ b/base.twig @@ -61,7 +61,6 @@ {% for tag in tags|sort %} <li class="nav-link"><a href="{{base_url}}/blog/?tag={{ tag }}">{{ tag }}</a></li> {% endfor %} - </ul> {% endif %} {% elseif (pageDepth == 2) and parentPage %} <li class="nav-link"><a href="{{ page.url }}">{{ page.title }}</a></li> diff --git a/css/style.css b/css/style.css index 0702a5d..e1cfd11 100644 --- a/css/style.css +++ b/css/style.css @@ -81,16 +81,18 @@ body { display: flex; flex-direction: column; } } #top ul { list-style: none; - margin: 0; - padding: 0; } #top ul li { - display: inline-block; + display: block; margin-left: 1em; padding: 0; font-weight: bold; } +#top ul.dropdown-menu { + max-width: 50%; +} + a#logo, #top a, #nav-toggle { color: #556d5f; } a#logo:hover, #top .active a, #top a:hover, #nav-toggle:hover { color: #1e924d; } -- GitLab