|
@@ -20,16 +20,16 @@ add_editor_color_rule( 'bg', '#FFFFFF', array(
|
|
|
#editor .editor-styles-wrapper .wp-block-button__link.has-focus,
|
|
|
#editor .editor-styles-wrapper .wp-block-button__link:focus,
|
|
|
#editor .editor-styles-wrapper .wp-block-button__link:hover,
|
|
|
- #editor .editor-styles-wrapper .wp-block-cover,
|
|
|
- #editor .editor-styles-wrapper .wp-block-cover-image,
|
|
|
- #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: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.has-background-dim,
|
|
|
+ #editor .editor-styles-wrapper .wp-block-cover.has-background-dim .block-editor-block-list__block,
|
|
|
+ #editor .editor-styles-wrapper .wp-block-cover.has-background-dim .wp-block-cover-image-text,
|
|
|
+ #editor .editor-styles-wrapper .wp-block-cover.has-background-dim .wp-block-cover-text,
|
|
|
+ #editor .editor-styles-wrapper .wp-block-cover.has-background-dim .wp-block-cover__inner-container,
|
|
|
+ #editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
|
|
|
+ #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-cover-image.has-background-dim .wp-block-cover__inner-container,
|
|
|
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
|
|
|
|
|
|
// Background-color
|
|
@@ -40,27 +40,38 @@ add_editor_color_rule( 'bg', '#FFFFFF', array(
|
|
|
*/
|
|
|
|
|
|
// Text-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-primary-background-color[class],
|
|
|
- #editor .editor-styles-wrapper .has-secondary-background-color[class],
|
|
|
- #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' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-primary-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-primary-background-color,
|
|
|
+ #editor .editor-styles-wrapper .has-secondary-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-secondary-background-color,
|
|
|
+ #editor .editor-styles-wrapper .has-foreground-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-background-color,
|
|
|
+ #editor .editor-styles-wrapper .has-foreground-dark-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-dark-background-color,
|
|
|
+ #editor .editor-styles-wrapper .has-foreground-light-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-light-background-color,
|
|
|
+ #editor .editor-styles-wrapper .has-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-color', 'color' ),
|
|
|
|
|
|
// Background-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-background-background-color[class]', 'background-color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-background-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-background-color', '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,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-dark-color', '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,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-dark-background-color', '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,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-light-color', '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,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-light-background-color', 'background-color', '+1' ),
|
|
|
|
|
|
), __( 'Background Color' ) );
|
|
|
|
|
@@ -69,28 +80,28 @@ add_editor_color_rule( 'bg', '#FFFFFF', array(
|
|
|
add_editor_color_rule( 'link', '#19744C', array(
|
|
|
|
|
|
// Text-color
|
|
|
- array( '#editor .editor-styles-wrapper #editor .editor-styles-wrapper .has-primary-color[class],
|
|
|
- #editor .editor-styles-wrapper #editor .editor-styles-wrapper .is-style-outline .wp-block-button__link,
|
|
|
- #editor .editor-styles-wrapper #editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
|
|
|
- #editor .editor-styles-wrapper #editor .editor-styles-wrapper .wp-block-button__link.is-style-outline,
|
|
|
- #editor .editor-styles-wrapper #editor .editor-styles-wrapper a', 'color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
|
|
|
+ .editor-styles-wrapper a', 'color' ),
|
|
|
|
|
|
// Background-color
|
|
|
array( '#editor .editor-styles-wrapper .button,
|
|
|
- #editor .editor-styles-wrapper .has-primary-background-color[class],
|
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button,
|
|
|
#editor .editor-styles-wrapper .wp-block-button__link,
|
|
|
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
|
|
|
|
|
|
+ // Border-left-color
|
|
|
+ array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
|
|
|
+
|
|
|
/**
|
|
|
* 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,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-primary-background-color', 'background-color' ),
|
|
|
|
|
|
// Text-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-primary-color[class]', 'color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-primary-color', 'color' ),
|
|
|
|
|
|
), __( 'Link Color' ) );
|
|
|
|
|
@@ -100,37 +111,46 @@ 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 .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],
|
|
|
#editor .editor-styles-wrapper .wp-block-pullquote,
|
|
|
#editor .editor-styles-wrapper ', 'color' ),
|
|
|
|
|
|
+ // Background-color
|
|
|
+ array( '#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
|
|
|
+ #editor .editor-styles-wrapper .wp-block-cover.has-background-dim', 'background-color' ),
|
|
|
+
|
|
|
/**
|
|
|
* Utility Classes
|
|
|
*/
|
|
|
|
|
|
// Text-color
|
|
|
- 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' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-background-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-background-color,
|
|
|
+ #editor .editor-styles-wrapper .has-background-dark-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-dark-background-color,
|
|
|
+ #editor .editor-styles-wrapper .has-background-light-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-background-light-background-color,
|
|
|
+ #editor .editor-styles-wrapper .has-foreground-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-color', 'color' ),
|
|
|
|
|
|
// Background-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-foreground-background-color[class]', 'background-color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-foreground-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-background-color', '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,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-dark-color', '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,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-dark-background-color', '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,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-light-color', '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,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-foreground-light-background-color', 'background-color', '+2' ),
|
|
|
|
|
|
), __( 'Text Color' ) );
|
|
|
|
|
@@ -143,9 +163,11 @@ add_editor_color_rule( 'fg1', '#BC2213', array(
|
|
|
*/
|
|
|
|
|
|
// Text-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-secondary-color[class]', 'color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-secondary-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-secondary-color', 'color' ),
|
|
|
|
|
|
// Background-color
|
|
|
- array( '#editor .editor-styles-wrapper .has-secondary-background-color[class]', 'background-color' ),
|
|
|
+ array( '#editor .editor-styles-wrapper .has-secondary-background-color,
|
|
|
+ #editor .editor-styles-wrapper .wp-block .has-secondary-background-color', 'background-color' ),
|
|
|
|
|
|
), __( 'Secondary Color' ) );
|