Browse Source

Merge pull request #1547 from Automattic/fix/varia-issue-1511

Varia: Make sure centre aligned image in classic block is centred
Takashi Irie 5 năm trước cách đây
mục cha
commit
dc8b68c60a
3 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 3 0
      varia/sass/blocks/utilities/_style.scss
  2. 3 0
      varia/style-rtl.css
  3. 3 0
      varia/style.css

+ 3 - 0
varia/sass/blocks/utilities/_style.scss

@@ -23,7 +23,10 @@
  */
 .aligncenter {
 	clear: both;
+	display: block;
 	float: none;
+	margin-right: auto;
+	margin-left: auto;
 	text-align: center;
 }
 

+ 3 - 0
varia/style-rtl.css

@@ -2017,7 +2017,10 @@ table th,
  */
 .aligncenter {
 	clear: both;
+	display: block;
 	float: none;
+	margin-left: auto;
+	margin-right: auto;
 	text-align: center;
 }
 

+ 3 - 0
varia/style.css

@@ -2020,7 +2020,10 @@ table th,
  */
 .aligncenter {
 	clear: both;
+	display: block;
 	float: none;
+	margin-right: auto;
+	margin-left: auto;
 	text-align: center;
 }