Basic gallery support (#103)

This commit is contained in:
robrobinbin 2021-02-06 21:05:11 +01:00 committed by GitHub
parent 2a475d127a
commit cf45d53fdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 4 deletions

View file

@ -637,7 +637,7 @@ a.search_subreddit:hover {
font-weight: bold;
}
.post_media_image, .post .__NoScript_PlaceHolder__, .post_media_video {
.post_media_image, .post .__NoScript_PlaceHolder__, .post_media_video, .gallery {
max-width: calc(100% - 40px);
grid-area: post_media;
margin: 15px auto 5px auto;
@ -664,6 +664,24 @@ a.search_subreddit:hover {
vertical-align: bottom;
}
.gallery img {
max-width: 100%;
vertical-align: bottom;
}
.gallery figcaption {
margin-top: 5px;
}
.gallery .outbound_url {
color: var(--accent);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
display: block;
padding-top: 5px;
}
#post_url {
color: var(--accent);
margin: 5px 20px;