From 14ebcdecf31b1480ae997a0ab4d68207d31e083c Mon Sep 17 00:00:00 2001 From: Kian Kasad Date: Sun, 21 Feb 2021 21:54:43 -0800 Subject: Add 'align' option to figure shortcode (#256) Usage: {{< figure align=center src="image.jpg" >}} Parameter values: - 'center': align image and captions to center of page - anything else neglected * Appends "#center" to the image's URL in order to utilize existing CSS rules for centering images. --- assets/css/post-single.css | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'assets/css') diff --git a/assets/css/post-single.css b/assets/css/post-single.css index b7ec47f..16a6c12 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -242,6 +242,10 @@ margin: auto } +.post-content figure.align-center { + text-align: center; +} + .post-content figure > figcaption { color: var(--primary); font-size: 16px; -- cgit v1.2.3