|
@@ -14,10 +14,12 @@ add_editor_color_rule( 'bg', '#FFFFFF', array(
|
|
|
// Text-color
|
|
|
array( '#editor .editor-styles-wrapper .wp-block-cover,
|
|
|
#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: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-cover.has-background-dim,
|
|
|
#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,
|
|
@@ -33,17 +35,30 @@ add_editor_color_rule( 'bg', '#FFFFFF', array(
|
|
|
#editor .editor-styles-wrapper .has-foreground-background-color[class],
|
|
|
#editor .editor-styles-wrapper .has-foreground-dark-background-color[class],
|
|
|
#editor .editor-styles-wrapper .has-foreground-light-background-color[class],
|
|
|
- #editor .editor-styles-wrapper .has-background-color[class]', 'color' ),
|
|
|
+ #editor .editor-styles-wrapper .has-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-primary-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-secondary-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-dark-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-light-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-color[class]', 'color' ),
|
|
|
// Background-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-background-background-color[class]', 'background-color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-background-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-background-color[class]', 'background-color' ),
|
|
|
+
|
|
|
// Text-color darkened
|
|
|
- array( '#editor .editor-styles-wrapper .has-background-dark-color[class]', 'color', '-1' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-background-dark-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-dark-color[class]', 'color', '-1' ),
|
|
|
// Background-color darkened
|
|
|
- array( '#editor .editor-styles-wrapper .has-background-dark-background-color[class]', 'background-color', '-1' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-background-dark-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-dark-background-color[class]', 'background-color', '-1' ),
|
|
|
+
|
|
|
// Text-color lightened
|
|
|
- array( '#editor .editor-styles-wrapper .has-background-light-color[class]', 'color', '+1' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-background-light-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-light-color[class]', 'color', '+1' ),
|
|
|
// Background-color lightened
|
|
|
- array( '#editor .editor-styles-wrapper .has-background-light-background-color[class]', 'background-color', '+1' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-background-light-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-light-background-color[class]', 'background-color', '+1' ),
|
|
|
|
|
|
/**
|
|
|
* Grays
|
|
@@ -92,9 +107,11 @@ add_editor_color_rule( 'link', '#23883D', array(
|
|
|
* Utility Classes
|
|
|
*/
|
|
|
// Background-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-primary-background-color[class]', 'background-color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-primary-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-primary-background-color[class]', 'background-color' ),
|
|
|
// Text-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-primary-color[class]', 'color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-primary-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-primary-color[class]', 'color' ),
|
|
|
|
|
|
), __( 'Link Color' ) );
|
|
|
|
|
@@ -119,17 +136,26 @@ add_editor_color_rule( 'txt', '#111111', array(
|
|
|
array( '#editor .editor-styles-wrapper .has-background-background-color[class],
|
|
|
#editor .editor-styles-wrapper .has-background-dark-background-color[class],
|
|
|
#editor .editor-styles-wrapper .has-background-light-background-color[class],
|
|
|
- #editor .editor-styles-wrapper .has-foreground-color[class]', 'color' ),
|
|
|
+ #editor .editor-styles-wrapper .has-foreground-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-dark-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-light-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-color[class]', 'color' ),
|
|
|
// Background-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-foreground-background-color[class]', 'background-color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-foreground-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-background-color[class]', 'background-color' ),
|
|
|
// Text-color darkened
|
|
|
- array( '#editor .editor-styles-wrapper .has-foreground-dark-color[class]', 'color', '-1' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-foreground-dark-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-dark-color[class]', 'color', '-1' ),
|
|
|
// Background-color darkened
|
|
|
- array( '#editor .editor-styles-wrapper .has-foreground-dark-background-color[class]', 'background-color', '-1' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-foreground-dark-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-dark-background-color[class]', 'background-color', '-1' ),
|
|
|
// Text-color brightened
|
|
|
- array( '#editor .editor-styles-wrapper .has-foreground-light-color[class]', 'color', '+2' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-foreground-light-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-light-color[class]', 'color', '+2' ),
|
|
|
// Background-color brightened
|
|
|
- array( '#editor .editor-styles-wrapper .has-foreground-light-background-color[class]', 'background-color', '+2' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-foreground-light-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-light-background-color[class]', 'background-color', '+2' ),
|
|
|
|
|
|
/**
|
|
|
* Grays
|
|
@@ -137,6 +163,8 @@ add_editor_color_rule( 'txt', '#111111', array(
|
|
|
*/
|
|
|
// Text-color
|
|
|
array( '#editor .editor-styles-wrapper .a8c-posts-list__item .a8c-posts-list-item__meta,
|
|
|
+ #editor .editor-styles-wrapper .wp-block-a8c-blog-posts .cat-links,
|
|
|
+ #editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-meta,
|
|
|
#editor .editor-styles-wrapper .wp-block-image figcaption,
|
|
|
#editor .editor-styles-wrapper .wp-block-latest-comments .wp-block-latest-comments__comment-date,
|
|
|
#editor .editor-styles-wrapper .wp-block-latest-posts .wp-block-latest-posts__post-date,
|