浏览代码

Barnsbury: Improving editor annotations.

Allan Cole 5 年之前
父节点
当前提交
a3bb6e6f9e
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      barnsbury/inc/wpcom-editor-colors.php

+ 3 - 2
barnsbury/inc/wpcom-editor-colors.php

@@ -70,7 +70,7 @@ add_editor_color_rule( 'bg', '#FFFDF6', array(
 add_editor_color_rule( 'link', '#20603C', array(
 
 	// Text-color
-	array( '#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link,
+	array( '#editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link,
 			#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline,
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:active,
@@ -84,7 +84,8 @@ add_editor_color_rule( 'link', '#20603C', array(
 	// Background-color
 	array( '#editor .editor-styles-wrapper .button,
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button,
-			#editor .editor-styles-wrapper .wp-block-button__link,
+			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link,
+			#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline,
 			#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
 
 	// Border-left-color