Browse Source

Merge pull request #2152 from Automattic/shawburn/fix-horizontal-scrolling

Shawburn: Reset the non-aligned button block appearance
Kjell Reigstad 5 years ago
parent
commit
cb1ecca0ff
3 changed files with 20 additions and 0 deletions
  1. 8 0
      shawburn/sass/_extra-child-theme.scss
  2. 6 0
      shawburn/style-rtl.css
  3. 6 0
      shawburn/style.css

+ 8 - 0
shawburn/sass/_extra-child-theme.scss

@@ -239,6 +239,14 @@ hr.wp-block-separator.is-style-wide,
 /**
  * Blocks
  */
+
+// Button
+.entry-content > .wp-block-button:not(.alignleft):not(.alignright) {
+	margin-left: auto;
+	margin-right: auto;
+	text-align: center;
+}
+
 // Business Hours
 .jetpack-business-hours {
 	dt {

+ 6 - 0
shawburn/style-rtl.css

@@ -4185,6 +4185,12 @@ hr.wp-block-separator.is-style-wide,
 /**
  * Blocks
  */
+.entry-content > .wp-block-button:not(.alignleft):not(.alignright) {
+	margin-left: auto;
+	margin-right: auto;
+	text-align: center;
+}
+
 .jetpack-business-hours dt {
 	font-family: inherit;
 	font-family: var(--font-base, inherit);

+ 6 - 0
shawburn/style.css

@@ -4214,6 +4214,12 @@ hr.wp-block-separator.is-style-wide,
 /**
  * Blocks
  */
+.entry-content > .wp-block-button:not(.alignleft):not(.alignright) {
+	margin-left: auto;
+	margin-right: auto;
+	text-align: center;
+}
+
 .jetpack-business-hours dt {
 	font-family: inherit;
 	font-family: var(--font-base, inherit);