mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-21 04:11:59 +08:00
Honor background and font color in the editor (#1317)
* Honor background color in the editor * Honor font color in the editor for WP 5.4
This commit is contained in:
parent
05cbe8e143
commit
aa9200fea4
1 changed files with 8 additions and 1 deletions
|
@ -924,6 +924,10 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
|
||||
if ( is_admin() ) {
|
||||
$styles .= '
|
||||
.editor-styles-wrapper {
|
||||
background-color: ' . $storefront_theme_mods['background_color'] . ';
|
||||
}
|
||||
|
||||
.editor-styles-wrapper table:not( .has-background ) th {
|
||||
background-color: ' . storefront_adjust_color_brightness( $storefront_theme_mods['background_color'], -7 ) . ';
|
||||
}
|
||||
|
@ -948,7 +952,10 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
color: ' . $storefront_theme_mods['heading_color'] . ';
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .editor-block-list__block {
|
||||
/* WP <=5.3 */
|
||||
.editor-styles-wrapper .editor-block-list__block,
|
||||
/* WP >=5.4 */
|
||||
.editor-styles-wrapper .block-editor-block-list__block {
|
||||
color: ' . $storefront_theme_mods['text_color'] . ';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue