浏览代码

Dalston: Reduce specificity on rules to hide extra color palettes

Allan Cole 4 年之前
父节点
当前提交
f8a85bc4d4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dalston/functions.php

+ 2 - 2
dalston/functions.php

@@ -196,8 +196,8 @@ function dalston_editor_styles() {
 	// Hide duplicate palette colors
 	$colors_array = get_theme_mod('colors_manager', array( 'colors' => true )); // color annotations array()
 	if ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#1E1E1E' ) { // $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 );