From 716748a487b2cb5fb91845bd6cb61299ae231886 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Wed, 29 Nov 2023 22:40:54 +0100 Subject: [PATCH] =?UTF-8?q?on=20am=C3=A9liore=20l'apparence=20du=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/static/style.scss | 24 +++++++++++++--- .../templates/agenda_culturel/page.html | 28 ++++++++++--------- 2 files changed, 35 insertions(+), 17 deletions(-) diff --git a/src/agenda_culturel/static/style.scss b/src/agenda_culturel/static/style.scss index e27a203..85b536e 100644 --- a/src/agenda_culturel/static/style.scss +++ b/src/agenda_culturel/static/style.scss @@ -93,7 +93,7 @@ details[role="list"] summary + ul li.selected>a:hover { color: var(--primary-inverse); } -body>nav { +#main-nav { box-shadow: 0 1px 0 rgba(115, 130, 140, 0.2); } @@ -425,8 +425,15 @@ nav>div { align-items: center; } -nav#main { - align-content: flex-start; +#main-nav { + display: block; + >nav { + position: absolute; + float: left; + top: 0; + left: 0; + padding-right: 4em; + } ul, div { margin: 0 0 auto 0; @@ -436,9 +443,12 @@ nav#main { /* header */ .header { + float: left; z-index: 3; + position: relative; text-align: right; display: block; + width: 100%; } .header ul { @@ -446,11 +456,16 @@ nav#main { padding: 0; list-style: none; overflow: hidden; + width: 100%; } .header ul li { clear: both; float: right; padding: .4em .8em; + width: 100%; + a { + width: 100%; + } } .header .logo { @@ -555,6 +570,7 @@ nav#main { float: none; display: inline-block; padding: var(--nav-element-spacing-vertical) var(--nav-element-spacing-horizontal); + width: auto; } - } + } } \ No newline at end of file diff --git a/src/agenda_culturel/templates/agenda_culturel/page.html b/src/agenda_culturel/templates/agenda_culturel/page.html index 07ea533..16d12b4 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page.html +++ b/src/agenda_culturel/templates/agenda_culturel/page.html @@ -25,18 +25,7 @@ {% load event_extra %} {% load utils_extra %} - + +
{% if messages %} {% for message in messages %}