|
@@ -73,8 +73,8 @@ add_editor_color_rule( 'link', '#ff302c', array(
|
|
|
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
|
|
|
|
|
|
// Text-color
|
|
|
- array( '#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link,
|
|
|
- #editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
|
|
|
+ array( '#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
|
|
|
+ #editor .editor-styles-wrapper .is-style-outline .wp-block-button__link,
|
|
|
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline,
|
|
|
#editor .editor-styles-wrapper a', 'color' ),
|
|
|
|
|
@@ -96,9 +96,11 @@ add_editor_color_rule( 'link', '#ff302c', 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' ) );
|
|
|
|
|
@@ -107,9 +109,11 @@ add_editor_color_rule( 'link', '#ff302c', array(
|
|
|
add_editor_color_rule( 'txt', '#444444', array(
|
|
|
|
|
|
// Text-color
|
|
|
- array( '#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
|
|
|
+ array( '#editor .editor-styles-wrapper,
|
|
|
+ #editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
|
|
|
#editor .editor-styles-wrapper .wp-block-pullquote,
|
|
|
- #editor .editor-styles-wrapper,
|
|
|
+ #editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
|
|
|
+ #editor .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
|
|
|
#editor .editor-styles-wrapper .a8c-posts-list__item .a8c-posts-list-item__meta,
|
|
|
#editor .editor-styles-wrapper .wp-block-image figcaption,
|
|
|
#editor .editor-styles-wrapper .wp-block-latest-comments .wp-block-latest-comments__comment-date,
|
|
@@ -133,26 +137,39 @@ add_editor_color_rule( 'txt', '#444444', array(
|
|
|
|
|
|
// Background-color
|
|
|
array( '#editor .editor-styles-wrapper .wp-block-cover,
|
|
|
- #editor .editor-styles-wrapper .wp-block-cover-image', 'background-color' ),
|
|
|
+ #editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
|
|
|
+ #editor .editor-styles-wrapper .wp-block-cover-image,
|
|
|
+ #editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim', 'background-color' ),
|
|
|
|
|
|
/**
|
|
|
* Utility Classes
|
|
|
*/
|
|
|
// Text-color
|
|
|
array( '#editor .editor-styles-wrapper .has-background-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-background-color[class],
|
|
|
#editor .editor-styles-wrapper .has-background-dark-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .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 .wp-block .has-background-light-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .has-foreground-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' ),
|
|
|
|
|
|
), __( 'Text Color' ) );
|
|
|
|
|
@@ -192,8 +209,10 @@ add_editor_color_rule( 'fg1', '#1285ce', array(
|
|
|
*/
|
|
|
|
|
|
// Text-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-secondary-color[class]', 'color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-secondary-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-secondary-color[class]', 'color' ),
|
|
|
// Background-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-secondary-background-color[class]', 'background-color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-secondary-background-color[class],
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-secondary-background-color[class]', 'background-color' ),
|
|
|
|
|
|
), __( 'Secondary Color' ) );
|