SAE15_2022/assets/css/header.css
Lyanis SOUIDI 8513ef9d4d Correction de bug
Le contenu de la balise <main> passait par dessus le contenu de la balise <head> sur Firefox
2023-01-17 12:36:49 +01:00

78 lines
1.1 KiB
CSS

header {
overflow: hidden;
padding: 20px 10px;
height: max-content;
min-height: 100px;
}
header h1 {
float: left;
font-size: 25px;
font-weight: bold;
}
#menu li {
display: inline;
}
#menu li.active a {
background-color: dodgerblue;
color: white;
}
#menu li a:hover {
background-color: var(--c-menu-hover);
}
#menu li a {
color: var(--c-title);
padding: 12px;
text-decoration: none;
font-size: 18px;
line-height: 25px;
border-radius: 4px;
}
#burger-menu {
transform: translateY(25%);
}
@media screen and (min-width: 700px) {
#menu li a {
border-radius: 4px;
}
.visible {
display:block;
}
#menu {
float: right;
}
#burger-menu {
display: none;
float: right;
}
}
@media screen and (max-width: 700px) {
.invisible {
display : none;
}
#menu li a {
float: none;
display: block;
text-align: left;
}
#menu {
float: none;
margin-top: 80px;
padding: 0;
}
#burger-menu {
display: block;
float: right;
}
}