Explorar o código

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

Shawburn: Reset the non-aligned button block appearance
Kjell Reigstad %!s(int64=5) %!d(string=hai) anos
pai
achega
cb1ecca0ff
Modificáronse 3 ficheiros con 20 adicións e 0 borrados
  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);