hamburger menu

This commit is contained in:
vincent-peugnet 2025-12-12 20:28:47 +01:00
parent 4bff802740
commit 594f50b98c
2 changed files with 30 additions and 12 deletions

View file

@ -24,12 +24,24 @@ h1, h2{
color:#ff0000; color:#ff0000;
} }
nav {
text-align: center;
}
summary {
cursor: pointer;
list-style: none;
background: #ff0000;
color: white;
}
nav ul { nav ul {
display: flex; display: flex;
list-style: none; list-style: none;
padding: inherit; padding: inherit;
margin: inherit; margin: inherit;
justify-content: center; justify-content: center;
border-bottom: solid 10px #ff0000;
} }
nav li a { nav li a {
@ -38,10 +50,6 @@ nav li a {
display: block; display: block;
} }
header{
border-top: 20px solid #ff0000;
}
footer{ footer{
border-bottom: 20px solid #ff0000; border-bottom: 20px solid #ff0000;
} }
@ -74,4 +82,10 @@ hr {height: 40px; background: url('../images/separation.png') no-repeat 50% 50%;
.page { .page {
margin: auto; margin: auto;
max-width: 960px; max-width: 960px;
} }
@media screen and (max-width: 700px) {
nav ul {
flex-direction: column;
}
}

View file

@ -10,13 +10,17 @@
</head> </head>
<body> <body>
<nav> <nav>
<ul> <details>
<li><a href="https://wiki.interhacker.space">wiki</a></li> <summary>☰ outils</summary>
<li><a href="https://git.interhacker.space">forge</a></li> <ul class="desktop">
<!-- <li><a href="https://element.interhacker.space">matrix</a></li> --> <li><a href="https://wiki.interhacker.space">wiki</a></li>
<li><a href="https://tube.interhacker.space">peertube</a></li> <li><a href="https://git.interhacker.space">forge</a></li>
</ul> <li><a href="https://element.interhacker.space">matrix</a></li>
</nav> <li><a href="https://md.interhacker.space/">pads</a></li>
<li><a href="https://tube.interhacker.space">peertube</a></li>
</ul>
</details>
</nav>
<header> <header>
<h1>UNE INTRODUCTION AUX HACKERSPACES ET À LEURS ACTIVITÉS</h1> <h1>UNE INTRODUCTION AUX HACKERSPACES ET À LEURS ACTIVITÉS</h1>
</header> </header>