From 9242fa4389cd2ce418c2074aa00afc8107e753d0 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 18 Feb 2023 19:39:07 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=B1=20feature:=20responsive=20(and=20c?= =?UTF-8?q?entered)=20images?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/parts/_image.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sass/parts/_image.scss b/sass/parts/_image.scss index 5cbea77..6d32413 100644 --- a/sass/parts/_image.scss +++ b/sass/parts/_image.scss @@ -3,12 +3,20 @@ figure { display: inline-block; margin: 0; max-width: 100%; + height: auto; } figure img { max-height: 500px; } +img { + display: block; + margin: 0 auto; + max-width: 100%; + height: auto; +} + @media screen and (min-width: 600px) { figure { padding: 0 40px;