Maywood: Reduce specificity on rules to hide extra color palettes.

This commit is contained in:
Allan Cole 2020-11-04 17:12:27 -05:00 committed by GitHub
parent 33fc0eaebd
commit 178d3a07c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,8 +180,8 @@ function maywood_editor_styles() {
// Hide duplicate palette colors
$colors_array = get_theme_mod( 'colors_manager' );
if ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#686868' ) { // $config-global--color-foreground-light-default;
$inline_palette_css = '.block-editor-color-gradient-control .components-circular-option-picker__option-wrapper:nth-child(5),
.block-editor-color-gradient-control .components-circular-option-picker__option-wrapper:nth-child(6) {
$inline_palette_css = '.components-circular-option-picker__option-wrapper:nth-child(5),
.components-circular-option-picker__option-wrapper:nth-child(6) {
display: none;
}';
wp_add_inline_style( 'wp-edit-blocks', $inline_palette_css );