From a36d0452145c32ef41e7b9d83246dc6327fdfd01 Mon Sep 17 00:00:00 2001 From: pacientes Date: Wed, 23 Dec 2020 20:04:01 +0900 Subject: [PATCH] post-single(css): add image center align tag (#145) usage in markdown => ![name](path/to/image.png#center) Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- assets/css/post-single.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/css/post-single.css b/assets/css/post-single.css index 8e4e61b2..30db3e4e 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -224,6 +224,10 @@ border-radius: 4px } +.post-content img[src*='#center'] { + margin: auto +} + .post-content figure > figcaption { color: var(--primary); font-size: 16px;