Spaces:
Runtime error
Runtime error
Update templates/cart.html
Browse files- templates/cart.html +6 -34
templates/cart.html
CHANGED
|
@@ -131,10 +131,10 @@
|
|
| 131 |
background-color: #f8f9fa;
|
| 132 |
border-radius: 10px;
|
| 133 |
}
|
| 134 |
-
|
| 135 |
display: flex;
|
| 136 |
-
align-items: center; /*
|
| 137 |
-
justify-content: space-between; /* Space
|
| 138 |
padding: 10px 0;
|
| 139 |
}
|
| 140 |
|
|
@@ -143,43 +143,14 @@
|
|
| 143 |
height: 50px;
|
| 144 |
object-fit: cover;
|
| 145 |
border-radius: 5px;
|
| 146 |
-
margin-right: 10px; /*
|
| 147 |
}
|
| 148 |
|
| 149 |
-
/* Media Query for smaller screens (mobile) */
|
| 150 |
-
@media screen and (max-width: 768px) {
|
| 151 |
-
.suggestion-item {
|
| 152 |
-
flex-direction: column; /* Stack items vertically on smaller screens */
|
| 153 |
-
align-items: flex-start; /* Align items to the left */
|
| 154 |
-
}
|
| 155 |
-
|
| 156 |
-
.suggestion-item img {
|
| 157 |
-
margin-bottom: 10px; /* Add space between image and text when stacked */
|
| 158 |
-
}
|
| 159 |
-
|
| 160 |
-
.suggestion-item button {
|
| 161 |
-
width: 100%; /* Ensure the button takes up full width on mobile */
|
| 162 |
-
margin-top: 10px; /* Space between button and text */
|
| 163 |
-
}
|
| 164 |
-
}
|
| 165 |
-
|
| 166 |
-
/* Media Query for larger screens (desktop) */
|
| 167 |
-
@media screen and (min-width: 769px) {
|
| 168 |
-
.suggestion-item {
|
| 169 |
-
flex-direction: row; /* Keep items aligned horizontally */
|
| 170 |
-
align-items: center; /* Align items at the center vertically */
|
| 171 |
-
}
|
| 172 |
-
|
| 173 |
-
.suggestion-item button {
|
| 174 |
-
width: auto; /* Reset button width on larger screens */
|
| 175 |
-
}
|
| 176 |
-
}
|
| 177 |
-
|
| 178 |
-
|
| 179 |
.suggestion-item div {
|
| 180 |
display: flex;
|
| 181 |
flex-direction: column;
|
| 182 |
justify-content: center;
|
|
|
|
| 183 |
}
|
| 184 |
|
| 185 |
.suggestion-item button {
|
|
@@ -193,6 +164,7 @@
|
|
| 193 |
height: 44px;
|
| 194 |
cursor: pointer;
|
| 195 |
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
|
|
|
|
| 196 |
}
|
| 197 |
|
| 198 |
.suggestion-item button:hover {
|
|
|
|
| 131 |
background-color: #f8f9fa;
|
| 132 |
border-radius: 10px;
|
| 133 |
}
|
| 134 |
+
.suggestion-item {
|
| 135 |
display: flex;
|
| 136 |
+
align-items: center; /* Vertically align image and text */
|
| 137 |
+
justify-content: space-between; /* Space between the image/text and the button */
|
| 138 |
padding: 10px 0;
|
| 139 |
}
|
| 140 |
|
|
|
|
| 143 |
height: 50px;
|
| 144 |
object-fit: cover;
|
| 145 |
border-radius: 5px;
|
| 146 |
+
margin-right: 10px; /* Spacing between the image and the text */
|
| 147 |
}
|
| 148 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
.suggestion-item div {
|
| 150 |
display: flex;
|
| 151 |
flex-direction: column;
|
| 152 |
justify-content: center;
|
| 153 |
+
flex-grow: 1; /* Allow the text to take up the available space */
|
| 154 |
}
|
| 155 |
|
| 156 |
.suggestion-item button {
|
|
|
|
| 164 |
height: 44px;
|
| 165 |
cursor: pointer;
|
| 166 |
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
|
| 167 |
+
margin-left: auto; /* Push button to the right */
|
| 168 |
}
|
| 169 |
|
| 170 |
.suggestion-item button:hover {
|