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 11 additions and 4 deletions
Showing only changes of commit b9b0e6f907 - Show all commits

View file

@ -11,6 +11,12 @@
flex-flow: row;
justify-content: space-around;
align-items: center;
list-style: none;
}
.headerMenuElement{
}
.headerMenuElement:hover {
@ -23,17 +29,18 @@
height: 100px;
width: 100px;
}
/* Le header s'affiche en menu hamburger pour les breakpoints téléphone et tablette */
@media screen and (max-width: 576px) {
.headerMenuElement{
display: none;
}
.headerMenuHamburger{
display: block;
}
}
@media screen and (min-width: 576px) {
.headerMenuElement{
@ -49,7 +56,7 @@
.headerMenuElement{
display: block;
}
.hamburgerMenuIcon{
.headerMenuHamburger{
display: none;
}
}

View file

@ -2,7 +2,7 @@
<link rel="stylesheet" href="/public/css/header.css">
<div class="header">
<ul class="headerMenu">
<li class="headerMenuElement"><a href="/"><svg class="headerMenuHamburger" src="/public/icones/hamburger-menu.svg"></svg></a></li>
<li><a class="headerLink" href="/"><img class="headerMenuHamburger" src="/public/icones/hamburger-menu.svg"></img></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="/actualite">Actualité</a></li>