From 14f336fadf466fc7d0fc1611f1b4cda97a2e7b41 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 16 Apr 2025 15:58:42 +0200 Subject: [PATCH] standardizes notification in html templates --- .../templates/config/schedule.html.jinja | 53 ++--------- .../partials/flash_messages.html.jinja | 93 +++++++++++++++++++ 2 files changed, 99 insertions(+), 47 deletions(-) diff --git a/scipaperloader/templates/config/schedule.html.jinja b/scipaperloader/templates/config/schedule.html.jinja index 8c1aa67..78f8dd8 100644 --- a/scipaperloader/templates/config/schedule.html.jinja +++ b/scipaperloader/templates/config/schedule.html.jinja @@ -30,38 +30,6 @@ font-size: 0.7rem; margin-top: 2px; } - - .flash-message { - position: fixed; - top: 30%; - left: 50%; - transform: translate(-50%, -50%); - z-index: 1000; - width: 300px; - text-align: center; - font-weight: bold; - padding: 12px; - margin-bottom: 20px; - border-radius: 6px; - opacity: 1; - transition: opacity 5s ease-in-out; - } - - .flash-message.success { - background-color: #d4edda; - border-color: #c3e6cb; - color: #155724; - } - - .flash-message.error { - background-color: #f8d7da; - border-color: #f5c6cb; - color: #721c24; - } - - .flash-message.fade { - opacity: 0; - } \ No newline at end of file