|
@@ -5,7 +5,7 @@
|
|
|
|
|
|
// Background Color
|
|
// Background Color
|
|
// $config-global--color-background-default
|
|
// $config-global--color-background-default
|
|
-add_editor_color_rule( 'bg', 'white', array(
|
|
|
|
|
|
+add_editor_color_rule( 'bg', '#FFFFFF', array(
|
|
|
|
|
|
// Background-color
|
|
// Background-color
|
|
array( '#editor .editor-styles-wrapper', 'background-color' ),
|
|
array( '#editor .editor-styles-wrapper', 'background-color' ),
|
|
@@ -76,14 +76,8 @@ add_editor_color_rule( 'bg', 'white', array(
|
|
// $config-global--color-primary-default
|
|
// $config-global--color-primary-default
|
|
add_editor_color_rule( 'link', '#CA2017', array(
|
|
add_editor_color_rule( 'link', '#CA2017', array(
|
|
|
|
|
|
- // Background-color
|
|
|
|
- array( '#editor .editor-styles-wrapper .button,
|
|
|
|
- #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' ),
|
|
|
|
-
|
|
|
|
// Text-color
|
|
// Text-color
|
|
- array( '#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link,
|
|
|
|
|
|
+ array( '#editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:active,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:active,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:focus,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:focus,
|
|
@@ -91,6 +85,12 @@ add_editor_color_rule( 'link', '#CA2017', array(
|
|
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline,
|
|
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline,
|
|
#editor .editor-styles-wrapper a', 'color' ),
|
|
#editor .editor-styles-wrapper a', 'color' ),
|
|
|
|
|
|
|
|
+ // Background-color
|
|
|
|
+ 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:not(.has-background),
|
|
|
|
+ #editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
|
|
|
|
+
|
|
// Border color left
|
|
// Border color left
|
|
array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
|
|
array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
|
|
|
|
|
|
@@ -101,10 +101,12 @@ add_editor_color_rule( 'link', '#CA2017', array(
|
|
/**
|
|
/**
|
|
* Utility Classes
|
|
* Utility Classes
|
|
*/
|
|
*/
|
|
- // Background-color
|
|
|
|
- array( '#editor .editor-styles-wrapper .has-primary-background-color[class]', 'background-color' ),
|
|
|
|
// Text-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' ),
|
|
|
|
+ // 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' ),
|
|
|
|
|
|
), __( 'Link Color' ) );
|
|
), __( 'Link Color' ) );
|
|
|
|
|
|
@@ -114,9 +116,9 @@ add_editor_color_rule( 'txt', '#222222', array(
|
|
|
|
|
|
// Text-color
|
|
// Text-color
|
|
array( '#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
|
|
array( '#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
|
|
- #editor .editor-styles-wrapper .is-style-outline .wp-block-button__link.has-focus,
|
|
|
|
- #editor .editor-styles-wrapper .is-style-outline .wp-block-button__link:focus,
|
|
|
|
- #editor .editor-styles-wrapper .is-style-outline .wp-block-button__link:hover,
|
|
|
|
|
|
+ #editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link.has-focus,
|
|
|
|
+ #editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link:focus,
|
|
|
|
+ #editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link:hover,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .cat-links a:active,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .cat-links a:active,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .cat-links a:hover,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .cat-links a:hover,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-meta a:active,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-meta a:active,
|
|
@@ -128,6 +130,8 @@ add_editor_color_rule( 'txt', '#222222', array(
|
|
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:focus,
|
|
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:focus,
|
|
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:hover,
|
|
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:hover,
|
|
#editor .editor-styles-wrapper .wp-block-pullquote,
|
|
#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 a:hover,
|
|
#editor .editor-styles-wrapper a:hover,
|
|
#editor .editor-styles-wrapper', 'color' ),
|
|
#editor .editor-styles-wrapper', 'color' ),
|
|
|
|
|
|
@@ -135,7 +139,6 @@ add_editor_color_rule( 'txt', '#222222', array(
|
|
array( '#editor .editor-styles-wrapper .button.has-focus,
|
|
array( '#editor .editor-styles-wrapper .button.has-focus,
|
|
#editor .editor-styles-wrapper .button:focus,
|
|
#editor .editor-styles-wrapper .button:focus,
|
|
#editor .editor-styles-wrapper .button:hover,
|
|
#editor .editor-styles-wrapper .button:hover,
|
|
- #editor .editor-styles-wrapper .has-foreground-background-color,
|
|
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button:focus,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button:focus,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button:hover,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button:hover,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .has-focus.button,
|
|
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .has-focus.button,
|
|
@@ -143,26 +146,39 @@ add_editor_color_rule( 'txt', '#222222', array(
|
|
#editor .editor-styles-wrapper .wp-block-button__link: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-button__link:hover,
|
|
#editor .editor-styles-wrapper .wp-block-cover,
|
|
#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
|
|
* Utility Classes
|
|
*/
|
|
*/
|
|
// Text-color
|
|
// Text-color
|
|
array( '#editor .editor-styles-wrapper .has-background-background-color[class],
|
|
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 .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-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
|
|
// 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
|
|
// 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
|
|
// 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
|
|
// 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
|
|
// 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
|
|
* Grays
|