From 475a41235449feca3d9fca31392af28c69e16881 Mon Sep 17 00:00:00 2001 From: crunk Date: Sun, 2 Jun 2024 21:59:54 +0200 Subject: [PATCH] a bit of css wrangling --- .../templates/describe_files/describe.html | 85 ++++++++++--------- verse/static/css/style.css | 2 - 2 files changed, 43 insertions(+), 44 deletions(-) diff --git a/verse/describer/templates/describe_files/describe.html b/verse/describer/templates/describe_files/describe.html index db3e72e..8c5e084 100644 --- a/verse/describer/templates/describe_files/describe.html +++ b/verse/describer/templates/describe_files/describe.html @@ -26,48 +26,49 @@ -
- {% for id, describe_form in distribusi_file_forms.items() %} -
- {% if describe_form.type == "image" %} - - {% elif describe_form.type == "video" %} - - {% elif describe_form.type == "audio" %} - - {% else %} - file: {{describe_form.file_path}} - {% endif %} -
- {{ describe_form.csrf_token }} -

File path: {{describe_form.file_path}}

-
- {{ describe_form.description.label }} - {{ describe_form.description }} - {% for message in describe_form.description.errors %} -
{{ message }}
- {% endfor %} -
-
- {{ describe_form.searchtags.label }} - {{ describe_form.searchtags }} - {% for message in describe_form.searchtags.errors %} -
{{ message }}
- {% endfor %} -
-
- {{ describe_form.alttext.label }} - {{ describe_form.alttext }} - {% for message in describe_form.alttext.errors %} -
{{ message }}
- {% endfor %} -
-
- {{ describe_form.save }} -
-
+
+
+ {% for id, describe_form in distribusi_file_forms.items() %} +
+ {% if describe_form.type == "image" %} + + {% elif describe_form.type == "video" %} + + {% elif describe_form.type == "audio" %} + + {% else %} + file: {{describe_form.file_path}} + {% endif %} +
+ {{ describe_form.csrf_token }} +

File path: {{describe_form.file_path}}

+
+ {{ describe_form.description.label }} + {{ describe_form.description }} + {% for message in describe_form.description.errors %} +
{{ message }}
+ {% endfor %} +
+
+ {{ describe_form.searchtags.label }} + {{ describe_form.searchtags }} + {% for message in describe_form.searchtags.errors %} +
{{ message }}
+ {% endfor %} +
+
+ {{ describe_form.alttext.label }} + {{ describe_form.alttext }} + {% for message in describe_form.alttext.errors %} +
{{ message }}
+ {% endfor %} +
+
+ {{ describe_form.save }} +
+
+
+ {% endfor%}
- {% endfor%}
- {% endblock %} diff --git a/verse/static/css/style.css b/verse/static/css/style.css index 900ee56..c0939f0 100644 --- a/verse/static/css/style.css +++ b/verse/static/css/style.css @@ -177,8 +177,6 @@ a:active { .distribusi_file { margin-top: 1em; padding: 0.5em; - padding-left: auto; - padding-right: auto; width: 45em; background-color:#fdfdfd; text-decoration: none;