Spaces:
Sleeping
Sleeping
Update templates/menu.html (#10)
Browse files- Update templates/menu.html (c2086350e4206775c2fb4edb9a9cc1c65d97e7c8)
Co-authored-by: D Satish Chandra <[email protected]>
- templates/menu.html +21 -18
templates/menu.html
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
9 |
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
|
10 |
<style>
|
11 |
-
|
12 |
font-family: Arial, sans-serif;
|
13 |
background-color: #fdf4e3; /* Updated background color */
|
14 |
margin: 0;
|
@@ -18,7 +18,6 @@
|
|
18 |
}
|
19 |
.container {
|
20 |
max-width: 900px;
|
21 |
-
/*margin-top: 10px; /* Adjust spacing to control space between filter and menu */
|
22 |
}
|
23 |
.menu-card {
|
24 |
max-width: 350px;
|
@@ -26,16 +25,19 @@
|
|
26 |
overflow: hidden;
|
27 |
background-color: #fff;
|
28 |
margin: auto;
|
|
|
|
|
29 |
}
|
30 |
.menu-image {
|
31 |
-
height: 200px;
|
32 |
-
width: 100%;
|
33 |
-
object-fit:
|
34 |
-
border-radius: 15px 15px 0 0;
|
35 |
}
|
36 |
.card-title {
|
37 |
font-size: 1.2rem;
|
38 |
font-weight: bold;
|
|
|
39 |
}
|
40 |
.card-text {
|
41 |
font-size: 1rem;
|
@@ -203,28 +205,27 @@ h1.text-center {
|
|
203 |
/* Style for customization sections */
|
204 |
.addon-section {
|
205 |
background-color: #fff; /* Light gray background */
|
206 |
-
border: 2px solid #
|
207 |
border-radius: 8px;
|
208 |
padding: 12px;
|
209 |
margin-bottom: 10px; /* Spacing between sections */
|
210 |
-
|
211 |
}
|
212 |
/* Customization section title */
|
213 |
.addon-section h6 {
|
214 |
margin-bottom: 10px;
|
215 |
font-size: 1.1rem;
|
216 |
font-weight: bold;
|
217 |
-
color: #
|
218 |
}
|
219 |
/* Style for add-on checkboxes */
|
220 |
.addon-section .form-check {
|
221 |
margin-left: 10px;
|
|
|
|
|
222 |
}
|
223 |
/* Category Filter with Custom Radio Buttons */
|
224 |
form.text-center.mb-4 {
|
225 |
display: flex;
|
226 |
-
/*flex-wrap: wrap; /* Allow wrapping if needed */
|
227 |
-
/*gap: 15px;/* Add gap between the radio buttons */
|
228 |
flex-direction: column;
|
229 |
align-items: center;
|
230 |
justify-content: center;
|
@@ -232,15 +233,14 @@ form.text-center.mb-4 {
|
|
232 |
}
|
233 |
.form-check {
|
234 |
display: inline-block;
|
235 |
-
margin-right:
|
236 |
margin-bottom: 0; /* Remove bottom margin */
|
237 |
margin-top: 10px; /* Adds space between categories and Customized Dish */
|
238 |
-
|
239 |
-
/* vertical-align: middle; /* Align radio buttons vertically */
|
240 |
}
|
241 |
.form-check-inline {
|
242 |
display: inline-block;
|
243 |
-
margin-right:
|
244 |
}
|
245 |
.form-check-label {
|
246 |
display: inline-block;
|
@@ -248,6 +248,9 @@ form.text-center.mb-4 {
|
|
248 |
margin-left: 5px; /* Spacing between radio button and label */
|
249 |
vertical-align: middle; /* Align label vertically */
|
250 |
}
|
|
|
|
|
|
|
251 |
.custom-radio {
|
252 |
appearance: none;
|
253 |
-webkit-appearance: none;
|
@@ -256,11 +259,12 @@ form.text-center.mb-4 {
|
|
256 |
height: 20px;
|
257 |
border: 3px solid #4CAF50; /* Green border */
|
258 |
border-radius: 50%;
|
|
|
259 |
outline: none;
|
260 |
cursor: pointer;
|
261 |
position: relative;
|
262 |
display: inline-block;
|
263 |
-
|
264 |
}
|
265 |
.custom-radio:checked {
|
266 |
background-color: #4CAF50; /* Green color when checked */
|
@@ -272,7 +276,6 @@ form.text-center.mb-4 {
|
|
272 |
top: 5px;
|
273 |
left: 5px;
|
274 |
border-radius: 50%;
|
275 |
-
padding: 15px;
|
276 |
}
|
277 |
.custom-radio:hover {
|
278 |
border-color: #388E3C;
|
@@ -280,7 +283,7 @@ form.text-center.mb-4 {
|
|
280 |
/* Optional: Style the labels */
|
281 |
.form-check-label {
|
282 |
font-size: 16px;
|
283 |
-
margin-left:
|
284 |
}
|
285 |
.cart-container {
|
286 |
display: flex;
|
|
|
8 |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
9 |
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
|
10 |
<style>
|
11 |
+
body {
|
12 |
font-family: Arial, sans-serif;
|
13 |
background-color: #fdf4e3; /* Updated background color */
|
14 |
margin: 0;
|
|
|
18 |
}
|
19 |
.container {
|
20 |
max-width: 900px;
|
|
|
21 |
}
|
22 |
.menu-card {
|
23 |
max-width: 350px;
|
|
|
25 |
overflow: hidden;
|
26 |
background-color: #fff;
|
27 |
margin: auto;
|
28 |
+
display: flex;
|
29 |
+
flex-direction: column;
|
30 |
}
|
31 |
.menu-image {
|
32 |
+
height: 200px; /* Fixed height */
|
33 |
+
width: 100%; /* Full width of the card */
|
34 |
+
object-fit: fill; /* Ensure the image covers the area and maintains the aspect ratio */
|
35 |
+
border-radius: 15px 15px 0 0; /* Rounded top corners */
|
36 |
}
|
37 |
.card-title {
|
38 |
font-size: 1.2rem;
|
39 |
font-weight: bold;
|
40 |
+
margin: 10px 0;
|
41 |
}
|
42 |
.card-text {
|
43 |
font-size: 1rem;
|
|
|
205 |
/* Style for customization sections */
|
206 |
.addon-section {
|
207 |
background-color: #fff; /* Light gray background */
|
208 |
+
border: 2px solid #6c757d; /* Border color */
|
209 |
border-radius: 8px;
|
210 |
padding: 12px;
|
211 |
margin-bottom: 10px; /* Spacing between sections */
|
|
|
212 |
}
|
213 |
/* Customization section title */
|
214 |
.addon-section h6 {
|
215 |
margin-bottom: 10px;
|
216 |
font-size: 1.1rem;
|
217 |
font-weight: bold;
|
218 |
+
/*color: #6c757d; */
|
219 |
}
|
220 |
/* Style for add-on checkboxes */
|
221 |
.addon-section .form-check {
|
222 |
margin-left: 10px;
|
223 |
+
color: #6c757d;
|
224 |
+
|
225 |
}
|
226 |
/* Category Filter with Custom Radio Buttons */
|
227 |
form.text-center.mb-4 {
|
228 |
display: flex;
|
|
|
|
|
229 |
flex-direction: column;
|
230 |
align-items: center;
|
231 |
justify-content: center;
|
|
|
233 |
}
|
234 |
.form-check {
|
235 |
display: inline-block;
|
236 |
+
margin-right: 5px; /* Reduced space between radio button and label */
|
237 |
margin-bottom: 0; /* Remove bottom margin */
|
238 |
margin-top: 10px; /* Adds space between categories and Customized Dish */
|
239 |
+
vertical-align: middle; /* Align radio buttons vertically */
|
|
|
240 |
}
|
241 |
.form-check-inline {
|
242 |
display: inline-block;
|
243 |
+
margin-right: 5px; /* Decrease space between each radio button */
|
244 |
}
|
245 |
.form-check-label {
|
246 |
display: inline-block;
|
|
|
248 |
margin-left: 5px; /* Spacing between radio button and label */
|
249 |
vertical-align: middle; /* Align label vertically */
|
250 |
}
|
251 |
+
form-check-input addon-option{
|
252 |
+
color: #78706E;
|
253 |
+
}
|
254 |
.custom-radio {
|
255 |
appearance: none;
|
256 |
-webkit-appearance: none;
|
|
|
259 |
height: 20px;
|
260 |
border: 3px solid #4CAF50; /* Green border */
|
261 |
border-radius: 50%;
|
262 |
+
margin-right: -5px; /* Reduced spacing between button and label */
|
263 |
outline: none;
|
264 |
cursor: pointer;
|
265 |
position: relative;
|
266 |
display: inline-block;
|
267 |
+
vertical-align: middle; /* Align vertically with text */
|
268 |
}
|
269 |
.custom-radio:checked {
|
270 |
background-color: #4CAF50; /* Green color when checked */
|
|
|
276 |
top: 5px;
|
277 |
left: 5px;
|
278 |
border-radius: 50%;
|
|
|
279 |
}
|
280 |
.custom-radio:hover {
|
281 |
border-color: #388E3C;
|
|
|
283 |
/* Optional: Style the labels */
|
284 |
.form-check-label {
|
285 |
font-size: 16px;
|
286 |
+
margin-left: 8px; /* Space between the radio button and the label */
|
287 |
}
|
288 |
.cart-container {
|
289 |
display: flex;
|