From 8c21f73baf2914e9db842c0561ee2f1efa348aff Mon Sep 17 00:00:00 2001 From: LUCASTUCIOUS Date: Thu, 18 Jan 2024 23:02:35 +0100 Subject: [PATCH] Make img centered --- quartz/styles/base.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss index b023b27..3a74f93 100644 --- a/quartz/styles/base.scss +++ b/quartz/styles/base.scss @@ -153,6 +153,7 @@ a { & .sidebar { flex: 1; display: flex; + flex-wrap: wrap; flex-direction: column; gap: 2rem; top: 0; @@ -456,11 +457,18 @@ img { max-width: 100%; border-radius: 5px; margin: 1rem 0; + max-width: 100%; + max-height: 500px; + margin-right: auto; + margin-left: auto; + display: block; } + p > img + em { display: block; transform: translateY(-1rem); + text-align: center; } hr {