瀏覽代碼

Add padding.

Jeff Ong 4 年之前
父節點
當前提交
fbfecdb627

+ 1 - 0
blank-canvas-blocks/assets/ponyfill.css

@@ -300,6 +300,7 @@ p.has-text-color a {
 .wp-block-quote {
 	font-family: var(--wp--custom--quote--typography--font-family);
 	border-left: var(--wp--custom--quote--border--width) solid var(--wp--custom--quote--border--color);
+	padding-left: var(--wp--custom--padding--horizontal);
 }
 
 .wp-block-quote cite, .wp-block-quote .wp-block-quote__citation {

+ 4 - 0
blank-canvas-blocks/experimental-theme.json

@@ -139,6 +139,10 @@
 					"horizontal": "20px",
 					"vertical": "20px"
 				},
+				"padding": {
+					"horizontal": "20px",
+					"vertical": "20px"
+				},
 				"width": {
 					"default": "750px",
 					"wide": "1200px"

+ 0 - 3
blank-canvas-blocks/functions.php

@@ -11,9 +11,6 @@ if ( ! function_exists( 'blank_canvas_blocks_support' ) ) :
 		// Add support for editor styles.
 		add_theme_support( 'editor-styles' );
 
-		// Add support for basic block styles.
-		add_theme_support( 'wp-block-styles' );
-
 		// Enqueue editor styles.
 		add_editor_style( array( 
 			'/assets/ponyfill.css'

+ 1 - 0
blank-canvas-blocks/sass/blocks/quote/_style.scss

@@ -1,6 +1,7 @@
 .wp-block-quote {
 	font-family: var(--wp--custom--quote--typography--font-family);
 	border-left: var(--wp--custom--quote--border--width) solid var(--wp--custom--quote--border--color);
+	padding-left: var(--wp--custom--padding--horizontal);
 	cite, .wp-block-quote__citation {
 		font-size: var(--wp--custom--quote--citation--typography--font-size);
 		font-style: var(--wp--custom--quote--citation--typography--font-style);