diff options
| author | Bobby <[email protected]> | 2023-05-19 17:44:06 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-05-19 17:44:06 -0400 |
| commit | 7c5ceaac630c3ebc4c7390f63fcb0f7d0c28ed5c (patch) | |
| tree | 017281bc29af7449228e4ec5c00cda9f1c4a1cc9 | |
| parent | 7916ab8332935eae49de5b07ba16949bd1bcdfa2 (diff) | |
| download | thatcomputerscientist-7c5ceaac630c3ebc4c7390f63fcb0f7d0c28ed5c.tar.xz thatcomputerscientist-7c5ceaac630c3ebc4c7390f63fcb0f7d0c28ed5c.zip | |
Update margins in image posts
| -rw-r--r-- | blog/views.py | 2 | ||||
| -rw-r--r-- | static/css/styles.css | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/blog/views.py b/blog/views.py index 8c83e29a..2269837e 100644 --- a/blog/views.py +++ b/blog/views.py @@ -111,7 +111,7 @@ def post(request, slug): images = soup.find_all('img') for i in range(len(images)): if i % 2 != 0: - images[i]['style'] = 'float: right; margin: 13px; margin-right: 0px;' + images[i]['style'] = 'float: right; margin: 13px; margin-right: 0px; margin-top: 5px;' # remove all paragraphs which are: "<p class="ql-align-justify"><br></p>" for p in soup.find_all('p', class_='ql-align-justify'): diff --git a/static/css/styles.css b/static/css/styles.css index 608996dc..456d3eb8 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -350,6 +350,7 @@ blockquote { float: left; margin: 11px; margin-left: 0; + margin-top: 5px; } #article-body h2, |
