Files
Schoolkantine/website/style.css

140 lines
2.8 KiB
CSS
Raw Normal View History

2025-02-12 09:47:28 +01:00
/* 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 */
}
2025-02-12 09:47:28 +01:00
/* 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 */
2025-02-12 09:47:28 +01:00
transition: all 0.3s ease;
}
.menu-item:hover {
background-color: #f59e42;
2025-02-12 09:47:28 +01:00
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
2025-02-12 09:47:28 +01:00
/* Productweergave in mooie hokjes */
.product-display {
width: 70%;
2025-02-12 09:47:28 +01:00
display: flex;
flex-wrap: wrap;
padding: 20px;
}
2025-02-12 09:47:28 +01:00
.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 {
2025-02-12 11:30:35 +01:00
color: #d32f2f;
margin: 10px 0;
2025-02-12 10:05:33 +01:00
}
.menu-item:hover {
background-color: #f59e42;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
2025-02-12 09:47:28 +01:00
/* 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 */
2025-02-12 09:47:28 +01:00
}
.modal-content {
background-color: white;
margin: 5% auto; /* Reduce margin to fit more content */
2025-02-12 09:47:28 +01:00
padding: 20px;
border-radius: 8px;
width: 80%; /* Increase width to fit more content */
max-width: 600px; /* Set a maximum width */
2025-02-12 09:47:28 +01:00
text-align: center;
max-height: 90vh; /* Ensure the modal content fits within the viewport height */
overflow-y: auto; /* Allow vertical scrolling within the modal */
2025-02-12 09:47:28 +01:00
}
.modal img {
width: 100%;
max-width: 300px; /* Ensure the image fits within the modal */
height: auto; /* Maintain aspect ratio */
margin: 20px 0;
}
2025-02-12 09:47:28 +01:00
.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: 0px;
background-color: #f2c14e;
position: fixed;
bottom: 0;
width: 100%;
2025-02-12 09:35:04 +01:00
}