From 980f7fc515e83e40e756bbc50b830edd61b10745 Mon Sep 17 00:00:00 2001 From: blek Date: Sat, 21 Oct 2023 15:45:56 +1000 Subject: [PATCH] move out alert classes to a separate stylesheet --- filed/static/assets/alert.css | 23 +++++++++++++++++++++++ filed/static/assets/paint.css | 24 ------------------------ filed/templates/index.html | 8 ++++++++ 3 files changed, 31 insertions(+), 24 deletions(-) create mode 100644 filed/static/assets/alert.css diff --git a/filed/static/assets/alert.css b/filed/static/assets/alert.css new file mode 100644 index 0000000..6228e95 --- /dev/null +++ b/filed/static/assets/alert.css @@ -0,0 +1,23 @@ +.alert { + margin: 20px 0; + border: 1px solid var(--header-sec-color); + border-radius: 12px; +} + +.alert .alert-title { + margin: 0; + padding: var(--margin-y) var(--margin-x); + border-radius: 12px 12px 0 0; + border-bottom: 1px solid var(--header-sec-color); + background: var(--view-color); +} + +.alert .alert-text { + padding: var(--margin-y) var(--margin-x); + border-radius: 0 0 12px 12px; + margin: 0; +} + +.alert.danger .alert-title { + background: #602020; +} \ No newline at end of file diff --git a/filed/static/assets/paint.css b/filed/static/assets/paint.css index fe346a2..9b1c2f8 100644 --- a/filed/static/assets/paint.css +++ b/filed/static/assets/paint.css @@ -282,27 +282,3 @@ input[type=email] { padding: 2px 4px; outline: none; } - -.alert { - margin: 20px 0; - border: 1px solid var(--header-sec-color); - border-radius: 12px; -} - -.alert .alert-title { - margin: 0; - padding: var(--margin-y) var(--margin-x); - border-radius: 12px 12px 0 0; - border-bottom: 1px solid var(--header-sec-color); - background: var(--view-color); -} - -.alert .alert-text { - padding: var(--margin-y) var(--margin-x); - border-radius: 0 0 12px 12px; - margin: 0; -} - -.alert.danger .alert-title { - background: #602020; -} diff --git a/filed/templates/index.html b/filed/templates/index.html index 0d886c6..325cd97 100644 --- a/filed/templates/index.html +++ b/filed/templates/index.html @@ -1,5 +1,13 @@ {% extends "base.html" %} +{% block head %} + + {%- if ! conf.files.allow_uploads -%} + + {%- endif -%} + +{% endblock %} + {% block body %}