nagasurendra commited on
Commit
43f83bb
·
verified ·
1 Parent(s): 006f8f9

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +33 -3
templates/cart.html CHANGED
@@ -133,8 +133,8 @@
133
  }
134
  .suggestion-item {
135
  display: flex;
136
- align-items: center; /* Vertically align image and text */
137
- justify-content: flex-start; /* Align items to the start */
138
  padding: 10px 0;
139
  }
140
 
@@ -143,9 +143,39 @@
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;
 
133
  }
134
  .suggestion-item {
135
  display: flex;
136
+ align-items: center; /* Align items vertically */
137
+ justify-content: space-between; /* Space out the content */
138
  padding: 10px 0;
139
  }
140
 
 
143
  height: 50px;
144
  object-fit: cover;
145
  border-radius: 5px;
146
+ margin-right: 10px; /* Space between the image and text */
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;