Varia: Remove code that changes the cover block colors (#5212)

This commit is contained in:
Ben Dwyer 2021-12-20 09:32:09 +00:00 committed by GitHub
parent 92a6ea0856
commit 80e35ff88c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 90 additions and 385 deletions

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -34,16 +34,6 @@ add_color_rule( 'bg', '#FFFFFF', array(
.wp-block-button__link,
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-cover.has-background-dim,
.wp-block-cover.has-background-dim .block-editor-block-list__block,
.wp-block-cover.has-background-dim .wp-block-cover-image-text,
.wp-block-cover.has-background-dim .wp-block-cover-text,
.wp-block-cover.has-background-dim .wp-block-cover__inner-container,
.wp-block-cover-image.has-background-dim,
.wp-block-cover-image.has-background-dim .block-editor-block-list__block,
.wp-block-cover-image.has-background-dim .wp-block-cover-image-text,
.wp-block-cover-image.has-background-dim .wp-block-cover-text,
.wp-block-cover-image.has-background-dim .wp-block-cover__inner-container,
.wp-block-file .wp-block-file__button,
.wp-block-file a.wp-block-file__button:active,
.wp-block-file a.wp-block-file__button:focus,
@ -246,7 +236,7 @@ add_color_rule( 'link', '#19744C', array(
// Border color left
array( '.wp-block-quote', 'border-left-color' ),
// Border color
array( 'input[type="color"]:focus,
input[type="date"]:focus,
@ -338,9 +328,7 @@ add_color_rule( 'txt', '#303030', array(
.wp-block-search .wp-block-search__input:focus', 'color' ),
// Background-color
array( '.wp-block-cover-image.has-background-dim:not([class*="background-color"]),
.wp-block-cover.has-background-dim:not([class*="background-color"]),
body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
/**
* Utility Classes

View file

@ -20,17 +20,7 @@ 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.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-search .wp-block-search__button,
#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
@ -104,7 +94,7 @@ add_editor_color_rule( 'link', '#19744C', array(
#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button:hover,
#editor .editor-styles-wrapper .has-primary-background-color,
#editor .editor-styles-wrapper .wp-block .has-primary-background-color', 'background-color' ),
array( '#editor .editor-styles-wrapper .wp-block-search .wp-block-search__input:focus', 'border-color' ),
@ -124,10 +114,6 @@ add_editor_color_rule( 'txt', '#303030', array(
#editor .editor-styles-wrapper .wp-block-search .wp-block-search__input:focus,
#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
*/

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -16,17 +16,17 @@ add_color_rule( 'bg', '#FFFDF6', array(
.main-navigation > div > ul > li.current-menu-item li > a,
.main-navigation > div > ul > li.focus li > a,
.main-navigation > div > ul > li:hover li > a,
.main-navigation > div > ul > li:hover li:hover > a,
.main-navigation > div > ul > li:hover li.focus > a,
.main-navigation > div > ul > li:hover li:hover > a,
.main-navigation > div > ul > li:hover li.focus > a,
.main-navigation > div > ul > li:hover li.current-menu-item > a,
.main-navigation > div > ul > li.focus li:hover > a,
.main-navigation > div > ul > li.focus li.focus > a,
.main-navigation > div > ul > li.focus li:hover > a,
.main-navigation > div > ul > li.focus li.focus > a,
.main-navigation > div > ul > li.focus li.current-menu-item > a,
.main-navigation > div > ul > li.current-menu-item li:hover > a,
.main-navigation > div > ul > li.current-menu-item li.focus > a,
.main-navigation > div > ul > li.current-menu-item li.current-menu-item > a,
.mobile-nav-side .site-header #site-navigation.main-navigation .woocommerce-menu-container,
.mobile-nav-side .site-header #site-navigation.main-navigation > div',
.mobile-nav-side .site-header #site-navigation.main-navigation .woocommerce-menu-container,
.mobile-nav-side .site-header #site-navigation.main-navigation > div',
'background-color' ),
// Text-color
@ -55,7 +55,7 @@ add_color_rule( 'bg', '#FFFDF6', array(
.wp-block-file__button,
.wp-block-file__button:focus,
.wp-block-file__button:hover,
.wp-block-pullquote.is-style-solid-color,
.wp-block-pullquote.is-style-solid-color,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover,
@ -141,15 +141,15 @@ add_color_rule( 'link', '#20603C', array(
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link:active,
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus,
.wp-block-button.is-style-outline .wp-block-button__link.has-focus,
.wp-block-button.is-style-outline.wp-block-button__link,
.wp-block-button.is-style-outline.wp-block-button__link:active,
.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color),
.wp-block-button.is-style-outline.wp-block-button__link:hover,
.wp-block-button.is-style-outline.wp-block-button__link:focus,
.wp-block-button.is-style-outline.wp-block-button__link.has-focus,
.wp-block-button.is-style-outline.wp-block-button__link:hover,
.wp-block-button.is-style-outline.wp-block-button__link:focus,
.wp-block-button.is-style-outline.wp-block-button__link.has-focus,
.wp-block-latest-posts > li > a:active,
.wp-block-latest-posts > li > a:focus,
.wp-block-latest-posts > li > a:hover,
@ -161,16 +161,16 @@ add_color_rule( 'link', '#20603C', array(
.main-navigation > div > ul > li.current-menu-item > a,
.main-navigation > div > ul > li.focus > a,
.main-navigation > div > ul > li:hover > a,
.main-navigation > div > ul > li:hover li:hover > a,
.main-navigation > div > ul > li:hover li.focus > a,
.main-navigation > div > ul > li:hover li:hover > a,
.main-navigation > div > ul > li:hover li.focus > a,
.main-navigation > div > ul > li:hover li.current-menu-item > a,
.main-navigation > div > ul > li.focus li:hover > a,
.main-navigation > div > ul > li.focus li.focus > a,
.main-navigation > div > ul > li.focus li:hover > a,
.main-navigation > div > ul > li.focus li.focus > a,
.main-navigation > div > ul > li.focus li.current-menu-item > a,
.main-navigation > div > ul > li.current-menu-item li:hover > a,
.main-navigation > div > ul > li.current-menu-item li.focus > a,
.main-navigation > div > ul > li.current-menu-item li.current-menu-item > a', 'color' ),
// Text-color with less opacity (dim)
array( '.a8c-posts-list__item .a8c-posts-list-item__meta a:active,
.a8c-posts-list__item .a8c-posts-list-item__meta a:hover,
@ -252,9 +252,7 @@ add_color_rule( 'txt', '#3C2323', array(
.main-navigation > div > ul > li:hover li > a', 'color' ),
// Background-color
array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative,
.wp-block-cover,
.wp-block-cover-image', 'background-color' ),
array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
// Border-color
array( '.wp-block-code,
@ -331,7 +329,7 @@ add_color_rule( 'fg1', '#655441', array(
array( '.has-secondary-color', 'color' ),
// Background-color
array( '
array( '
.main-navigation .button:focus,
.main-navigation .button:hover,
.main-navigation #toggle:focus + #toggle-menu,
@ -344,12 +342,12 @@ add_color_rule( 'fg1', '#655441', array(
* Custom CSS
*/
function barnsbury_custom_colors_extra_css() {
function barnsbury_custom_colors_extra_css() {
$colors_array = get_theme_mod( 'colors_manager' );
$bg = $colors_array['colors']['bg'];
?>
@media screen and (min-width: 560px) {
.main-navigation > div > ul > li > .sub-menu {
background-color: <?php echo $bg; ?>;
border: 1px solid;
@ -366,7 +364,7 @@ function barnsbury_custom_colors_extra_css() {
}
}
<?php }
add_theme_support( 'custom_colors_extra_css', 'barnsbury_custom_colors_extra_css' );
add_theme_support( 'custom_colors_extra_css', 'barnsbury_custom_colors_extra_css' );
/**
* Featured Varia Palettes

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #0D1B24;
color: #FDF9EC;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #0D1B24;
color: #FDF9EC;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -38,12 +38,6 @@ add_color_rule(
.wp-block-button__link,
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-image-text,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-text,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover__inner-container,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover-text,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container,
.wp-block-file .wp-block-file__button,
.wp-block-file a.wp-block-file__button:active,
.wp-block-file a.wp-block-file__button:focus,
@ -195,8 +189,8 @@ add_color_rule(
// Background-color
array(
'.main-navigation #toggle-menu:active,
.main-navigation #toggle-menu:focus,
'.main-navigation #toggle-menu:active,
.main-navigation #toggle-menu:focus,
.main-navigation #toggle-menu:hover',
'background-color',
0.8,
@ -384,10 +378,6 @@ add_color_rule(
.button,
.wp-block-search .wp-block-search__button,
.wp-block-button__link,
.wp-block-cover,
.wp-block-cover-image,
.wp-block-cover-image.has-background-dim:not([class*="background-color"]),
.wp-block-cover.has-background-dim:not([class*="background-color"]),
.wp-block-file .wp-block-file__button,
.wp-block-file__button,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
@ -396,8 +386,8 @@ add_color_rule(
button[data-load-more-btn],
input[type="submit"],
.main-navigation > div > ul > li > .sub-menu,
.main-navigation > div > ul > li:hover li > a,
.main-navigation > div > ul > li.focus li > a,
.main-navigation > div > ul > li:hover li > a,
.main-navigation > div > ul > li.focus li > a,
.main-navigation > div > ul > li.current-menu-item li > a',
'background-color',
),
@ -575,8 +565,8 @@ function brompton_custom_colors_extra_css() {
}
@media screen and (min-width: 560px) {
.main-navigation > div > ul > li:hover li > a,
.main-navigation > div > ul > li.focus li > a,
.main-navigation > div > ul > li:hover li > a,
.main-navigation > div > ul > li.focus li > a,
.main-navigation > div > ul > li.current-menu-item li > a {
border-top-color: currentColor;
}

View file

@ -20,18 +20,6 @@ add_editor_color_rule( 'bg', '#E8E4DD', array(
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-button) .wp-block-button__link.has-focus,
#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: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: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-search .wp-block-search__button,
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
@ -105,7 +93,7 @@ add_editor_color_rule( 'link', '#C04239', array(
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
/**
@ -128,7 +116,7 @@ add_editor_color_rule( 'txt', '#252E36', array(
// Text-color
array( '#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
#editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link,
#editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link,
#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,
@ -158,20 +146,16 @@ add_editor_color_rule( 'txt', '#252E36', array(
array( '#editor .editor-styles-wrapper .wp-block-pullquote', 'border-top-color' ),
// Border-bottom-color
array( '#editor .editor-styles-wrapper .comment-list,
#editor .editor-styles-wrapper .wp-block-pullquote,
#editor .editor-styles-wrapper hr,
array( '#editor .editor-styles-wrapper .comment-list,
#editor .editor-styles-wrapper .wp-block-pullquote,
#editor .editor-styles-wrapper hr,
#editor .editor-styles-wrapper hr.wp-block-separator', 'border-bottom-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,
#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button,
#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,
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim', 'background-color' ),
#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button', 'background-color' ),
/**
* Utility Classes

View file

@ -1549,7 +1549,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #252E36;
color: #E8E4DD;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1560,7 +1559,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1549,7 +1549,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #252E36;
color: #E8E4DD;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1560,7 +1559,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -30,14 +30,6 @@ add_color_rule( 'bg', '#FFFFFF', array(
.wp-block-button__link,
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover-image-text,
.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover-text,
.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover__inner-container,
.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-image-text,
.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-text,
.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover__inner-container,
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim,
.wp-block-file .wp-block-file__button,
.wp-block-file a.wp-block-file__button:active,
.wp-block-file a.wp-block-file__button:focus,
@ -197,9 +189,7 @@ add_color_rule( 'txt', '#444444', array(
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept', 'color' ),
// Background-color
array( '.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim,
table.is-style-stripes tbody tr:nth-child(odd),
array( 'table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),

View file

@ -26,17 +26,6 @@ add_editor_color_rule( 'bg', '#FFFFFF', array(
#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 .wp-block-search .wp-block-search__button,
#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="has-background-background-color"]) .wp-block-cover-image-text,
#editor .editor-styles-wrapper .wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover-text,
#editor .editor-styles-wrapper .wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover__inner-container,
#editor .editor-styles-wrapper .wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-image-text,
#editor .editor-styles-wrapper .wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-text,
#editor .editor-styles-wrapper .wp-block-cover:not([class="has-background-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 a,
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
#editor .editor-styles-wrapper .has-background a,
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
@ -82,13 +71,8 @@ add_editor_color_rule( 'bg', '#FFFFFF', array(
array( '#editor .editor-styles-wrapper .has-background:not(.has-background-background-color) .wp-block-quote .wp-block-quote__citation,
#editor .editor-styles-wrapper [class*="background-color"]:not(.has-background-background-color) .wp-block-quote .wp-block-quote__citation,
#editor .editor-styles-wrapper [style*="background-color"]:not(.has-background-background-color) .wp-block-quote .wp-block-quote__citation,
#editor .editor-styles-wrapper .wp-block-cover[style*="background-image"] .wp-block-quote .wp-block-quote__citation,
#editor .editor-styles-wrapper .wp-block-cover .wp-block-cover__inner-container a,
#editor .editor-styles-wrapper .wp-block-cover .wp-block-cover-image-text a,
#editor .editor-styles-wrapper .wp-block-cover .wp-block-cover-text a,
#editor .editor-styles-wrapper .wp-block-cover-image .wp-block-cover__inner-container a,
#editor .editor-styles-wrapper .wp-block-cover-image .wp-block-cover-image-text a,
#editor .editor-styles-wrapper .wp-block-cover-image .wp-block-cover-text a', 'color' ),
#editor .editor-styles-wrapper .wp-block-cover[style*="background-image"] .wp-block-quote .wp-block-quote__citation', 'color' ),
// Border-color
array( '#editor .editor-styles-wrapper .has-background:not(.has-background-background-color) .wp-block-quote,
#editor .editor-styles-wrapper [class*="background-color"]:not(.has-background-background-color) .wp-block-quote,
@ -140,9 +124,7 @@ add_editor_color_rule( 'txt', '#444444', array(
#editor .editor-styles-wrapper', 'color' ),
// Background-color
array( '#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
array( '#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)', 'background-color' ),
/**

View file

@ -1545,7 +1545,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #444444;
color: #FFFFFF;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1556,7 +1555,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1545,7 +1545,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #444444;
color: #FFFFFF;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1556,7 +1555,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1547,7 +1547,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1558,7 +1557,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1547,7 +1547,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1558,7 +1557,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -15,14 +15,6 @@ add_color_rule( 'bg', '#FFFFFF', array(
// Text-color
array( '.a8c-posts-list-item__featured span,
.sticky-post,
.wp-block-cover-image.has-background-dim,
.wp-block-cover.has-background-dim,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-image-text,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-text,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover__inner-container,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover-text,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container,
.wp-block-pullquote.is-style-solid-color,
body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'color' ),
@ -122,7 +114,7 @@ add_color_rule( 'link', '#23883D', array(
.wp-block-search .wp-block-search__button:hover,
.wp-block-search .wp-block-search__button:focus,
input[type="submit"]', 'background-color' ),
// Text-color
array( '.a8c-posts-list .a8c-posts-list-item__title a:active,
.a8c-posts-list .a8c-posts-list-item__title a:focus,
@ -147,14 +139,14 @@ add_color_rule( 'link', '#23883D', array(
.wp-block-newspack-blocks-homepage-articles article .entry-title a:focus,
.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
a', 'color' ),
// Border color left
array( '.wp-block-quote', 'border-left-color' ),
// Border color right
array( '.wp-block-quote[style*="text-align: right"],
.wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
/**
* Utility Classes
*/
@ -187,11 +179,7 @@ add_color_rule( 'txt', '#111111', array(
table.is-style-stripes tbody tr:nth-child(odd)', 'color' ),
// Background-color
array( '.wp-block-cover,
.wp-block-cover-image,
.wp-block-cover-image.has-background-dim,
.wp-block-cover.has-background-dim,
body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
/**
* Utility Classes
@ -268,7 +256,7 @@ add_color_rule( 'txt', '#111111', array(
.wp-block-quote.is-style-large footer,
.wp-block-video figcaption,
figcaption', 'color', '+2' ),
// Text color
array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'border-color', '-1' ),

View file

@ -12,19 +12,7 @@ add_editor_color_rule( 'bg', '#FFFFFF', array(
#editor .editor-styles-wrapper', 'background-color' ),
// 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,
#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container,
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
array( '#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
/**
* Utility Classes
@ -132,10 +120,6 @@ add_editor_color_rule( 'txt', '#111111', array(
#editor .editor-styles-wrapper .wp-block-code,
#editor .editor-styles-wrapper', 'color' ),
// Background-color
array( '#editor .editor-styles-wrapper .wp-block-cover,
#editor .editor-styles-wrapper .wp-block-cover-image', 'background-color' ),
/**
* Utility Classes
*/

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #111111;
color: #FFFFFF;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #111111;
color: #FFFFFF;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1575,7 +1575,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--foreground);
color: var(--wp--preset--color--background);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1586,7 +1585,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1575,7 +1575,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--foreground);
color: var(--wp--preset--color--background);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1586,7 +1585,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -34,12 +34,6 @@ add_color_rule( 'bg', '#f7f7f6', array(
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):visited,
body .widget_eu_cookie_law_widget #eu-cookie-law.negative,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-image-text,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-text,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover__inner-container,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover-text,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container,
.wp-block-pullquote.is-style-solid-color', 'color' ),
/**
@ -138,7 +132,7 @@ add_color_rule( 'link', '#ff302c', array(
.social-navigation a,
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):active,
.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color),
.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color),
.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color):active,
.wp-block-newspack-blocks-homepage-articles article .entry-title a,
a', 'color' ),
@ -181,13 +175,9 @@ add_color_rule( 'txt', '#444444', array(
table.is-style-stripes tbody tr:nth-child(odd)', 'color' ),
// Background-color
array( '.wp-block-cover,
.wp-block-cover.has-background-dim,
.wp-block-cover-image,
.wp-block-cover-image.has-background-dim,
body .widget_eu_cookie_law_widget #eu-cookie-law.negative,
array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative,
.main-navigation #toggle:focus + #toggle-menu', 'background-color' ),
// Border-color darkened
array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color', '-1' ),

View file

@ -14,22 +14,12 @@ add_editor_color_rule( 'bg', '#f7f7f6', array(
array( '#editor .editor-styles-wrapper .wp-block-button__link:not(.has-text-color),
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color),
#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button,
#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-pullquote.is-style-solid-color', 'color' ),
// Lighten bg-color
array( '#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)', 'background-color', '+1' ),
// Darken text-color
array( '#editor .editor-styles-wrapper .wp-block-separator.is-style-dots:before,
#editor .editor-styles-wrapper hr.is-style-dots:before', 'color', '-1' ),
@ -168,7 +158,7 @@ add_editor_color_rule( 'txt', '#444444', array(
#editor .editor-styles-wrapper .wp-block-video figcaption,
#editor .editor-styles-wrapper figcaption,
#editor .editor-styles-wrapper .wp-block-code', 'color' ),
// Lighten text-color
array( '#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .cat-links,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-meta,
@ -179,12 +169,6 @@ add_editor_color_rule( 'txt', '#444444', array(
#editor .editor-styles-wrapper .wp-block-quote .wp-block-quote__citation,
#editor .editor-styles-wrapper figcaption', 'color', '+2' ),
// Background-color
array( '#editor .editor-styles-wrapper .wp-block-cover,
#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
*/
@ -266,7 +250,7 @@ add_editor_color_rule( 'fg1', '#1285ce', array(
*/
function leven_editor_custom_colors_extra_css() { ?>
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline.has-background[class],
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline.has-background[class],
#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link.has-background[class] {
background: transparent !important;
}

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #444444;
color: #f7f7f6;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #444444;
color: #f7f7f6;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1547,7 +1547,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1558,7 +1557,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1547,7 +1547,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1558,7 +1557,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -14,8 +14,6 @@ add_color_rule( 'bg', '#FFFFFF', array(
// Text-color
array( '.a8c-posts-list-item__featured span,
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim,
.sticky-post,
.wp-block-pullquote.is-style-solid-color,
body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'color' ),
@ -177,7 +175,7 @@ add_color_rule( 'link', '#897248', array(
.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
.wp-block-newspack-blocks-homepage-articles article .more-link:hover,
a:hover', 'color', '-1' ),
// Background-color darkened
array( '.a8c-posts-list__view-all:focus,
.a8c-posts-list__view-all:hover,
@ -200,7 +198,7 @@ add_color_rule( 'link', '#897248', array(
input.has-focus[type="submit"],
input:focus[type="submit"],
input:hover[type="submit"]', 'background-color', '-1' ),
// Background-color darkened
array( 'input[type="color"]:focus,
input[type="date"]:focus,
@ -349,36 +347,36 @@ function maywood_custom_colors_extra_css() {
$txt = $colors_array['colors']['txt'];
?>
.wp-block-cover[style*="background-image"] h1,
.wp-block-cover[style*="background-image"] h2,
.wp-block-cover[style*="background-image"] h3,
.wp-block-cover[style*="background-image"] h4,
.wp-block-cover[style*="background-image"] h5,
.wp-block-cover[style*="background-image"] h6,
.wp-block-cover video + .wp-block-cover__inner-container h1,
.wp-block-cover video + .wp-block-cover__inner-container h2,
.wp-block-cover video + .wp-block-cover__inner-container h3,
.wp-block-cover video + .wp-block-cover__inner-container h4,
.wp-block-cover video + .wp-block-cover__inner-container h5,
.wp-block-cover video + .wp-block-cover__inner-container h6,
.wp-block-cover-image[style*="background-image"] h1,
.wp-block-cover-image[style*="background-image"] h2,
.wp-block-cover-image[style*="background-image"] h3,
.wp-block-cover-image[style*="background-image"] h4,
.wp-block-cover-image[style*="background-image"] h5,
.wp-block-cover-image[style*="background-image"] h6,
.wp-block-cover-image video + .wp-block-cover__inner-container h1,
.wp-block-cover-image video + .wp-block-cover__inner-container h2,
.wp-block-cover-image video + .wp-block-cover__inner-container h3,
.wp-block-cover-image video + .wp-block-cover__inner-container h4,
.wp-block-cover-image video + .wp-block-cover__inner-container h5,
.wp-block-cover[style*="background-image"] h1,
.wp-block-cover[style*="background-image"] h2,
.wp-block-cover[style*="background-image"] h3,
.wp-block-cover[style*="background-image"] h4,
.wp-block-cover[style*="background-image"] h5,
.wp-block-cover[style*="background-image"] h6,
.wp-block-cover video + .wp-block-cover__inner-container h1,
.wp-block-cover video + .wp-block-cover__inner-container h2,
.wp-block-cover video + .wp-block-cover__inner-container h3,
.wp-block-cover video + .wp-block-cover__inner-container h4,
.wp-block-cover video + .wp-block-cover__inner-container h5,
.wp-block-cover video + .wp-block-cover__inner-container h6,
.wp-block-cover-image[style*="background-image"] h1,
.wp-block-cover-image[style*="background-image"] h2,
.wp-block-cover-image[style*="background-image"] h3,
.wp-block-cover-image[style*="background-image"] h4,
.wp-block-cover-image[style*="background-image"] h5,
.wp-block-cover-image[style*="background-image"] h6,
.wp-block-cover-image video + .wp-block-cover__inner-container h1,
.wp-block-cover-image video + .wp-block-cover__inner-container h2,
.wp-block-cover-image video + .wp-block-cover__inner-container h3,
.wp-block-cover-image video + .wp-block-cover__inner-container h4,
.wp-block-cover-image video + .wp-block-cover__inner-container h5,
.wp-block-cover-image video + .wp-block-cover__inner-container h6 {
text-shadow: none;
}
.wp-block-cover[style*="background-image"] p,
.wp-block-cover video + .wp-block-cover__inner-container p,
.wp-block-cover-image[style*="background-image"] p,
.wp-block-cover[style*="background-image"] p,
.wp-block-cover video + .wp-block-cover__inner-container p,
.wp-block-cover-image[style*="background-image"] p,
.wp-block-cover-image video + .wp-block-cover__inner-container p {
text-shadow: none;
}

View file

@ -12,10 +12,7 @@ add_editor_color_rule(
// Text-color
array(
'#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color,
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
#editor .editor-styles-wrapper .wp-block-cover-image.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-pullquote.is-style-solid-color',
'color',
),
// Background-color
@ -251,13 +248,6 @@ add_editor_color_rule(
'color',
),
// Background-color
array(
'#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim',
'background-color',
),
/**
* Utility Classes
*/

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1575,7 +1575,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--foreground);
color: var(--wp--preset--color--background);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1586,7 +1585,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1575,7 +1575,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--foreground);
color: var(--wp--preset--color--background);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1586,7 +1585,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -34,12 +34,6 @@ add_color_rule(
.wp-block-button__link,
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-image-text,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-text,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover__inner-container,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover-text,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container,
.wp-block-file .wp-block-file__button,
.wp-block-file a.wp-block-file__button:active,
.wp-block-file a.wp-block-file__button:focus,
@ -432,9 +426,6 @@ add_color_rule(
.has-foreground-background-color[class],
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-cover,
.wp-block-cover-image,
.wp-block-cover-image.has-background-dim,
.wp-block-file__button:focus,
.wp-block-file__button:hover,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,

View file

@ -27,18 +27,6 @@ add_editor_color_rule(
#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-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-image:not([class*="background-color"]) .block-editor-block-list__block,
#editor .editor-styles-wrapper .wp-block-cover,
#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:not([class*="background-color"]) .block-editor-block-list__block,
#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button,
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color',
'color',
@ -226,11 +214,7 @@ add_editor_color_rule(
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .has-focus.button,
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link.has-focus,
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .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-image,
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim',
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover',
'background-color',
),

View file

@ -1549,7 +1549,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #222222;
color: #FFFFFF;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1560,7 +1559,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1549,7 +1549,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: #222222;
color: #FFFFFF;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1560,7 +1559,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -65,14 +65,6 @@ add_color_rule(
.wp-block-pullquote.is-style-solid-color,
table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover-image-text,
.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover-text,
.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover__inner-container,
.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-image-text,
.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-text,
.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover__inner-container,
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover,
@ -294,9 +286,7 @@ add_color_rule(
// Background-color
array(
'.wp-block-cover.has-background-dim:not([class*="background-color"]),
.wp-block-cover-image.has-background-dim:not([class*="background-color"]),
.has-foreground-background-color[class],
'.has-foreground-background-color[class],
table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
body .widget_eu_cookie_law_widget #eu-cookie-law.negative',

View file

@ -30,15 +30,7 @@ add_editor_color_rule(
#editor .editor-styles-wrapper .wp-block-button__link:focus,
#editor .editor-styles-wrapper .wp-block-button__link:hover,
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color,
#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button,
#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"]) .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-image.has-background-dim',
#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button',
'color',
),
@ -163,9 +155,7 @@ add_editor_color_rule(
// Background-color
array(
'#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
#editor .editor-styles-wrapper 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-table.is-style-stripes tbody tr:nth-child(odd)',
'background-color',
),

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1548,7 +1548,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1559,7 +1558,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1571,7 +1571,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--foreground);
color: var(--wp--preset--color--background);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1582,7 +1581,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1571,7 +1571,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--foreground);
color: var(--wp--preset--color--background);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1582,7 +1581,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1576,7 +1576,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--black);
color: var(--wp--preset--color--white);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1587,7 +1586,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1576,7 +1576,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--black);
color: var(--wp--preset--color--white);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1587,7 +1586,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1575,7 +1575,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--foreground);
color: var(--wp--preset--color--background);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1586,7 +1585,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1575,7 +1575,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--foreground);
color: var(--wp--preset--color--background);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1586,7 +1585,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1574,7 +1574,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--foreground);
color: var(--wp--preset--color--background);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1585,7 +1584,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1574,7 +1574,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: var(--wp--preset--color--foreground);
color: var(--wp--preset--color--background);
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1585,7 +1584,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -30,14 +30,6 @@ add_color_rule( 'bg', '#ffffff', array(
.wp-block-button__link,
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-image-text,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-text,
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover__inner-container,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover-text,
.wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container,
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim,
.wp-block-file .wp-block-file__button,
.wp-block-file a.wp-block-file__button:active,
.wp-block-file a.wp-block-file__button:focus,
@ -334,9 +326,7 @@ add_color_rule( 'txt', '#444444', array(
hr.wp-block-separator', 'border-bottom-color', 0.8 ),
// Background-color
array( '.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim,
table.is-style-stripes tbody tr:nth-child(odd),
array( 'table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),

View file

@ -33,19 +33,7 @@ add_editor_color_rule( 'bg', '#ffffff', array(
#editor .editor-styles-wrapper .wp-block-button__link:hover,
#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 .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-search .wp-block-search__button,
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
// Background-color
@ -207,9 +195,7 @@ add_editor_color_rule( 'txt', '#444444', array(
#editor .editor-styles-wrapper .wp-block-separator', 'border-bottom-color', 0.8 ),
// Background-color
array( '#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
array( '#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)', 'background-color' ),
/**

View file

@ -8,7 +8,6 @@
&.has-background-dim {
background-color: #{map-deep-get($config-cover, "color", "background")};
color: #{map-deep-get($config-cover, "color", "foreground")};
}
.wp-block-cover__inner-container,
@ -16,7 +15,6 @@
.wp-block-cover-text {
margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
color: currentColor;
}
/* Treating H2 separately to account for legacy /core styles */

View file

@ -1581,7 +1581,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1592,7 +1591,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,

View file

@ -1581,7 +1581,6 @@ button[data-load-more-btn], .button {
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
@ -1592,7 +1591,6 @@ button[data-load-more-btn], .button {
.wp-block-cover-image .wp-block-cover-text {
margin-top: 32px;
margin-bottom: 32px;
color: currentColor;
}
.wp-block-cover h2,