WC_Twenty_Seventeen::custom_colors_css
Custom colors.
Method of the class: WC_Twenty_Seventeen{}
No Hooks.
Returns
String.
Usage
$result = WC_Twenty_Seventeen::custom_colors_css( $css, $hue, $saturation );
- $css(string) (required)
- Styles.
- $hue(string) (required)
- Color.
- $saturation(string) (required)
- Saturation.
WC_Twenty_Seventeen::custom_colors_css() WC Twenty Seventeen::custom colors css code WC 10.4.3
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;
}