Browse Source

Remove custom ::selection rules.

This causes bold selection colors... probably too bold.
Kjell Reigstad 5 years ago
parent
commit
3a41bd3cc8
1 changed files with 0 additions and 19 deletions
  1. 0 19
      varia/inc/wpcom-colors.php

+ 0 - 19
varia/inc/wpcom-colors.php

@@ -372,25 +372,6 @@ add_color_rule( 'fg1', '#ff0000', array(
 
 ), __( 'Secondary Color' ) );
 
-function varia_custom_colors_extra_css() {
-	// Get stored colors
-	$colors_array = get_theme_mod('colors_manager'); // color annotations array()
-	$foreground   = $colors_array['colors']['link']; // $config-global--color-primary-default;
-	$background   = $colors_array['colors']['bg'];   // $config-global--color-primary-default;
-?>
-	::selection {
-		background-color: <?php echo $foreground; ?>;
-		color: <?php echo $background; ?>;
-		mix-blend-mode: hard-light;
-	}
-	::-moz-selection {
-		background-color: <?php echo $foreground; ?>;
-		color: <?php echo $background; ?>;
-		mix-blend-mode: hard-light;
-	}
-<?php }
-add_theme_support( 'custom_colors_extra_css', 'varia_custom_colors_extra_css' );
-
 /**
  * Featured Varia Palettes
  */