Ajouter responsiveness au header #93

Merged
vlbeaudoin merged 21 commits from feature/responsive-header into main 2023-08-16 13:43:50 -04:00
2 changed files with 10 additions and 3 deletions
Showing only changes of commit 93c0e27b83 - Show all commits

View file

@ -18,12 +18,19 @@
cursor: pointer; cursor: pointer;
} }
.headerMenuHamburger{
fill: #394596;
height: 100px;
width: 100px;
}
/* Le header s'affiche en menu hamburger pour les breakpoints téléphone et tablette */ /* Le header s'affiche en menu hamburger pour les breakpoints téléphone et tablette */
@media screen and (max-width: 576px) { @media screen and (max-width: 576px) {
.headerMenuElement{ .headerMenuElement{
display: none; display: none;
} }
.hamburgerMenuIcon{ .headerMenuHamburger{
display: block; display: block;
} }
} }
@ -32,7 +39,7 @@
.headerMenuElement{ .headerMenuElement{
display: none; display: none;
} }
.hamburgerMenuIcon{ .headerMenuHamburger{
display: block; display: block;
} }
} }

View file

@ -2,7 +2,7 @@
<link rel="stylesheet" href="/public/css/header.css"> <link rel="stylesheet" href="/public/css/header.css">
<div class="header"> <div class="header">
<ul class="headerMenu"> <ul class="headerMenu">
<li class="headerMenuElement"><a href="/"><svg class="headerMenuIcon" src="/public/icones/hamburger-menu.svg"></svg></a></li> <li class="headerMenuElement"><a href="/"><svg class="headerMenuHamburger" src="/public/icones/hamburger-menu.svg"></svg></a></li>
<li class="headerMenuElement"><a href="/">index</a></li> <li class="headerMenuElement"><a href="/">index</a></li>
<li class="headerMenuElement"><a href="/a-propos">À propos</a></li> <li class="headerMenuElement"><a href="/a-propos">À propos</a></li>
<li class="headerMenuElement"><a href="/actualite">Actualité</a></li> <li class="headerMenuElement"><a href="/actualite">Actualité</a></li>