From ffe93407c4ade838945de1695794d8c05ab3ea68 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 26 Dec 2019 19:54:46 +0100 Subject: [PATCH 1/2] Fallback msg --- templates/display.html | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/templates/display.html b/templates/display.html index 145a932..9513664 100644 --- a/templates/display.html +++ b/templates/display.html @@ -52,6 +52,21 @@ border: 2px solid black; padding: 1em; } + + displaylist fallback { + padding: 1em; + } + + list:not(:empty) + fallback { + display: none; + } + + fallback { + display: grid; + + place-content: center; + text-align: center; + } {% endblock %} @@ -59,6 +74,12 @@ @@ -105,9 +126,6 @@ for (item in list) { add(item); } - add("+"); - add("+"); - add("+"); displayList.hidden = false; } From 82a5e4be620cb5f377ac5236a4bf4db6692e1b66 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 26 Dec 2019 21:59:42 +0100 Subject: [PATCH 2/2] Theme --- templates/display.html | 9 +-- templates/edit.html | 152 ++++++++++++++++++++++++++++++++++++++--- templates/main.html | 12 ++-- 3 files changed, 155 insertions(+), 18 deletions(-) diff --git a/templates/display.html b/templates/display.html index 9513664..35730f2 100644 --- a/templates/display.html +++ b/templates/display.html @@ -3,6 +3,10 @@ {% block extend_head %} {% endblock %} {% block content %} + + + {% endblock %} \ No newline at end of file diff --git a/templates/main.html b/templates/main.html index 798fe39..34327bb 100644 --- a/templates/main.html +++ b/templates/main.html @@ -4,6 +4,7 @@ {% endblock %}