WC_Twenty_Seventeen::custom_colors_css( string $css, string $hue, string $saturation )
Custom colors.
Description Description
Parameters Parameters
- $css
-
(Required) Styles.
- $hue
-
(Required) Color.
- $saturation
-
(Required) Saturation.
Return Return
(string)
Source Source
File: includes/theme-support/class-wc-twenty-seventeen.php
public static function custom_colors_css( $css, $hue, $saturation ) { $css .= ' .colors-custom .select2-container--default .select2-selection--single { border-color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); } .colors-custom .select2-container--default .select2-selection__rendered { color: hsl( ' . $hue . ', ' . $saturation . ', 40% ); } .colors-custom .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: hsl( ' . $hue . ', ' . $saturation . ', 40% ) transparent transparent transparent; } .colors-custom .select2-container--focus .select2-selection { border-color: #000; } .colors-custom .select2-container--focus .select2-selection--single .select2-selection__arrow b { border-color: #000 transparent transparent transparent; } .colors-custom .select2-container--focus .select2-selection .select2-selection__rendered { color: #000; } '; return $css; }