瀏覽代碼

Varia: Adding a stronger selector to override styles in the footer of the editor HTML.

Allan Cole 5 年之前
父節點
當前提交
53888c97b7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      varia/inc/wpcom-editor-colors.php

+ 2 - 2
varia/inc/wpcom-editor-colors.php

@@ -6,7 +6,7 @@
 add_color_rule( 'bg', '#ffffff', array(
 add_color_rule( 'bg', '#ffffff', array(
 
 
 	// Background-color
 	// Background-color
-	array( '.editor-styles-wrapper', 'background-color' ),
+	array( '#editor .editor-styles-wrapper', 'background-color' ),
 
 
 ), __( 'Background Color' ) );
 ), __( 'Background Color' ) );
 
 
@@ -16,6 +16,6 @@ add_color_rule( 'txt', '#444444', array(
 
 
 	// Text-color
 	// Text-color
 	// Needs contrast against `bg` with more contrast
 	// Needs contrast against `bg` with more contrast
-	array( '.editor-styles-wrapper', 'color', 'bg', 7 ),
+	array( '#editor .editor-styles-wrapper', 'color', 'bg', 7 ),
 
 
 ), __( 'Forground Color' ) );
 ), __( 'Forground Color' ) );