Brompton: Cleanup editor border-colors and dim text color on Cover block.

This commit is contained in:
Allan Cole 2020-07-22 17:24:07 -04:00
parent 311609e80c
commit 5cedaa4f13
2 changed files with 9 additions and 4 deletions

View file

@ -135,6 +135,7 @@ add_color_rule( 'bg', '#E8E4DD', array(
.wp-block-pullquote', 'border-top-color', '-1' ),
// Color
array( 'hr.wp-block-separator.is-style-dots:before', 'color', '-1' ),
// Background-color
array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept.has-focus,
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:focus,
@ -337,6 +338,9 @@ add_color_rule( 'txt', '#252E36', array(
input[type="week"]:focus,
textarea:focus', 'border-color' ),
// Border-top-color
array( '.wp-block-pullquote', 'border-top-color' ),
// Border-bottom-color
array( '.comment-list,
.wp-block-pullquote,

View file

@ -21,19 +21,22 @@ add_editor_color_rule( 'bg', '#E8E4DD', array(
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-button) .wp-block-button__link:focus,
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-button) .wp-block-button__link:hover,
#editor .editor-styles-wrapper .wp-block-cover,
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim:not([class*="background-background-color"]),
#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .block-editor-block-list__block,
#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text,
#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-text,
#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container,
#editor .editor-styles-wrapper .wp-block-cover-image,
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim:not([class*="background-background-color"]),
#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .block-editor-block-list__block,
#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-image-text,
#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-text,
#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover__inner-container,
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
// Color
array( 'hr.wp-block-separator.is-style-dots:before', 'color', '-1' ),
// Text-color
array( '#editor .editor-styles-wrapper', 'background-color' ),
@ -145,8 +148,6 @@ add_editor_color_rule( 'txt', '#252E36', array(
#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 .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' ),