浏览代码

Reset the button block appearance.

Kjell Reigstad 5 年之前
父节点
当前提交
a78ed1837c
共有 3 个文件被更改,包括 20 次插入0 次删除
  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
  * Blocks
  */
  */
+
+// Button
+.entry-content > .wp-block-button:not(.alignleft):not(.alignright) {
+	margin-left: auto;
+	margin-right: auto;
+	text-align: center;
+}
+
 // Business Hours
 // Business Hours
 .jetpack-business-hours {
 .jetpack-business-hours {
 	dt {
 	dt {

+ 6 - 0
shawburn/style-rtl.css

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

+ 6 - 0
shawburn/style.css

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