fix(nav): no-js header menu
All checks were successful
Deploy workflow / deploy (push) Successful in 17s

This commit is contained in:
Matthieu Bessat 2024-08-13 14:28:51 +02:00
parent 293ac83a9d
commit 79e1dc3aa1
4 changed files with 28 additions and 6 deletions

View file

@ -16,6 +16,7 @@ $secondary: #f15a24;
@import "./title.scss"; @import "./title.scss";
@import "./landing.scss"; @import "./landing.scss";
@import "./footer.scss"; @import "./footer.scss";
@import "./nav.scss";
.page-footer { .page-footer {
border-top: 1px solid rgba(140, 130, 115, 0.15); border-top: 1px solid rgba(140, 130, 115, 0.15);

11
assets/sass/nav.scss Normal file
View file

@ -0,0 +1,11 @@
/* bs3: mobile navbar without js custom
* ------------------------------------
* show the collapse when navbar toggle is checked */
#navbar-toggle-cbox:checked ~ .collapse {
display: block;
}
/* the checkbox used only internally; don't display it */
#navbar-toggle-cbox {
display:none
}

View file

@ -10,5 +10,4 @@ Sont référencés:
- Barrières problématiques - Barrières problématiques
- Manque de stationnement adapté - Manque de stationnement adapté
[Voir la carte en grand](https://umap.openstreetmap.fr/en/map/vmems-problemes-cyclables-gaillon-aubevoye_1100616 [Voir la carte en grand](https://umap.openstreetmap.fr/en/map/vmems-problemes-cyclables-gaillon-aubevoye_1100616)
)

View file

@ -1,10 +1,21 @@
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container"> <div class="container">
<a class="navbar-brand" href="/">VMEMS</a> <a class="navbar-brand" href="/">VMEMS</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <input type="checkbox" id="navbar-toggle-cbox">
<div class="navbar-header">
<label
for="navbar-toggle-cbox"
class="navbar-toggler collapsed"
data-toggle="collapse"
data-target="#navbar"
aria-expanded="false"
aria-controls="navbar"
>
<span class="visually-hidden-focusable">Ouvrir le menu</span>
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </label>
<div class="collapse navbar-collapse" id="navbarSupportedContent"> </div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="navbar-nav me-auto mb-2 mb-lg-0"> <ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="/projets">Projets cyclables</a> <a class="nav-link" href="/projets">Projets cyclables</a>