瀏覽代碼

Brompton: Clean up border and separator colors in editor.

Allan Cole 5 年之前
父節點
當前提交
311609e80c
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      brompton/inc/wpcom-editor-colors.php

+ 8 - 1
brompton/inc/wpcom-editor-colors.php

@@ -99,6 +99,8 @@ add_editor_color_rule( 'link', '#C04239', array(
 			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
 			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
 			#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
+			
+	array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
 
 	/**
 	 * Utility Classes
@@ -142,10 +144,15 @@ add_editor_color_rule( 'txt', '#252E36', array(
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .more-link:hover,
 			#editor .editor-styles-wrapper .wp-block-pullquote,
 			#editor .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
-			#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd)
+			#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
+			#editor .editor-styles-wrapper .wp-block-separator.is-style-dots:before, 
+			#editor .editor-styles-wrapper hr.is-style-dots:before,
 			#editor .editor-styles-wrapper a:hover,
 			#editor .editor-styles-wrapper', 'color' ),
 
+	// Border-top-color
+	array( '#editor .editor-styles-wrapper .wp-block-pullquote', 'border-top-color' ),
+
 	// Border-bottom-color
 	array( '#editor .editor-styles-wrapper .comment-list, 
 			#editor .editor-styles-wrapper .wp-block-pullquote,