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 years ago
parent
commit
dc8b68c60a
3 changed files with 9 additions and 0 deletions
  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;
 }