SAE15_2022/assets/css/header.css

78 lines
1.1 KiB
CSS
Raw Normal View History

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-a-secondary);
}
#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;
}
}