Browse Source

Leven: clean up nested link colors.

Allan Cole 5 years ago
parent
commit
2365a4e07f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      leven/inc/wpcom-editor-colors.php

+ 11 - 0
leven/inc/wpcom-editor-colors.php

@@ -252,3 +252,14 @@ add_editor_color_rule( 'fg1', '#1285ce', array(
 			#editor .editor-styles-wrapper .wp-block .has-secondary-background-color[class]', 'background-color' ),
 
 ), __( 'Secondary Color' ) );
+
+/**
+ * Custom CSS
+ */
+function leven_editor_custom_colors_extra_css() { ?>
+	#editor .editor-styles-wrapper .has-text-color a,
+	#editor .editor-styles-wrapper .has-background a {
+		color: currentColor;
+	}
+<?php }
+add_theme_support( 'custom_colors_extra_css', 'leven_editor_custom_colors_extra_css' );