Zelyanoth's picture
fff
25f22bf
raw
history blame
2.17 kB
/* Header.css - Styles for the Header component */
/* Ensure the header content doesn't overflow */
.header-content {
overflow: hidden;
}
/* Desktop layout */
@media (min-width: 1024px) {
.header-content > .hidden.lg\:flex {
width: 100%;
}
}
/* Mobile layout adjustments */
@media (max-width: 1023px) {
.header-content > .lg\:hidden.grid {
width: 100%;
}
/* Ensure the mobile menu button is properly aligned */
.header-content > .lg\:hidden.grid > .justify-self-end {
justify-self: end;
}
}
/* Mobile menu overlay */
.mobile-menu-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 40;
}
/* Mobile menu content */
.mobile-menu-content {
background: white;
width: 100%;
min-height: 100vh;
overflow-y: auto;
position: relative;
}
/* Ensure mobile menu items are visible */
.mobile-menu-content .space-y-1 > a {
display: flex;
align-items: center;
padding: 12px 16px;
font-size: 16px;
color: #374151;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.2s, color 0.2s;
}
.mobile-menu-content .space-y-1 > a:hover {
background-color: #f3f4f6;
color: #2563eb;
}
/* Animation classes */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideIn {
from { transform: translateX(100%); }
to { transform: translateX(0); }
}
.animate-fade-in {
animation: fadeIn 0.3s ease-in-out;
}
.animate-slide-in {
animation: slideIn 0.3s ease-in-out;
}
/* Ensure mobile menu is visible */
#mobile-menu {
display: block !important;
}
/* Responsive adjustments for mobile menu */
@media (max-width: 768px) {
.mobile-menu-content {
max-width: 100%;
}
.mobile-nav-item {
padding: 16px 20px;
font-size: 18px;
}
.mobile-nav-icon {
width: 24px;
height: 24px;
}
/* Ensure mobile menu items are visible on small screens */
.mobile-menu-content .space-y-1 > a {
padding: 16px 20px;
font-size: 18px;
}
}
/* Ensure all content in mobile menu is visible */
#mobile-menu .flex-col {
min-height: 100vh;
}
#mobile-menu .flex-1 {
flex: 1 1 0%;
}