From aeebe6d131ec8a46031c92d579d1659ee0e0f4b9 Mon Sep 17 00:00:00 2001 From: S0AndS0 Date: Fri, 19 Feb 2021 15:37:14 -0800 Subject: [PATCH] Corrects image aspect ratio **Edits** `_sass/minima/_base.scss` Setting CSS of `max-width: 100%;` may be combined with `height: auto;` which causes image height to shrink if view-port is less than image width. Note, this may require that image HTML attributes for height and width be defined, eg... ```html ``` --- _sass/minima/_base.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/_sass/minima/_base.scss b/_sass/minima/_base.scss index a6f104e448..9aa3287033 100644 --- a/_sass/minima/_base.scss +++ b/_sass/minima/_base.scss @@ -65,6 +65,7 @@ main { */ img { max-width: 100%; + height: auto; vertical-align: middle; }