From 3bdc5d5c4340c43d23f404a439662cab7de7e764 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 6 Dec 2018 19:50:31 +0100 Subject: [PATCH] style: make wp-caption centering working --- scss/_blog.scss | 6 ++++-- style.css | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scss/_blog.scss b/scss/_blog.scss index f392bca..e20c5b1 100644 --- a/scss/_blog.scss +++ b/scss/_blog.scss @@ -183,8 +183,6 @@ } .wp-caption { - margin: auto; - img { max-width: 100%; height: auto; @@ -194,4 +192,8 @@ font-size: 0.9em; font-style: italic; } + + & .aligncenter { + margin: auto; + } } diff --git a/style.css b/style.css index a538920..4fdf7db 100644 --- a/style.css +++ b/style.css @@ -1479,3 +1479,6 @@ a.list-group-item:hover { .wp-caption-text { font-size: 0.9em; font-style: italic; } + +.wp-caption .aligncenter { + margin: auto; }