Ben Dwyer 4 лет назад
Родитель
Сommit
560987d536
2 измененных файлов с 5 добавлено и 11 удалено
  1. 4 10
      seedlet/inc/wpcom-customize-preview.js
  2. 1 1
      seedlet/inc/wpcom-editor-colors.php

+ 4 - 10
seedlet/inc/wpcom-customize-preview.js

@@ -22,16 +22,10 @@
 	// we need to manually override the "extra CSS" when a user selects a different color palette.
 	// we need to manually override the "extra CSS" when a user selects a different color palette.
 	wp.customize( 'colors_manager[colors]', function( value ) {
 	wp.customize( 'colors_manager[colors]', function( value ) {
 		value.bind( function( to ) {
 		value.bind( function( to ) {
-			const { bg, fg1, fg2, txt, link } = to;
-			const extraCSS = `
-				:root {
-					--global--color-background: ${ bg };
-					--global--color-foreground: ${ txt };
-					--global--color-primary: ${ link };
-					--global--color-secondary: ${ fg1 };
-					--global--color-tertiary: ${ fg2 };
-				}
-
+			const { bg, fg1, fg2 } = to;
+			const extraCSS = `/*
+				* Site title text shadow.
+				*/
 				.site-title a {
 				.site-title a {
 					background-image: linear-gradient(to right, ${ fg1 } 100%, transparent 100%);
 					background-image: linear-gradient(to right, ${ fg1 } 100%, transparent 100%);
 					text-shadow: 1px 0px ${ bg },
 					text-shadow: 1px 0px ${ bg },

+ 1 - 1
seedlet/inc/wpcom-editor-colors.php

@@ -1,7 +1,7 @@
 <?php
 <?php
 
 
 /*
 /*
- * Custom Colors: Seedlet
+ * Custom Editor Colors: Seedlet
  */
  */
 
 
 // Background Color
 // Background Color