소스 검색

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 {