From a404eed952e8471446af414816d1fa805f245cfa Mon Sep 17 00:00:00 2001 From: torres126 <43215253+torres126@users.noreply.github.com> Date: Thu, 6 Dec 2018 18:21:15 +0000 Subject: [PATCH] Update blocks.css --- libre-2/css/blocks.css | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/libre-2/css/blocks.css b/libre-2/css/blocks.css index f7eec5359d..4044ee80a9 100644 --- a/libre-2/css/blocks.css +++ b/libre-2/css/blocks.css @@ -91,7 +91,7 @@ figure[class^="wp-block-"]:not(.aligncenter):not(.alignleft):not(.alignright):no position: relative; } -[class^="wp-block-"]:not(.wp-block-gallery) figcaption { +[class^="wp-block-"]:not(.wp-block-gallery) figcaption :not(.aligncenter) { text-align: left; } @@ -105,11 +105,20 @@ figure[class^="wp-block-"]:not(.aligncenter):not(.alignleft):not(.alignright):no width: 25%; } +[class^="wp-block-"]:not(.wp-block-gallery) .aligncenter figcaption::after { + margin-right: auto; + margin-left: auto; +} + [class^="wp-block-"].alignfull:not(.wp-block-gallery) figcaption { padding-left: 2vw; padding-right: 2vw; } +[class^="wp-block-"]:not(.wp-block-gallery) .aligncenter figcaption { + text-align: center; +} + .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption { text-align: right; } @@ -234,6 +243,11 @@ p.has-drop-cap:not(:focus)::first-letter { width: 100%; } +/* Image */ +.wp-block-image .aligncenter { + text-align: center; +} + /*-------------------------------------------------------------- 4.0 Blocks - Formatting --------------------------------------------------------------*/