Invisible menu
-
After trying to improve my site I keep getting issue after issue and if anyone can help I’d be grateful.
My menu disappeared but after putting some code in it came back but its invisible! I can click all the way down it but I just cant see it. Please help!
The code I put in add css is :
/* Ensure the mobile menu button is visible */
.mobile-menu-button {
display: block;
cursor: pointer;
}/* Style the menu toggle button */ menu-toggle {
position: absolute; top: 10px; left: 10px; z-index: 1001; /* Ensure it is above the menu */
} hamburger, #cross {
display: block; width: 30px; height: 2px; background: #000; margin: 6px 0;
}
/* Hide cross initially */ cross {
display: none;
}
/* Show the hamburger initially */ menu-toggle.toggled #hamburger {
display: none;
} menu-toggle.toggled #cross {
display: block;
}
/* Initially hide the navigation for mobile */ site-navigation {
display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #101573; /* Background color for the menu */ z-index: 1000; /* Ensure it is on top */ transform: translateX(-100%); /* Hide off-screen initially */ transition: transform 0.3s ease-in-out; overflow-y: auto; /* Enable scrolling if content is too tall */ color: #ffffff; /* Ensure text color is white */
} site-navigation.toggled {
display: block; transform: translateX(0); /* Bring on-screen when toggled */
}
/* Style the menu items */ site-navigation .menu {
list-style: none; padding: 0; margin: 0;
} site-navigation .menu li {
padding: 10px 20px; border-bottom: 1px solid #ccc; /* Optional: Add a border between items */
} site-navigation .menu li a {
color: #ffffff !important; /* Ensure text color is white */ text-decoration: none; display: block;
}
/* Style the mobile navigation / @media screen and (min-width: 768px) { .mobile-menu-button { display: none; / Hide the button on larger screens */
}#site-navigation { display: block; /* Show the navigation on larger screens */ position: relative; width: auto; height: auto; background-color: transparent; transform: none; } #site-navigation .menu li { display: inline-block; border: none; } #site-navigation .menu li a { color: #ffffff !important; /* Adjust for larger screens if needed */ }
}
The page I need help with: [log in to see the link]
- The topic ‘Invisible menu’ is closed to new replies.