Dynamic colors for cover block headings

This commit is contained in:
Tiago Noronha 2019-04-04 19:01:26 +01:00
parent cc25985ba5
commit d72ab2d744
2 changed files with 9 additions and 1 deletions

View file

@ -342,7 +342,6 @@
padding: 0;
margin-left: auto;
margin-right: auto;
color: #000000;
}
h1 {

View file

@ -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 );