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 %}
-