From d72ab2d7445768d6905475cc1a10451e75fcb51f Mon Sep 17 00:00:00 2001 From: Tiago Noronha Date: Thu, 4 Apr 2019 19:01:26 +0100 Subject: [PATCH] Dynamic colors for cover block headings --- assets/css/base/gutenberg-blocks.scss | 1 - inc/customizer/class-storefront-customizer.php | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/css/base/gutenberg-blocks.scss b/assets/css/base/gutenberg-blocks.scss index b93d92d5..557ef65d 100644 --- a/assets/css/base/gutenberg-blocks.scss +++ b/assets/css/base/gutenberg-blocks.scss @@ -342,7 +342,6 @@ padding: 0; margin-left: auto; margin-right: auto; - color: #000000; } h1 { diff --git a/inc/customizer/class-storefront-customizer.php b/inc/customizer/class-storefront-customizer.php index 35db7c4d..833af3e2 100644 --- a/inc/customizer/class-storefront-customizer.php +++ b/inc/customizer/class-storefront-customizer.php @@ -894,6 +894,15 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) : .wp-block-table:not( .is-style-stripes ) tbody tr:nth-child(2n) td { background-color: ' . storefront_adjust_color_brightness( $storefront_theme_mods['background_color'], -2 ) . '; } + + .wp-block-cover .wp-block-cover__inner-container h1, + .wp-block-cover .wp-block-cover__inner-container h2, + .wp-block-cover .wp-block-cover__inner-container h3, + .wp-block-cover .wp-block-cover__inner-container h4, + .wp-block-cover .wp-block-cover__inner-container h5, + .wp-block-cover .wp-block-cover__inner-container h6 { + color: ' . $storefront_theme_mods['hero_text_color'] . '; + } '; return apply_filters( 'storefront_gutenberg_customizer_css', $styles );