engler-labs/static-old2/css/styles.css
2025-02-26 11:56:11 +01:00

93 lines
1.4 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.navbar {
background-color: #333;
padding: 0.5rem 1rem;
position: relative;
}
.navbar-container {
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}
.logo {
font-size: 1.5rem;
text-decoration: none;
color: white;
}
.nav-links {
list-style: none;
display: flex;
gap: 1rem;
position: relative;
overflow: hidden;
}
.nav-links.active {
height: auto; /* Expand naturally */
visibility: visible;
opacity: 1;
}
.nav-links a {
text-decoration: none;
color: white;
transition: color 0.3s ease;
padding: 10px 12px;
}
.nav-links a:hover {
background-color: #888;
}
.menu-toggle {
display: none;
font-size: 1.5rem;
color: white;
background: none;
border: none;
cursor: pointer;
}
/* Responsive Styles */
/* Mobile View Styles */
@media (max-width: 768px) {
.menu-toggle {
display: block;
}
.nav-links {
flex-direction: column;
background-color: #444;
position: absolute;
top: 100%;
left: 0;
width: 100%;
opacify: 0;
overflow: hidden;
height: 0;
visibility: hidden;
display: flex;
}
/* .nav-links.active { */
/* height: 2rem; /* Expanded state */ */
/* visibility: visible; */
/* opacity: 1; */
/* } */
/**/
/* .nav-links a { */
/* padding: 0.5rem 1rem; */
/* text-align: center; */
/* height: 1rem; */
/* } */
}