Skip to content

Commit cf2e759

Browse files
authored
make sure post images maintain a proper image aspect and aren't forced into squares
1 parent 9edafd1 commit cf2e759

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

assets/css/beautifuljekyll.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ footer .footer-custom-content {
498498
filter: grayscale(0%);
499499
}
500500
.post-preview .post-image img {
501-
height: 100%;
502-
width: 100%;
501+
max-height: 100%;
502+
max-width: 100%;
503503
}
504504
.post-preview .post-image-short {
505505
margin-top: -2.1875rem;
@@ -520,8 +520,8 @@ footer .footer-custom-content {
520520
display: none;
521521
}
522522
.post-preview .post-image-small img {
523-
width: 6.25rem;
524-
height: 6.25rem;
523+
max-width: 6.25rem;
524+
max-height: 6.25rem;
525525
}
526526
@media (max-width: 500px) {
527527
.post-preview .post-image {

0 commit comments

Comments
 (0)