Forráskód Böngészése

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

Laurel Fulford 6 éve
szülő
commit
8a66611eb7
1 módosított fájl, 6 hozzáadás és 0 törlés
  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 {