diff --git a/balasana/inc/wpcom-colors.php b/balasana/inc/wpcom-colors.php index 7f0d5bdaf..d3baa3630 100644 --- a/balasana/inc/wpcom-colors.php +++ b/balasana/inc/wpcom-colors.php @@ -60,6 +60,7 @@ add_color_rule( 'bg', '#FFFFFF', array( body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover, body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept, body .widget_eu_cookie_law_widget #eu-cookie-law.negative, + .wp-block-search .wp-block-search__button, button, button.has-focus, button:focus, @@ -177,6 +178,9 @@ add_color_rule( 'link', '#19744C', array( body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus, body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover, body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept, + .wp-block-search .wp-block-search__button, + .wp-block-search .wp-block-search__button:focus, + .wp-block-search .wp-block-search__button:hover, button.has-focus, button:focus, button:hover, @@ -259,6 +263,7 @@ add_color_rule( 'link', '#19744C', array( input[type="time"]:focus, input[type="url"]:focus, input[type="week"]:focus, + .wp-block-search .wp-block-search__input:focus, textarea:focus', 'border-color' ), /** @@ -328,7 +333,9 @@ add_color_rule( 'txt', '#303030', array( input[type="week"], input[type="week"]:focus, textarea, - textarea:focus', 'color' ), + textarea:focus + .wp-block-search .wp-block-search__input, + .wp-block-search .wp-block-search__input:focus', 'color' ), // Background-color array( '.wp-block-cover-image.has-background-dim:not([class*="background-color"]), @@ -390,6 +397,8 @@ add_color_rule( 'txt', '#303030', array( .wp-block-video figcaption, figcaption', 'color' ), + array( '.wp-block-search .wp-block-search__input', 'border-color'), + ), __( 'Text Color' ) ); // Accent Color (Red) diff --git a/balasana/inc/wpcom-editor-colors.php b/balasana/inc/wpcom-editor-colors.php index fd0caf1e6..315974e5e 100644 --- a/balasana/inc/wpcom-editor-colors.php +++ b/balasana/inc/wpcom-editor-colors.php @@ -29,6 +29,7 @@ add_editor_color_rule( 'bg', '#FFFFFF', array( #editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim .block-editor-block-list__block, #editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim .wp-block-cover-image-text, #editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim .wp-block-cover-text, + #editor .editor-styles-wrapper .wp-block-search .wp-block-search__button, #editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim .wp-block-cover__inner-container, #editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ), @@ -88,6 +89,7 @@ add_editor_color_rule( 'link', '#19744C', array( array( '#editor .editor-styles-wrapper .button, #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, + #editor .editor-styles-wrapper .wp-block-search .wp-block-search__button, #editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ), // Border-left-color @@ -98,8 +100,13 @@ add_editor_color_rule( 'link', '#19744C', array( */ // Background-color - array( '#editor .editor-styles-wrapper .has-primary-background-color, + array( '#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button:focus, + #editor .editor-styles-wrapper .wp-block-search .wp-block-search__button:hover, + #editor .editor-styles-wrapper .has-primary-background-color, #editor .editor-styles-wrapper .wp-block .has-primary-background-color', 'background-color' ), + + + array( '#editor .editor-styles-wrapper .wp-block-search .wp-block-search__input:focus', 'border-color' ), // Text-color array( '#editor .editor-styles-wrapper .has-primary-color', 'color' ), @@ -113,6 +120,8 @@ add_editor_color_rule( 'txt', '#303030', array( // Text-color array( '#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input, #editor .editor-styles-wrapper .wp-block-pullquote, + #editor .editor-styles-wrapper .wp-block-search .wp-block-search__input, + #editor .editor-styles-wrapper .wp-block-search .wp-block-search__input:focus, #editor .editor-styles-wrapper ', 'color' ), // Background-color @@ -153,6 +162,9 @@ add_editor_color_rule( 'txt', '#303030', array( array( '#editor .editor-styles-wrapper .has-foreground-light-background-color, #editor .editor-styles-wrapper .wp-block .has-foreground-light-background-color', 'background-color', '+2' ), + // Border-color with less opacity (dim) + array( '#editor .editor-styles-wrapper .wp-block-search .wp-block-search__input', 'border-color', 0.8 ), + ), __( 'Text Color' ) ); // Accent Color (Red)