Files
kidsai/html/drone/css/components/mobile-menu.css
2025-06-24 15:43:32 +02:00

71 lines
1.4 KiB
CSS

/* Mobile navigation styles */
/* Mobile toggle button */
.mobile-toggle {
display: none;
font-size: 1.75rem;
color: var(--primary-color);
background: none;
border: none;
cursor: pointer;
padding: 0.5rem;
z-index: 1000;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
.mobile-toggle {
display: block; /* Show on mobile */
}
.main-nav {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: var(--bg-light);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
z-index: 999;
border-radius: 0 0 10px 10px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.main-nav.active {
display: block;
}
.main-nav ul {
flex-direction: column;
width: 100%;
padding: 1rem 0;
gap: 0;
}
.main-nav li {
margin: 0;
width: 100%;
text-align: center;
}
.main-nav a {
display: block;
padding: 0.75rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
width: 100%;
}
.main-nav a:hover::after,
.main-nav a.active::after {
display: none;
}
/* Ensure footer copyright is visible and properly formatted on mobile */
footer .container p {
text-align: center;
font-size: 0.9rem;
margin: 0;
padding: 1rem 0;
}
}