SAE15_2022/assets/css/header.css
Lyanis SOUIDI 1696faf654 Modification de styles
- Ajout d'un dark mode adaptatif
- Optimisation du CSS
2023-01-17 12:05:18 +01:00

77 lines
1.1 KiB
CSS

header {
overflow: hidden;
padding: 20px 10px;
height: max-content;
}
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;
}
}