浏览代码

Dara: Make centred images aligned centred if they're smaller than the available space. See #376.

Laurel Fulford 6 年之前
父节点
当前提交
8a66611eb7
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      dara/blocks.css

+ 6 - 0
dara/blocks.css

@@ -47,6 +47,12 @@ p.has-drop-cap:not(:focus)::first-letter {
 	display: block;
 }
 
+.wp-block-image .aligncenter img {
+	display: block;
+	margin-left: auto;
+	margin-right: auto;
+}
+
 /* Gallery */
 
 .wp-block-gallery {