Style blockquote

This commit is contained in:
Sam Ireland 2021-01-03 20:56:15 +00:00
parent db8cbc421d
commit 2829964530
4 changed files with 41 additions and 21 deletions

View File

@ -12,7 +12,7 @@
</section>
<section class="comments-section">
<h1>Saved Comments</h1>
</section>
<!--comments-->
</section>
</body>
</html>

View File

@ -46,6 +46,21 @@ code {
white-space: pre;
}
blockquote {
font-style: italic;
padding-left: 8px;
position: relative;
}
blockquote:before {
position: absolute;
left: 0;
width: 4px;
content: "";
height: 100%;
background-color: #16a085;
}
a:hover {
text-decoration: underline;
}

View File

@ -101,11 +101,16 @@ def save_media(post, location):
if domain == "redd.it":
downloader = Downloader(max_q=True, log=False)
downloader.url = url
current = os.getcwd()
try:
name = downloader.download()
extension = name.split(".")[-1]
filename = f"{readable_name}_{post.id}.{extension}"
os.rename(name, os.path.join(location, "media", filename))
return filename
except:
os.chdir(current)
return None
# Is it a gfycat link that redirects? Update the URL if possible
if domain == "gfycat.com":