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 --------------------------------------------------------------*/