109 lines
1.6 KiB
CSS
109 lines
1.6 KiB
CSS
header {
|
|
overflow: hidden;
|
|
padding: 20px 10px;
|
|
height: max-content;
|
|
min-height: 100px;
|
|
}
|
|
|
|
header div {
|
|
max-width: 1280px;
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
padding-right: 1rem;
|
|
padding-left: 1rem;
|
|
}
|
|
|
|
header #logo {
|
|
filter: invert(100%);
|
|
}
|
|
|
|
#burger-menu {
|
|
transform: translateY(25%);
|
|
filter: invert(100%);
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
header {
|
|
background-color: #edecec;
|
|
}
|
|
|
|
#burger-menu {
|
|
filter: none;
|
|
}
|
|
|
|
header #logo {
|
|
filter: none;
|
|
}
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
@media screen and (min-width: 700px) {
|
|
header #logo {
|
|
float: left;
|
|
}
|
|
|
|
#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;
|
|
}
|
|
} |