Files
Schoolkantine/website/style.css

140 lines
2.8 KiB
CSS

/* Algemene body */
body {
font-family: Arial, sans-serif;
margin: 0;
display: flex;
justify-content: space-between; /* Ensure the body content is spaced between */
background-color: #f2c14e; /* Set the background color to yellow */
}
/* Linkerkant menu */
.menu-list {
width: 30%;
background-color: #f2c14e;
padding: 20px;
height: 100vh;
overflow-y: auto;
order: 1; /* Ensure the menu is on the left */
}
.menu-list h2 {
color: #d32f2f;
font-size: 2em;
margin-bottom: 20px;
}
.menu-item {
background-color: #fff;
padding: 20px; /* Increase padding for larger buttons */
margin: 10px 0;
border-radius: 8px;
cursor: pointer;
font-size: 1.5em; /* Increase font size for larger buttons */
transition: all 0.3s ease;
}
.menu-item:hover {
background-color: #f59e42;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Productweergave in mooie hokjes */
.product-display {
width: 70%;
display: flex;
flex-wrap: wrap;
padding: 20px;
}
.product-box {
width: 200px;
margin: 10px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
cursor: pointer;
}
.menu-detail img {
width: 70%;
max-width: 300px;
max-height: 400px;
margin-bottom: 20px;
}
.menu-detail h2 {
color: #d32f2f;
margin: 10px 0;
}
.menu-item:hover {
background-color: #f59e42;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Modaal venster (pop-up) */
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
overflow: auto; /* Allow scrolling within the modal */
}
.modal-content {
background-color: white;
margin: 5% auto; /* Reduce margin to fit more content */
padding: 20px;
border-radius: 8px;
width: 80%; /* Increase width to fit more content */
max-width: 600px; /* Set a maximum width */
text-align: center;
max-height: 90vh; /* Ensure the modal content fits within the viewport height */
overflow-y: auto; /* Allow vertical scrolling within the modal */
}
.modal img {
width: 100%;
max-width: 300px; /* Ensure the image fits within the modal */
height: auto; /* Maintain aspect ratio */
margin: 20px 0;
}
.close {
position: absolute;
top: 10px;
right: 20px;
font-size: 30px;
font-weight: bold;
cursor: pointer;
}
#add-to-cart {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
margin-top: 20px;
}
#add-to-cart:hover {
background-color: #45a049;
}
/* Footer */
footer {
text-align: center;
padding: 20px;
background-color: #f2c14e;
position: fixed;
bottom: 0;
width: 100%;
}