Spaces:
Runtime error
Runtime error
Update templates/menu.html
Browse files- templates/menu.html +13 -3
templates/menu.html
CHANGED
|
@@ -509,19 +509,23 @@
|
|
| 509 |
align-items: flex-start; /* Align to the left */
|
| 510 |
justify-content: flex-start; /* Align to the top */
|
| 511 |
margin-bottom: 20px;
|
|
|
|
| 512 |
}
|
|
|
|
| 513 |
.form-label {
|
| 514 |
font-size: 1.2rem;
|
| 515 |
font-weight: 600;
|
| 516 |
color: #333;
|
| 517 |
margin-bottom: 10px;
|
| 518 |
}
|
|
|
|
| 519 |
.toggle-container {
|
| 520 |
display: flex;
|
| 521 |
align-items: center;
|
| 522 |
gap: 10px;
|
| 523 |
margin: 8px 0;
|
| 524 |
}
|
|
|
|
| 525 |
.custom-toggle {
|
| 526 |
appearance: none;
|
| 527 |
width: 48px;
|
|
@@ -532,9 +536,11 @@
|
|
| 532 |
cursor: pointer;
|
| 533 |
transition: background-color 0.3s ease;
|
| 534 |
}
|
|
|
|
| 535 |
.custom-toggle:checked {
|
| 536 |
-
background: linear-gradient(45deg, #
|
| 537 |
}
|
|
|
|
| 538 |
.custom-toggle::before {
|
| 539 |
content: '';
|
| 540 |
position: absolute;
|
|
@@ -547,14 +553,17 @@
|
|
| 547 |
transition: transform 0.3s ease;
|
| 548 |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
| 549 |
}
|
|
|
|
| 550 |
.custom-toggle:checked::before {
|
| 551 |
-
transform: translateX(24px);
|
| 552 |
}
|
|
|
|
| 553 |
.toggle-container label {
|
| 554 |
font-size: 1rem;
|
| 555 |
color: #333;
|
| 556 |
cursor: pointer;
|
| 557 |
}
|
|
|
|
| 558 |
@keyframes checkmark {
|
| 559 |
from { transform: scale(0); }
|
| 560 |
to { transform: scale(1); }
|
|
@@ -1415,7 +1424,7 @@
|
|
| 1415 |
</div>
|
| 1416 |
</div>
|
| 1417 |
|
| 1418 |
-
|
| 1419 |
<label class="form-label fw-bold">Filters:</label>
|
| 1420 |
<div class="toggle-container">
|
| 1421 |
<!-- Veg Only Toggle -->
|
|
@@ -1435,6 +1444,7 @@
|
|
| 1435 |
</div>
|
| 1436 |
</form>
|
| 1437 |
|
|
|
|
| 1438 |
<div class="container mt-4">
|
| 1439 |
{% if selected_category == "Customized Dish" %}
|
| 1440 |
<div id="custom-dish-form" class="mt-4">
|
|
|
|
| 509 |
align-items: flex-start; /* Align to the left */
|
| 510 |
justify-content: flex-start; /* Align to the top */
|
| 511 |
margin-bottom: 20px;
|
| 512 |
+
margin-left: 10px; /* Added 10px gap to the left */
|
| 513 |
}
|
| 514 |
+
|
| 515 |
.form-label {
|
| 516 |
font-size: 1.2rem;
|
| 517 |
font-weight: 600;
|
| 518 |
color: #333;
|
| 519 |
margin-bottom: 10px;
|
| 520 |
}
|
| 521 |
+
|
| 522 |
.toggle-container {
|
| 523 |
display: flex;
|
| 524 |
align-items: center;
|
| 525 |
gap: 10px;
|
| 526 |
margin: 8px 0;
|
| 527 |
}
|
| 528 |
+
|
| 529 |
.custom-toggle {
|
| 530 |
appearance: none;
|
| 531 |
width: 48px;
|
|
|
|
| 536 |
cursor: pointer;
|
| 537 |
transition: background-color 0.3s ease;
|
| 538 |
}
|
| 539 |
+
|
| 540 |
.custom-toggle:checked {
|
| 541 |
+
background: linear-gradient(45deg, #32CD32, #3CB371); /* Changed to green color when checked */
|
| 542 |
}
|
| 543 |
+
|
| 544 |
.custom-toggle::before {
|
| 545 |
content: '';
|
| 546 |
position: absolute;
|
|
|
|
| 553 |
transition: transform 0.3s ease;
|
| 554 |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
| 555 |
}
|
| 556 |
+
|
| 557 |
.custom-toggle:checked::before {
|
| 558 |
+
transform: translateX(24px); /* Moves the toggle to the right */
|
| 559 |
}
|
| 560 |
+
|
| 561 |
.toggle-container label {
|
| 562 |
font-size: 1rem;
|
| 563 |
color: #333;
|
| 564 |
cursor: pointer;
|
| 565 |
}
|
| 566 |
+
|
| 567 |
@keyframes checkmark {
|
| 568 |
from { transform: scale(0); }
|
| 569 |
to { transform: scale(1); }
|
|
|
|
| 1424 |
</div>
|
| 1425 |
</div>
|
| 1426 |
|
| 1427 |
+
<form method="get" action="/menu" class="text-center mb-4" id="filter-form">
|
| 1428 |
<label class="form-label fw-bold">Filters:</label>
|
| 1429 |
<div class="toggle-container">
|
| 1430 |
<!-- Veg Only Toggle -->
|
|
|
|
| 1444 |
</div>
|
| 1445 |
</form>
|
| 1446 |
|
| 1447 |
+
|
| 1448 |
<div class="container mt-4">
|
| 1449 |
{% if selected_category == "Customized Dish" %}
|
| 1450 |
<div id="custom-dish-form" class="mt-4">
|