From 674bda6c1f61e2e85c2f3742effe2223455b7f6e Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 20 Aug 2020 08:32:16 +0200 Subject: [PATCH] Revert "Add style for form as p" This reverts commit 93c9a87a68d10105e022b56293709c5e40f15a6b. --- articles/static/style.css | 21 +++---------------- .../templates/articles/article_detail.html | 6 +++--- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/articles/static/style.css b/articles/static/style.css index db622bd..b14f2de 100644 --- a/articles/static/style.css +++ b/articles/static/style.css @@ -140,25 +140,15 @@ tr:hover { vertical-align: 15%; } -form p .helptext::before { - content: "\A"; - white-space: pre; -} - .helptext { color: var(--main3); font-size: 80%; - font-weight: normal; } .helptext a { color: var(--main3); } -form .required { - font-weight: bold; -} - form table th { vertical-align: top; } @@ -177,10 +167,6 @@ form { padding: 1em; } -form, form p { - line-height: normal; -} - form button[type=submit] { font-size: 1em; padding: .9ex 1.2ex; @@ -191,7 +177,7 @@ form button[type=submit] { cursor: pointer; } -form .error, form .error .helptext, .errorlist { +form table tr.error, form table tr.error .helptext, .errorlist { color: var(--error-text); background-color: var(--error-background); } @@ -200,11 +186,10 @@ form .error, form .error .helptext, .errorlist { margin-top: 0; list-style-type: none; padding-left: 0; - margin-bottom: 0; } -.errorlist + .error { - margin-top: 0; +.errorlist.nonfield { + margin-bottom: 0; } .comment { diff --git a/articles/templates/articles/article_detail.html b/articles/templates/articles/article_detail.html index 703ffec..caa74b9 100644 --- a/articles/templates/articles/article_detail.html +++ b/articles/templates/articles/article_detail.html @@ -31,9 +31,9 @@ {% endfor %}
{% csrf_token %} -{# #} - {{ form.as_p }} -{#
#} + + {{ form.as_table }} +

Your comment may not be approved if it's not respectful, on topic or spammy.