浏览代码

Dalston color annotations

Maggie Cabrera 4 年之前
父节点
当前提交
d33ef470e0
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 8 0
      dalston/inc/wpcom-colors.php
  2. 2 0
      dalston/inc/wpcom-editor-colors.php

+ 8 - 0
dalston/inc/wpcom-colors.php

@@ -32,6 +32,10 @@ add_color_rule( 'bg', '#FFFFFF', array(
 			.a8c-posts-list__view-all:hover,
 			.a8c-posts-list__view-all.has-focus,
 			.entry .entry-content .wp-block-media-text,
+			.wp-block-search .wp-block-search__button,
+			.wp-block-search .wp-block-search__button:hover,
+			.wp-block-search .wp-block-search__button:not(.has-background):hover,
+			.wp-block-search .wp-block-search__button:focus,
 			.button,
 			.button:focus,
 			.button:hover,
@@ -140,6 +144,10 @@ add_color_rule( 'link', '#0073AA', array(
 	array( '.a8c-posts-list-item__featured span,
 			.a8c-posts-list__view-all,
 			.button,
+			.wp-block-search .wp-block-search__button,
+			.wp-block-search .wp-block-search__button:hover,
+			.wp-block-search .wp-block-search__button:not(.has-background):hover,
+			.wp-block-search .wp-block-search__button:focus,
 			.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background),
 			.wp-block-file .wp-block-file__button,
 			.wp-block-file__button,

+ 2 - 0
dalston/inc/wpcom-editor-colors.php

@@ -20,6 +20,7 @@ add_editor_color_rule( 'bg', '#FFFFFF', array(
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button:hover,
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .has-focus.button,
 			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link,
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button,
 			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link.has-focus,
 			#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,
@@ -72,6 +73,7 @@ add_editor_color_rule( 'link', '#0073AA', array(
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button,
 			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background-color),
 			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background),
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button,
 			#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
 
 	// Text-color