From 8cd3af63317fda36bd9ba6c4c128e0c17c4dbb39 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Wed, 1 Nov 2017 22:25:41 +0800 Subject: style: images in figure will be centered when `{{figure src="center" ... }}` is used --- src/css/_partial/_post/_content.scss | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/css/_partial') diff --git a/src/css/_partial/_post/_content.scss b/src/css/_partial/_post/_content.scss index d291d2b..8bcf700 100644 --- a/src/css/_partial/_post/_content.scss +++ b/src/css/_partial/_post/_content.scss @@ -100,10 +100,15 @@ content: ':'; } - figure figcaption h4 { - color: #b5b5b5; - font-size: 0.9rem; - text-align: center; + figure { + &.center { + text-align: center; + } + + figcaption h4 { + color: #b5b5b5; + font-size: 0.9rem; + } } .task-list { -- cgit v1.2.3