From 0b93307f1f9549b6acee616eee45579aea19ddaa Mon Sep 17 00:00:00 2001 From: Midgard Date: Tue, 1 Sep 2020 16:35:18 +0200 Subject: [PATCH] Fix mobile order page, show dish descriptions --- app/templates/order.html | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/app/templates/order.html b/app/templates/order.html index 2ad6aeb..c43ebe4 100644 --- a/app/templates/order.html +++ b/app/templates/order.html @@ -105,7 +105,7 @@ {% endif %}
- {{ dish.name }} {{ dish.tags | join(", ") }}{{ dish.price_range() | price_range }} + {{ dish.name }} {{ dish.tags | join(", ") }}{{ dish.description }}{{ dish.price_range() | price_range }} {% for (choice_type, choice) in dish.choices %}

@@ -232,7 +232,8 @@ {%- endfor %}
@@ -312,15 +313,21 @@ body, h1, h2, h3, h4 { table { overflow-wrap: break-word; } -section { - display: grid; - grid-template-columns: 1fr 1fr; - grid-gap: 0 30px; - align-items: start; +@media (min-width: 1200px) { + section { + display: grid; + grid-template-columns: 1fr 1fr; + grid-gap: 0 30px; + align-items: start; + } } section.single_column { grid-template-columns: unset; } +.description { + color: #888; + margin-left: 1em; +} header { margin-bottom: 25px; } @@ -432,6 +439,17 @@ li { .footer { margin-top: 1em; } + +summary { + line-height: 1.2; + margin: 0.6em 0; +} +summary .dish_name { + white-space: nowrap; +} +summary .dish_name, summary:before { + align-self: flex-start; +} {% endblock %} {% block scripts %}