diff options
| author | Bobby <[email protected]> | 2023-02-01 20:24:46 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-02-01 20:24:46 -0500 |
| commit | 345592cc92682d836aab0c4cfe2fdbf5b09cdebf (patch) | |
| tree | 49951cac793ffc0c07ee714fd4913bd0e46441b4 | |
| parent | 3e1b254a6e7b621e4cfdcb6a1258d1f24be6d3f4 (diff) | |
| download | thatcomputerscientist-345592cc92682d836aab0c4cfe2fdbf5b09cdebf.tar.xz thatcomputerscientist-345592cc92682d836aab0c4cfe2fdbf5b09cdebf.zip | |
style updates
| -rw-r--r-- | blog/context_processors.py | 3 | ||||
| -rw-r--r-- | static/css/main.css | 9 | ||||
| -rw-r--r-- | 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'<i>\1</i>', comment) comment = re.sub(r'~~(.+?)~~', r'<s>\1</s>', comment) + # remove any br tags at the end of the comment + comment = re.sub(r'<br>$', '', 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 %} <li style="background: #1c1c1c;padding: 20px 10px 10px 10px;margin-bottom: 10px;border-radius: 8px;" <p>On <a href="{% url 'blog:post' comment.post.slug %}#comment-{{ comment.id }}">{{ comment.post.title }}</a>: - <blockquote>{{ comment.body|safe }}</blockquote></p> + <blockquote style="background: none; margin-top: 15px; padding: 0px 20px; width: 100%; margin-left: 20px;">{{ comment.body|safe }}</blockquote></p> </li> {% endfor %} </ul> |
