diff --git a/src/assets/js/color-scheme-control.js b/src/assets/js/color-scheme-control.js index 22c9798..31a7720 100755 --- a/src/assets/js/color-scheme-control.js +++ b/src/assets/js/color-scheme-control.js @@ -62,7 +62,7 @@ // Add additional color. // jscs:disable - colors.border_color = Color( colors.main_text_color ).toCSS( 'rgba', 0.2 ); + colors.backtransparent = Color( colors.link_color ).toCSS( 'rgba', 0.5 ); // jscs:enable css = cssTemplate( colors ); diff --git a/src/functions/customizer.php b/src/functions/customizer.php index c151116..400aed7 100644 --- a/src/functions/customizer.php +++ b/src/functions/customizer.php @@ -311,7 +311,7 @@ function tainacan_color_scheme_css() { 'background_color' => $color_scheme[0], 'page_background_color' => $color_scheme[1], 'link_color' => $color_scheme[2], - + 'backtransparent' => vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.5)', $color_textcolor_rgb ) ); $color_scheme_css = tainacan_get_color_scheme_css( $colors ); @@ -356,11 +356,9 @@ function tainacan_get_color_scheme_css( $colors ) { 'background_color' => '', 'page_background_color' => '', 'link_color' => '', - 'main_text_color' => '', - 'secondary_text_color' => '', - 'border_color' => '', + 'backtransparent' => '', ) ); - + return << '{{ data.background_color }}', 'page_background_color' => '{{ data.page_background_color }}', - 'link_color' => '{{ data.link_color }}',/* + 'link_color' => '{{ data.link_color }}', + 'backtransparent' => '{{ data.backtransparent }}',/* 'main_text_color' => '{{ data.main_text_color }}', 'secondary_text_color' => '{{ data.secondary_text_color }}', 'border_color' => '{{ data.border_color }}', */