mirror of
https://github.com/Alvin-Zilverstand/Schoolkantine.git
synced 2026-03-06 13:26:27 +01:00
Remove logo from the DOM and adjust menu bar styles for improved layout
This commit is contained in:
@@ -105,8 +105,11 @@ function showCategory(category) {
|
||||
document.getElementById('cart').classList.add('visible');
|
||||
document.querySelector('.cart-icon').classList.add('visible');
|
||||
|
||||
// Hide the logo
|
||||
document.querySelector('.logo').classList.add('hidden');
|
||||
// Remove the logo from the DOM
|
||||
const logo = document.querySelector('.logo');
|
||||
if (logo) {
|
||||
logo.remove();
|
||||
}
|
||||
}
|
||||
|
||||
// Functie om de details van een item weer te geven in het modaal
|
||||
@@ -126,7 +129,6 @@ function showItemDetails(item) {
|
||||
};
|
||||
|
||||
document.getElementById('modal').style.display = 'block';
|
||||
document.querySelector('.menu-bar').classList.add('dark'); // Add dark class to menu-bar
|
||||
}
|
||||
|
||||
// Functie om de beschrijving op te halen afhankelijk van de titel
|
||||
|
||||
@@ -34,10 +34,6 @@ body {
|
||||
flex-wrap: nowrap; /* Ensure all items are in a single row */
|
||||
}
|
||||
|
||||
.menu-bar.dark {
|
||||
background-color: #ff8c00; /* Darker background color when modal is open */
|
||||
}
|
||||
|
||||
.menu-item {
|
||||
background-color: #ff8c00;
|
||||
padding: 10px 20px;
|
||||
@@ -64,6 +60,10 @@ body {
|
||||
margin-top: 60px; /* Add margin to ensure it starts below the top bar */
|
||||
}
|
||||
|
||||
.menu-bar.top + .product-display {
|
||||
margin-top: 120px; /* Adjust margin when the menu bar is at the top */
|
||||
}
|
||||
|
||||
.product-box {
|
||||
width: 200px; /* Keep the width fixed */
|
||||
margin: 10px;
|
||||
|
||||
Reference in New Issue
Block a user