From cf2e75963cfb0915624fa7251947c7c075cb673f Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Tue, 27 Oct 2020 18:15:36 -0400 Subject: [PATCH] make sure post images maintain a proper image aspect and aren't forced into squares --- assets/css/beautifuljekyll.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index c9777d9..6a16b8c 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -498,8 +498,8 @@ footer .footer-custom-content { filter: grayscale(0%); } .post-preview .post-image img { - height: 100%; - width: 100%; + max-height: 100%; + max-width: 100%; } .post-preview .post-image-short { margin-top: -2.1875rem; @@ -520,8 +520,8 @@ footer .footer-custom-content { display: none; } .post-preview .post-image-small img { - width: 6.25rem; - height: 6.25rem; + max-width: 6.25rem; + max-height: 6.25rem; } @media (max-width: 500px) { .post-preview .post-image {