WordPress/wp-content/themes/twentyseventeen/inc
David A. Kennedy d21272ae29 Twenty Seventeen: Allow child themes to easily extend custom color patterns
By adding a filter, child themes can add additional selectors onto the custom color scheme CSS. Like so:

{{{
// Add child theme selectors for color schemes.
function dynamic_seventeen_custom_colors_css( $css, $hue, $saturation ) {
	$css .= '
	.colors-custom .content-menu > article:not(.has-post-thumbnail),
	.colors-custom .content-menu > section:not(.has-post-thumbnail) {
		border-top-color: hsl( ' . $hue . ', ' . $saturation . ', 87% ); /* base: #ddd; */
	}';
	return $css;
}
add_filter( 'twentyseventeen_custom_colors_css', 'dynamic_seventeen_custom_colors_css', 10, 3 );
}}}

Props celloexpressions.

Fixes #38949.

Built from https://develop.svn.wordpress.org/trunk@39386


git-svn-id: http://core.svn.wordpress.org/trunk@39326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-30 22:51:42 +00:00
..
back-compat.php Importing Twenty Seventeen, our new default theme for 2017, set for 4.7. 2016-10-20 04:12:31 +00:00
color-patterns.php Twenty Seventeen: Allow child themes to easily extend custom color patterns 2016-11-30 22:51:42 +00:00
custom-header.php Twenty Seventeen: Make all Codex links in DocBlocks use HTTPS 2016-11-18 20:49:31 +00:00
customizer.php Customize: Use selective refresh for custom header changes when possible. 2016-11-14 18:41:32 +00:00
icon-functions.php Twenty Seventeen: Keyboard navigation on Safari 10 fix 2016-11-12 23:39:34 +00:00
template-functions.php Twenty Seventeen: Update page layout setting for all use cases 2016-11-01 20:40:31 +00:00
template-tags.php Twenty Seventeen: Unifies the labels for front page sections 2016-11-02 19:09:32 +00:00