mirror of
https://github.com/Alvin-Zilverstand/Schoolkantine.git
synced 2026-03-06 21:36:27 +01:00
j
This commit is contained in:
@@ -238,13 +238,22 @@ body {
|
|||||||
right: 0; /* Align the cart to the right */
|
right: 0; /* Align the cart to the right */
|
||||||
top: 60px; /* Ensure it starts below the categories bar */
|
top: 60px; /* Ensure it starts below the categories bar */
|
||||||
flex-direction: column; /* Ensure the content is arranged in a column */
|
flex-direction: column; /* Ensure the content is arranged in a column */
|
||||||
|
overflow-y: auto; /* Enable vertical scrolling if content exceeds max-height */
|
||||||
|
max-height: 80vh; /* Set a maximum height for the cart */
|
||||||
}
|
}
|
||||||
|
|
||||||
.cart ul {
|
.cart ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cart li {
|
||||||
|
padding: 10px 0; /* Space out the items */
|
||||||
|
border-bottom: 1px solid #eee; /* Add a bottom border to each item */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.cart li {
|
.cart li {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
@@ -263,16 +272,7 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
border-bottom: 1px solid #ff9d3b;
|
border-bottom: 2px solid #ff9d3b;
|
||||||
}
|
|
||||||
|
|
||||||
.cart-item button {
|
|
||||||
background-color: #d32f2f;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
padding: 5px 10px;
|
|
||||||
cursor: pointer;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.cart-item button:hover {
|
.cart-item button:hover {
|
||||||
|
|||||||
Reference in New Issue
Block a user