From 345592cc92682d836aab0c4cfe2fdbf5b09cdebf Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 1 Feb 2023 20:24:46 -0500 Subject: style updates --- blog/context_processors.py | 3 +++ static/css/main.css | 9 ++++++--- templates/blog/activity.html | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/blog/context_processors.py b/blog/context_processors.py index 23e9acc9..5b3dfc4a 100644 --- a/blog/context_processors.py +++ b/blog/context_processors.py @@ -94,5 +94,8 @@ def comment_processor(comment): comment = re.sub(r'__(.+?)__', r'\1', comment) comment = re.sub(r'~~(.+?)~~', r'\1', comment) + # remove any br tags at the end of the comment + comment = re.sub(r'
$', '', comment) + return comment diff --git a/static/css/main.css b/static/css/main.css index 214402e8..d7008da9 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -74,9 +74,12 @@ kbd { } blockquote { - border-left: solid 5px #a591ee; - padding-left: 10px; - margin: 10px 0px; + border-left: solid 4px #a591ee; + width: 650px; + margin: 0px auto; + padding: 8px; + background: #2f2f2f; + color: #dddddd; } /* Full width auto spacing table... ellipsis if text overflows */ diff --git a/templates/blog/activity.html b/templates/blog/activity.html index 6d70af3b..7c24fb4a 100644 --- a/templates/blog/activity.html +++ b/templates/blog/activity.html @@ -40,7 +40,7 @@ {% for comment in activity_recent_comments %}
  • On {{ comment.post.title }}: -
    {{ comment.body|safe }}

    +
    {{ comment.body|safe }}

  • {% endfor %} -- cgit v1.2.3