浏览代码

#5788: Shawburn: Fix Pullquote Block(full-Width): centered text on small screens (#6056)

Gustavo Hilario 3 年之前
父节点
当前提交
38be523b8a
共有 4 个文件被更改,包括 18 次插入3 次删除
  1. 5 0
      shawburn/sass/_extra-child-theme.scss
  2. 1 1
      shawburn/sass/style-child-theme.scss
  3. 7 2
      shawburn/style-rtl.css
  4. 5 0
      shawburn/style.css

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

@@ -424,3 +424,8 @@ table,
 		margin-right: calc( .1 * #{map-deep-get($config-button, "padding", "horizontal")} );
 	}
 }
+
+/* center pullquote block when set to be full width */
+.wp-block-pullquote.alignfull blockquote {
+	margin: auto;
+}

+ 1 - 1
shawburn/sass/style-child-theme.scss

@@ -1,6 +1,6 @@
 /*
 Theme Name: Shawburn
-Theme URI: https://github.com/Automattic/themes/master/shawburn
+Theme URI: https://wordpress.com/theme/shawburn
 Author: Automattic
 Author URI: https://automattic.com/
 Description: Shawburn is the ideal choice for creating an online presence for your business.

+ 7 - 2
shawburn/style-rtl.css

@@ -1,12 +1,12 @@
 @charset "UTF-8";
 /*
 Theme Name: Shawburn
-Theme URI: https://github.com/Automattic/themes/master/shawburn
+Theme URI: https://wordpress.com/theme/shawburn
 Author: Automattic
 Author URI: https://automattic.com/
 Description: Shawburn is the ideal choice for creating an online presence for your business.
 Requires at least: WordPress 4.9.6
-Version: 1.4.15
+Version: 1.4.17
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Template: varia
@@ -4442,6 +4442,11 @@ table th,
 	margin-left: calc( .1 * 24px);
 }
 
+/* center pullquote block when set to be full width */
+.wp-block-pullquote.alignfull blockquote {
+	margin: auto;
+}
+
 /**
  * Site Navigation Styles
  */

+ 5 - 0
shawburn/style.css

@@ -4471,6 +4471,11 @@ table th,
 	margin-right: calc( .1 * 24px);
 }
 
+/* center pullquote block when set to be full width */
+.wp-block-pullquote.alignfull blockquote {
+	margin: auto;
+}
+
 /**
  * Site Navigation Styles
  */