From ba17b23f7a334c315fc0649e6f7ade5128580ee1 Mon Sep 17 00:00:00 2001 From: Leigh Morresi <275001+dgtlmoon@users.noreply.github.com> Date: Fri, 29 Jan 2021 17:50:47 +0100 Subject: [PATCH] Fixing messages styling --- backend/backend.py | 3 ++- backend/static/css/styles.css | 8 ++++++++ backend/templates/base.html | 10 ++++++---- backend/templates/import.html | 9 +++++++-- backend/templates/watch-overview.html | 20 +++++++++----------- 5 files changed, 32 insertions(+), 18 deletions(-) diff --git a/backend/backend.py b/backend/backend.py index 34194426..417c5eaf 100644 --- a/backend/backend.py +++ b/backend/backend.py @@ -130,7 +130,7 @@ def import_page(): if len(url): remaining_urls.append(url) - messages.append({'class': 'ok', 'message': "{} imported, {} skipped.".format(good, len(remaining_urls))}) + messages.append({'class': 'ok', 'message': "{} Imported, {} Skipped.".format(good, len(remaining_urls))}) launch_checks() @@ -138,6 +138,7 @@ def import_page(): messages=messages, remaining="\n".join(remaining_urls) ) + messages = [] return output diff --git a/backend/static/css/styles.css b/backend/static/css/styles.css index a9fb36be..abc1d12b 100644 --- a/backend/static/css/styles.css +++ b/backend/static/css/styles.css @@ -165,3 +165,11 @@ color: #fff; background: rgb(200, 200, 200); /* this is a green */ } + +.messages { + padding: 1em; + background: rgba(255,255,255,.2); + border-radius: 10px; + color: #fff; + font-weight: bold; + } \ No newline at end of file diff --git a/backend/templates/base.html b/backend/templates/base.html index 6368ab03..08d5b5a6 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -17,10 +17,10 @@