remove js

This commit is contained in:
oiseauroch 2023-05-26 17:59:46 +02:00
parent a5ed3add25
commit 67921ddfaa
2 changed files with 19 additions and 10 deletions

View File

@ -43,13 +43,13 @@ header {
} }
} }
@media (min-width: 1024px) { @media (min-width: 768px) {
.phone-only { .phone-only {
display: none; display: none;
} }
} }
@media (max-width: 1023px) { @media (max-width: 767px) {
.menu-phone { .menu-phone {
position: absolute; position: absolute;
top: 0; top: 0;
@ -81,4 +81,9 @@ header {
} }
summary {
list-style: none;
}

View File

@ -28,7 +28,17 @@
<h1 class="sr-only">Librezo</h1> <h1 class="sr-only">Librezo</h1>
</a> </a>
<nav id="header-menu"> <nav id="header-menu">
<ul id="menu" class="hidden-phone menu-phone "> <ul class="hidden-phone">
<li><a href="/fonctionnement">Fonctionnement</a></li>
<li><a href="/tarifs">Services et tarifs</a></li>
<li><a href="/qui-sommes-nous">Qui sommes-nous</a></li>
<li><a href="/charte">Charte</a></li>
<li><a href="/contact">Contact</a></li>
</ul>
<li><details class="phone-only hamburger-menu" >
<summary>&#9776;</summary>
<ul id="menu" class=" menu-phone ">
<li> <li>
<picture class="phone-only"> <picture class="phone-only">
<source srcset="/img/librezo-little-white.png" media="(prefers-color-scheme: dark)"/> <source srcset="/img/librezo-little-white.png" media="(prefers-color-scheme: dark)"/>
@ -42,14 +52,8 @@
<li><a href="/charte">Charte</a></li> <li><a href="/charte">Charte</a></li>
<li><a href="/contact">Contact</a></li> <li><a href="/contact">Contact</a></li>
</ul> </ul>
<li><button class="phone-only hamburger-menu" onclick="toggleMenu()">&#9776;</button></li> </details></li>
</nav> </nav>
<script>
var menu = document.getElementById('menu');
function toggleMenu() {
menu.classList.toggle('hidden-phone');
}
</script>
</header> </header>
{% block body %}{% endblock body %} {% block body %}{% endblock body %}
<footer> <footer>