Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +73 -68
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;
|
@@ -16,11 +16,9 @@
|
|
16 |
display: flex;
|
17 |
flex-direction: column;
|
18 |
}
|
19 |
-
|
20 |
.container {
|
21 |
max-width: 900px;
|
22 |
}
|
23 |
-
|
24 |
.menu-card {
|
25 |
max-width: 350px;
|
26 |
border-radius: 15px;
|
@@ -30,25 +28,21 @@
|
|
30 |
display: flex;
|
31 |
flex-direction: column;
|
32 |
}
|
33 |
-
|
34 |
.menu-image {
|
35 |
height: 200px; /* Fixed height */
|
36 |
width: 100%; /* Full width of the card */
|
37 |
object-fit: fill; /* Ensure the image covers the area and maintains the aspect ratio */
|
38 |
border-radius: 15px 15px 0 0; /* Rounded top corners */
|
39 |
}
|
40 |
-
|
41 |
.card-title {
|
42 |
font-size: 1.2rem;
|
43 |
font-weight: bold;
|
44 |
margin: 10px 0;
|
45 |
}
|
46 |
-
|
47 |
.card-text {
|
48 |
font-size: 1rem;
|
49 |
color: #6c757d;
|
50 |
}
|
51 |
-
|
52 |
.btn-primary {
|
53 |
font-size: 13px;
|
54 |
font-weight: bold;
|
@@ -57,26 +51,22 @@
|
|
57 |
background-color: #0FAA39; /* Updated button background color */
|
58 |
border-color: #0FAA39;
|
59 |
}
|
60 |
-
|
61 |
.btn-primary:hover {
|
62 |
background-color: #0FAA39;
|
63 |
-
border-color: #
|
64 |
}
|
65 |
-
|
66 |
.btn-primary:active,
|
67 |
.btn-primary:focus {
|
68 |
-
background-color: #
|
69 |
border-color: #ffffff;
|
70 |
box-shadow: none;
|
71 |
}
|
72 |
-
|
73 |
.view-cart-container {
|
74 |
position: fixed;
|
75 |
bottom: 20px;
|
76 |
right: 20px;
|
77 |
z-index: 999;
|
78 |
}
|
79 |
-
|
80 |
.view-cart-button {
|
81 |
background-color: #0FAA39; /* Updated View Cart button background color */
|
82 |
color: #fff;
|
@@ -90,16 +80,13 @@
|
|
90 |
align-items: center;
|
91 |
justify-content: center;
|
92 |
}
|
93 |
-
|
94 |
.view-cart-button:hover {
|
95 |
background-color: #109835; /* Slightly darker shade for hover effect */
|
96 |
text-decoration: none;
|
97 |
}
|
98 |
-
|
99 |
.avatar-dropdown-container {
|
100 |
position: relative;
|
101 |
}
|
102 |
-
|
103 |
.avatar-icon {
|
104 |
width: 40px;
|
105 |
height: 40px;
|
@@ -113,7 +100,6 @@
|
|
113 |
font-size: 20px;
|
114 |
font-weight: bold;
|
115 |
}
|
116 |
-
|
117 |
.dropdown-menu {
|
118 |
position: absolute;
|
119 |
right: 0;
|
@@ -124,11 +110,19 @@
|
|
124 |
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
125 |
display: none;
|
126 |
}
|
127 |
-
|
128 |
.avatar-dropdown-container:hover .dropdown-menu {
|
129 |
display: block;
|
130 |
}
|
131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
.dropdown-menu .dropdown-item {
|
133 |
padding: 10px 15px;
|
134 |
text-decoration: none;
|
@@ -136,15 +130,12 @@
|
|
136 |
border-bottom: 1px solid #ddd;
|
137 |
display: block; /* Make each item stack vertically */
|
138 |
}
|
139 |
-
|
140 |
.dropdown-menu .dropdown-item:last-child {
|
141 |
border-bottom: none; /* Remove the bottom border from the last item */
|
142 |
}
|
143 |
-
|
144 |
.dropdown-menu .dropdown-item:hover {
|
145 |
background-color: #f1f1f1;
|
146 |
}
|
147 |
-
|
148 |
.fixed-search-container {
|
149 |
position: absolute;
|
150 |
top: 90px; /* Move it slightly lower */
|
@@ -158,25 +149,21 @@
|
|
158 |
border-radius: 25px;
|
159 |
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
|
160 |
}
|
161 |
-
|
162 |
/* Ensure the category filter dropdown does not overlap */
|
163 |
form.text-center.mb-4 {
|
164 |
margin-top: 10px; /* No margin at the top */
|
165 |
margin-bottom: 0px; /* Small space at the bottom */
|
166 |
}
|
167 |
-
|
168 |
/* Ensure the container has enough margin so nothing is overlapped */
|
169 |
.container {
|
170 |
margin-top: 10px; /* Adjust spacing based on navbar and search bar */
|
171 |
padding-top: 0 !important; /* Ensure no padding is added by default */
|
172 |
}
|
173 |
-
|
174 |
h1.text-center {
|
175 |
margin-top: 10px; /* Reduced space above */
|
176 |
padding-top: 0 !important; /* Removed padding */
|
177 |
font-weight: semi-bold; /* Make the "Menu" text bold */
|
178 |
}
|
179 |
-
|
180 |
.fixed-top-bar {
|
181 |
/* Remove the fixed positioning */
|
182 |
position: relative; /* Change from fixed to relative */
|
@@ -192,16 +179,6 @@ h1.text-center {
|
|
192 |
align-items: center; /* Vertically align items */
|
193 |
z-index: 1000; /* Make sure it's still above other content */
|
194 |
}
|
195 |
-
.avatar-dropdown-container {
|
196 |
-
position: absolute;
|
197 |
-
right: 20px; /* Adjust the value as needed to position it properly */
|
198 |
-
top: 50%; /* Adjust top to place it within the header */
|
199 |
-
transform: translateY(-50%); /* Correct the alignment to be perfectly centered */
|
200 |
-
display: flex;
|
201 |
-
align-items: right;
|
202 |
-
justify-content: center;
|
203 |
-
}
|
204 |
-
|
205 |
.search-bar-container {
|
206 |
padding: 10px;
|
207 |
position: absolute;
|
@@ -213,7 +190,6 @@ h1.text-center {
|
|
213 |
align-items: center;
|
214 |
width: 300px; /* Adjust width as needed */
|
215 |
}
|
216 |
-
|
217 |
.search-bar-container input {
|
218 |
width: 85%;
|
219 |
padding: 8px 10px 8px 30px; /* Add padding for the icon */
|
@@ -221,14 +197,12 @@ h1.text-center {
|
|
221 |
border-radius: 10px;
|
222 |
border: none;
|
223 |
}
|
224 |
-
|
225 |
.search-icon {
|
226 |
position: absolute;
|
227 |
left: 15px; /* Position the icon inside the input box */
|
228 |
font-size: 20px;
|
229 |
color: #888; /* Icon color */
|
230 |
}
|
231 |
-
|
232 |
/* Style for customization sections */
|
233 |
.addon-section {
|
234 |
background-color: #fff; /* Light gray background */
|
@@ -237,22 +211,71 @@ h1.text-center {
|
|
237 |
padding: 12px;
|
238 |
margin-bottom: 10px; /* Spacing between sections */
|
239 |
}
|
240 |
-
|
241 |
/* Customization section title */
|
242 |
.addon-section h6 {
|
243 |
margin-bottom: 10px;
|
244 |
font-size: 1.1rem;
|
245 |
font-weight: bold;
|
246 |
-
|
247 |
}
|
248 |
-
|
249 |
/* Style for add-on checkboxes */
|
250 |
.addon-section .form-check {
|
251 |
-
|
252 |
-
|
253 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
}
|
255 |
-
|
256 |
/* Category Filter with Custom Radio Buttons */
|
257 |
form.text-center.mb-4 {
|
258 |
display: flex;
|
@@ -261,7 +284,6 @@ form.text-center.mb-4 {
|
|
261 |
justify-content: center;
|
262 |
margin-bottom: 5px; /* Reduce bottom margin */
|
263 |
}
|
264 |
-
|
265 |
.form-check {
|
266 |
display: inline-block;
|
267 |
margin-right: 5px; /* Reduced space between radio button and label */
|
@@ -269,12 +291,10 @@ form.text-center.mb-4 {
|
|
269 |
margin-top: 10px; /* Adds space between categories and Customized Dish */
|
270 |
vertical-align: middle; /* Align radio buttons vertically */
|
271 |
}
|
272 |
-
|
273 |
.form-check-inline {
|
274 |
display: inline-block;
|
275 |
margin-right: 5px; /* Decrease space between each radio button */
|
276 |
}
|
277 |
-
|
278 |
.form-check-label {
|
279 |
display: inline-block;
|
280 |
font-size: 16px;
|
@@ -282,9 +302,8 @@ form.text-center.mb-4 {
|
|
282 |
vertical-align: middle; /* Align label vertically */
|
283 |
}
|
284 |
form-check-input addon-option{
|
285 |
-
color: #
|
286 |
}
|
287 |
-
|
288 |
.custom-radio {
|
289 |
appearance: none;
|
290 |
-webkit-appearance: none;
|
@@ -300,12 +319,10 @@ form-check-input addon-option{
|
|
300 |
display: inline-block;
|
301 |
vertical-align: middle; /* Align vertically with text */
|
302 |
}
|
303 |
-
|
304 |
.custom-radio:checked {
|
305 |
background-color: #4CAF50; /* Green color when checked */
|
306 |
border-color: #4CAF50; /* Matching border color */
|
307 |
}
|
308 |
-
|
309 |
.custom-radio:checked::after {
|
310 |
content: '';
|
311 |
position: relative;
|
@@ -313,17 +330,14 @@ form-check-input addon-option{
|
|
313 |
left: 5px;
|
314 |
border-radius: 50%;
|
315 |
}
|
316 |
-
|
317 |
.custom-radio:hover {
|
318 |
border-color: #388E3C;
|
319 |
}
|
320 |
-
|
321 |
/* Optional: Style the labels */
|
322 |
.form-check-label {
|
323 |
font-size: 16px;
|
324 |
margin-left: 8px; /* Space between the radio button and the label */
|
325 |
}
|
326 |
-
|
327 |
.cart-container {
|
328 |
display: flex;
|
329 |
align-items: center;
|
@@ -335,24 +349,20 @@ form-check-input addon-option{
|
|
335 |
justify-content: space-between; /* Space between quantity and Add to Cart button */
|
336 |
padding: 10px;
|
337 |
}
|
338 |
-
|
339 |
.modal-footer .d-flex {
|
340 |
display: flex;
|
341 |
align-items: center;
|
342 |
gap: 10px; /* Space between quantity buttons */
|
343 |
}
|
344 |
-
|
345 |
.modal-footer .btn {
|
346 |
height: 40px; /* Set consistent button height */
|
347 |
padding: 0 15px; /* Adjust padding to fit inside the buttons */
|
348 |
}
|
349 |
-
|
350 |
.modal-footer .form-control {
|
351 |
width: 50px; /* Fixed width for quantity input */
|
352 |
height: 40px; /* Match the height of buttons */
|
353 |
text-align: center; /* Center the value inside the input */
|
354 |
}
|
355 |
-
|
356 |
.modal-footer .btn-primary {
|
357 |
background-color: #0FAA39; /* Green background for Add to Cart button */
|
358 |
border-color: #0FAA39; /* Border color to match button background */
|
@@ -364,28 +374,23 @@ form-check-input addon-option{
|
|
364 |
align-items: center;
|
365 |
width: auto; /* Auto width to adjust to button text */
|
366 |
}
|
367 |
-
|
368 |
.modal-footer .btn-outline-secondary {
|
369 |
height: 40px; /* Ensure quantity buttons are the same size */
|
370 |
width: 40px; /* Make sure the buttons are square */
|
371 |
}
|
372 |
-
|
373 |
@media (max-width: 576px) {
|
374 |
/* Responsive adjustments for smaller screens */
|
375 |
.modal-dialog {
|
376 |
max-width: 98%; /* Adjust modal width for smaller screens */
|
377 |
}
|
378 |
-
|
379 |
.modal-footer .btn {
|
380 |
height: 35px; /* Smaller buttons for small screens */
|
381 |
}
|
382 |
-
|
383 |
.modal-footer .form-control {
|
384 |
width: 40px; /* Adjust input size for smaller screens */
|
385 |
height: 35px;
|
386 |
}
|
387 |
}
|
388 |
-
|
389 |
</style>
|
390 |
</head>
|
391 |
<body>
|
@@ -411,7 +416,7 @@ form-check-input addon-option{
|
|
411 |
</div>
|
412 |
|
413 |
<!-- Category Filter with Custom Radio Buttons -->
|
414 |
-
<form method="get" action="/
|
415 |
<label class="form-label fw-bold">Select a Category:</label>
|
416 |
<div class="form-check form-check-inline">
|
417 |
{% for category in categories %}
|
@@ -427,7 +432,7 @@ form-check-input addon-option{
|
|
427 |
<label class="form-check-label" for="category-CustomizedDish">Customized Dish</label>
|
428 |
</div>
|
429 |
</form>
|
430 |
-
|
431 |
<!-- Show menu items only when Customized Dish is not selected -->
|
432 |
<div class="container mt-4">
|
433 |
<h1 class="text-center">Menu</h1>
|
@@ -478,7 +483,7 @@ form-check-input addon-option{
|
|
478 |
|
479 |
<!-- View Cart Button -->
|
480 |
<div class="view-cart-container">
|
481 |
-
<a href="
|
482 |
View Cart
|
483 |
</a>
|
484 |
</div>
|
|
|
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;
|
|
|
16 |
display: flex;
|
17 |
flex-direction: column;
|
18 |
}
|
|
|
19 |
.container {
|
20 |
max-width: 900px;
|
21 |
}
|
|
|
22 |
.menu-card {
|
23 |
max-width: 350px;
|
24 |
border-radius: 15px;
|
|
|
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;
|
44 |
color: #6c757d;
|
45 |
}
|
|
|
46 |
.btn-primary {
|
47 |
font-size: 13px;
|
48 |
font-weight: bold;
|
|
|
51 |
background-color: #0FAA39; /* Updated button background color */
|
52 |
border-color: #0FAA39;
|
53 |
}
|
|
|
54 |
.btn-primary:hover {
|
55 |
background-color: #0FAA39;
|
56 |
+
border-color: #0FAA39;
|
57 |
}
|
|
|
58 |
.btn-primary:active,
|
59 |
.btn-primary:focus {
|
60 |
+
background-color: #0FAA39;
|
61 |
border-color: #ffffff;
|
62 |
box-shadow: none;
|
63 |
}
|
|
|
64 |
.view-cart-container {
|
65 |
position: fixed;
|
66 |
bottom: 20px;
|
67 |
right: 20px;
|
68 |
z-index: 999;
|
69 |
}
|
|
|
70 |
.view-cart-button {
|
71 |
background-color: #0FAA39; /* Updated View Cart button background color */
|
72 |
color: #fff;
|
|
|
80 |
align-items: center;
|
81 |
justify-content: center;
|
82 |
}
|
|
|
83 |
.view-cart-button:hover {
|
84 |
background-color: #109835; /* Slightly darker shade for hover effect */
|
85 |
text-decoration: none;
|
86 |
}
|
|
|
87 |
.avatar-dropdown-container {
|
88 |
position: relative;
|
89 |
}
|
|
|
90 |
.avatar-icon {
|
91 |
width: 40px;
|
92 |
height: 40px;
|
|
|
100 |
font-size: 20px;
|
101 |
font-weight: bold;
|
102 |
}
|
|
|
103 |
.dropdown-menu {
|
104 |
position: absolute;
|
105 |
right: 0;
|
|
|
110 |
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
111 |
display: none;
|
112 |
}
|
|
|
113 |
.avatar-dropdown-container:hover .dropdown-menu {
|
114 |
display: block;
|
115 |
}
|
116 |
+
.avatar-dropdown-container {
|
117 |
+
position: absolute;
|
118 |
+
right: 20px; /* Adjust the value as needed to position it properly */
|
119 |
+
top: 50%; /* Adjust top to place it within the header */
|
120 |
+
transform: translateY(-50%); /* Correct the alignment to be perfectly centered */
|
121 |
+
display: flex;
|
122 |
+
align-items: right;
|
123 |
+
justify-content: center;
|
124 |
+
}
|
125 |
+
|
126 |
.dropdown-menu .dropdown-item {
|
127 |
padding: 10px 15px;
|
128 |
text-decoration: none;
|
|
|
130 |
border-bottom: 1px solid #ddd;
|
131 |
display: block; /* Make each item stack vertically */
|
132 |
}
|
|
|
133 |
.dropdown-menu .dropdown-item:last-child {
|
134 |
border-bottom: none; /* Remove the bottom border from the last item */
|
135 |
}
|
|
|
136 |
.dropdown-menu .dropdown-item:hover {
|
137 |
background-color: #f1f1f1;
|
138 |
}
|
|
|
139 |
.fixed-search-container {
|
140 |
position: absolute;
|
141 |
top: 90px; /* Move it slightly lower */
|
|
|
149 |
border-radius: 25px;
|
150 |
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
|
151 |
}
|
|
|
152 |
/* Ensure the category filter dropdown does not overlap */
|
153 |
form.text-center.mb-4 {
|
154 |
margin-top: 10px; /* No margin at the top */
|
155 |
margin-bottom: 0px; /* Small space at the bottom */
|
156 |
}
|
|
|
157 |
/* Ensure the container has enough margin so nothing is overlapped */
|
158 |
.container {
|
159 |
margin-top: 10px; /* Adjust spacing based on navbar and search bar */
|
160 |
padding-top: 0 !important; /* Ensure no padding is added by default */
|
161 |
}
|
|
|
162 |
h1.text-center {
|
163 |
margin-top: 10px; /* Reduced space above */
|
164 |
padding-top: 0 !important; /* Removed padding */
|
165 |
font-weight: semi-bold; /* Make the "Menu" text bold */
|
166 |
}
|
|
|
167 |
.fixed-top-bar {
|
168 |
/* Remove the fixed positioning */
|
169 |
position: relative; /* Change from fixed to relative */
|
|
|
179 |
align-items: center; /* Vertically align items */
|
180 |
z-index: 1000; /* Make sure it's still above other content */
|
181 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
.search-bar-container {
|
183 |
padding: 10px;
|
184 |
position: absolute;
|
|
|
190 |
align-items: center;
|
191 |
width: 300px; /* Adjust width as needed */
|
192 |
}
|
|
|
193 |
.search-bar-container input {
|
194 |
width: 85%;
|
195 |
padding: 8px 10px 8px 30px; /* Add padding for the icon */
|
|
|
197 |
border-radius: 10px;
|
198 |
border: none;
|
199 |
}
|
|
|
200 |
.search-icon {
|
201 |
position: absolute;
|
202 |
left: 15px; /* Position the icon inside the input box */
|
203 |
font-size: 20px;
|
204 |
color: #888; /* Icon color */
|
205 |
}
|
|
|
206 |
/* Style for customization sections */
|
207 |
.addon-section {
|
208 |
background-color: #fff; /* Light gray background */
|
|
|
211 |
padding: 12px;
|
212 |
margin-bottom: 10px; /* Spacing between sections */
|
213 |
}
|
|
|
214 |
/* Customization section title */
|
215 |
.addon-section h6 {
|
216 |
margin-bottom: 10px;
|
217 |
font-size: 1.1rem;
|
218 |
font-weight: bold;
|
219 |
+
color: #343a40; /* Darker title text */
|
220 |
}
|
|
|
221 |
/* Style for add-on checkboxes */
|
222 |
.addon-section .form-check {
|
223 |
+
display: inline-flex; /* Display checkboxes horizontally */
|
224 |
+
align-items: center; /* Align checkboxes and labels */
|
225 |
+
margin-left: 10px; /* Space between checkboxes */
|
226 |
+
color: #343a40; /* Darker text color */
|
227 |
+
}
|
228 |
+
/* Customize the default checkbox */
|
229 |
+
.addon-section .form-check-input {
|
230 |
+
-webkit-appearance: none; /* Remove default checkbox styling in Webkit browsers (e.g. Chrome, Safari) */
|
231 |
+
-moz-appearance: none; /* Remove default checkbox styling in Firefox */
|
232 |
+
appearance: none; /* Remove default checkbox styling in all browsers */
|
233 |
+
width: 20px;
|
234 |
+
height: 20px;
|
235 |
+
border: 2px solid #343a40; /* Darker border color */
|
236 |
+
border-radius: 5px; /* Rounded corners */
|
237 |
+
background-color: #f0f0f0; /* Lighter gray background when unchecked */
|
238 |
+
position: relative;
|
239 |
+
margin-right: 10px; /* Add space between the checkbox and label */
|
240 |
+
}
|
241 |
+
|
242 |
+
/* Checked state for the custom checkbox */
|
243 |
+
.addon-section .form-check-input:checked {
|
244 |
+
background-color: #006400; /* Dark green background when checked */
|
245 |
+
border-color: #006400; /* Dark green border when checked */
|
246 |
+
}
|
247 |
+
/* Add the check mark when checkbox is checked */
|
248 |
+
.addon-section .form-check-input:checked::before {
|
249 |
+
content: ''; /* Unicode check mark */
|
250 |
+
font-size: 14px;
|
251 |
+
position: absolute;
|
252 |
+
top: 3px;
|
253 |
+
left: 4px;
|
254 |
+
color: white; /* White color for the check mark */
|
255 |
+
}
|
256 |
+
/* Hover effect for the checkboxes */
|
257 |
+
.addon-section .form-check-input:hover {
|
258 |
+
/* background-color: #006400; /* Slightly darker background on hover */
|
259 |
+
}
|
260 |
+
/* Focus effect on custom checkbox */
|
261 |
+
.addon-section .form-check-input:focus {
|
262 |
+
outline: none;
|
263 |
+
box-shadow: 0 0 0 2px #006400; /* Green focus outline */
|
264 |
+
}
|
265 |
+
/* Custom checkbox label styles */
|
266 |
+
.addon-section .form-check-label {
|
267 |
+
font-size: 16px;
|
268 |
+
margin-left: 5px;
|
269 |
+
cursor: pointer;
|
270 |
+
display: inline-block; /* Ensure label aligns correctly with checkbox */
|
271 |
+
vertical-align: middle; /* Align text vertically with the checkbox */
|
272 |
+
}
|
273 |
+
/* Fix alignment of text and checkbox */
|
274 |
+
.addon-section .form-check input[type="checkbox"],
|
275 |
+
.addon-section .form-check label {
|
276 |
+
display: inline-block;
|
277 |
+
/* vertical-align: middle; /* Align text and checkboxes vertically */
|
278 |
}
|
|
|
279 |
/* Category Filter with Custom Radio Buttons */
|
280 |
form.text-center.mb-4 {
|
281 |
display: flex;
|
|
|
284 |
justify-content: center;
|
285 |
margin-bottom: 5px; /* Reduce bottom margin */
|
286 |
}
|
|
|
287 |
.form-check {
|
288 |
display: inline-block;
|
289 |
margin-right: 5px; /* Reduced space between radio button and label */
|
|
|
291 |
margin-top: 10px; /* Adds space between categories and Customized Dish */
|
292 |
vertical-align: middle; /* Align radio buttons vertically */
|
293 |
}
|
|
|
294 |
.form-check-inline {
|
295 |
display: inline-block;
|
296 |
margin-right: 5px; /* Decrease space between each radio button */
|
297 |
}
|
|
|
298 |
.form-check-label {
|
299 |
display: inline-block;
|
300 |
font-size: 16px;
|
|
|
302 |
vertical-align: middle; /* Align label vertically */
|
303 |
}
|
304 |
form-check-input addon-option{
|
305 |
+
color: #333d47;
|
306 |
}
|
|
|
307 |
.custom-radio {
|
308 |
appearance: none;
|
309 |
-webkit-appearance: none;
|
|
|
319 |
display: inline-block;
|
320 |
vertical-align: middle; /* Align vertically with text */
|
321 |
}
|
|
|
322 |
.custom-radio:checked {
|
323 |
background-color: #4CAF50; /* Green color when checked */
|
324 |
border-color: #4CAF50; /* Matching border color */
|
325 |
}
|
|
|
326 |
.custom-radio:checked::after {
|
327 |
content: '';
|
328 |
position: relative;
|
|
|
330 |
left: 5px;
|
331 |
border-radius: 50%;
|
332 |
}
|
|
|
333 |
.custom-radio:hover {
|
334 |
border-color: #388E3C;
|
335 |
}
|
|
|
336 |
/* Optional: Style the labels */
|
337 |
.form-check-label {
|
338 |
font-size: 16px;
|
339 |
margin-left: 8px; /* Space between the radio button and the label */
|
340 |
}
|
|
|
341 |
.cart-container {
|
342 |
display: flex;
|
343 |
align-items: center;
|
|
|
349 |
justify-content: space-between; /* Space between quantity and Add to Cart button */
|
350 |
padding: 10px;
|
351 |
}
|
|
|
352 |
.modal-footer .d-flex {
|
353 |
display: flex;
|
354 |
align-items: center;
|
355 |
gap: 10px; /* Space between quantity buttons */
|
356 |
}
|
|
|
357 |
.modal-footer .btn {
|
358 |
height: 40px; /* Set consistent button height */
|
359 |
padding: 0 15px; /* Adjust padding to fit inside the buttons */
|
360 |
}
|
|
|
361 |
.modal-footer .form-control {
|
362 |
width: 50px; /* Fixed width for quantity input */
|
363 |
height: 40px; /* Match the height of buttons */
|
364 |
text-align: center; /* Center the value inside the input */
|
365 |
}
|
|
|
366 |
.modal-footer .btn-primary {
|
367 |
background-color: #0FAA39; /* Green background for Add to Cart button */
|
368 |
border-color: #0FAA39; /* Border color to match button background */
|
|
|
374 |
align-items: center;
|
375 |
width: auto; /* Auto width to adjust to button text */
|
376 |
}
|
|
|
377 |
.modal-footer .btn-outline-secondary {
|
378 |
height: 40px; /* Ensure quantity buttons are the same size */
|
379 |
width: 40px; /* Make sure the buttons are square */
|
380 |
}
|
|
|
381 |
@media (max-width: 576px) {
|
382 |
/* Responsive adjustments for smaller screens */
|
383 |
.modal-dialog {
|
384 |
max-width: 98%; /* Adjust modal width for smaller screens */
|
385 |
}
|
|
|
386 |
.modal-footer .btn {
|
387 |
height: 35px; /* Smaller buttons for small screens */
|
388 |
}
|
|
|
389 |
.modal-footer .form-control {
|
390 |
width: 40px; /* Adjust input size for smaller screens */
|
391 |
height: 35px;
|
392 |
}
|
393 |
}
|
|
|
394 |
</style>
|
395 |
</head>
|
396 |
<body>
|
|
|
416 |
</div>
|
417 |
|
418 |
<!-- Category Filter with Custom Radio Buttons -->
|
419 |
+
<form method="get" action="/menu" class="text-center mb-4">
|
420 |
<label class="form-label fw-bold">Select a Category:</label>
|
421 |
<div class="form-check form-check-inline">
|
422 |
{% for category in categories %}
|
|
|
432 |
<label class="form-check-label" for="category-CustomizedDish">Customized Dish</label>
|
433 |
</div>
|
434 |
</form>
|
435 |
+
|
436 |
<!-- Show menu items only when Customized Dish is not selected -->
|
437 |
<div class="container mt-4">
|
438 |
<h1 class="text-center">Menu</h1>
|
|
|
483 |
|
484 |
<!-- View Cart Button -->
|
485 |
<div class="view-cart-container">
|
486 |
+
<a href="{{ url_for('cart.cart') }}" class="view-cart-button">
|
487 |
View Cart
|
488 |
</a>
|
489 |
</div>
|