100 lines
1.7 KiB
CSS
100 lines
1.7 KiB
CSS
#navigation {
|
|
position: relative;
|
|
z-index: 2;
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
padding: 12px;
|
|
-webkit-backdrop-filter: blur(4px);
|
|
backdrop-filter: blur(4px);
|
|
margin-bottom: -70px;
|
|
outline: 1px solid rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
#navigation a {
|
|
text-decoration: none;
|
|
color: #ffffff;
|
|
}
|
|
|
|
#navigation ul {
|
|
display: flex;
|
|
gap: 18px;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: baseline;
|
|
list-style-type: none;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#navigation a {
|
|
padding: 8px;
|
|
display: inline-block;
|
|
transition: background-color 0.25s ease-in-out;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#navigation a:hover,
|
|
#navigation a:focus-visible {
|
|
outline: 1px solid rgba(255, 255, 255, 0.05);
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
#navigation img {
|
|
height: 1em;
|
|
object-fit: contain;
|
|
}
|
|
|
|
#navigation .icon-button a {
|
|
padding: 8px;
|
|
}
|
|
|
|
#navigation .icon-button {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
#navigation .icon-button img {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#navigation .menu-button {
|
|
display: none;
|
|
}
|
|
|
|
/* Breakpoints */
|
|
|
|
@media (max-width: 512px) {
|
|
#navigation nav ul {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
#navigation nav ul li {
|
|
display: none;
|
|
}
|
|
|
|
#navigation li.menu-button,
|
|
#navigation li.home-button,
|
|
#navigation li.contact-button {
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Hide all buttons except home and menu */
|
|
/*#navigation nav ul li *:not(a.menu-button),
|
|
#navigation :not(a.home-button) {
|
|
display: none;
|
|
}*/
|
|
|
|
#navigation.open {
|
|
background-color: rgba(59, 66, 82, 1);
|
|
}
|
|
|
|
#navigation.open ul {
|
|
justify-content: space-between;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#navigation.open nav ul li {
|
|
display: inline-block;
|
|
}
|
|
}
|