You appear to be a bot. Output may be restricted
Description
Generate the CSS for the current custom color scheme.
Usage
twentyseventeen_custom_colors_css();
Parameters
Returns
void
Source
File name: twentyseventeen/inc/color-patterns.php
Lines:
1 to 100 of 571
function twentyseventeen_custom_colors_css() { $hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) ); /** * Filters Twenty Seventeen default saturation level. * * @since Twenty Seventeen 1.0 * * @param int $saturation Color saturation level. */ $saturation = absint( apply_filters( 'twentyseventeen_custom_colors_saturation', 50 ) ); $reduced_saturation = ( .8 * $saturation ) . '%'; $saturation = $saturation . '%'; $css = ' /** * Twenty Seventeen: Color Patterns * * Colors are ordered from dark to light. */ .colors-custom a:hover, .colors-custom a:active, .colors-custom .entry-content a:focus, .colors-custom .entry-content a:hover, .colors-custom .entry-summary a:focus, .colors-custom .entry-summary a:hover, .colors-custom .comment-content a:focus, .colors-custom .comment-content a:hover, .colors-custom .widget a:focus, .colors-custom .widget a:hover, .colors-custom .site-footer .widget-area a:focus, .colors-custom .site-footer .widget-area a:hover, .colors-custom .posts-navigation a:focus, .colors-custom .posts-navigation a:hover, .colors-custom .comment-metadata a:focus, .colors-custom .comment-metadata a:hover, .colors-custom .comment-metadata a.comment-edit-link:focus, .colors-custom .comment-metadata a.comment-edit-link:hover, .colors-custom .comment-reply-link:focus, .colors-custom .comment-reply-link:hover, .colors-custom .widget_authors a:focus strong, .colors-custom .widget_authors a:hover strong, .colors-custom .entry-title a:focus, .colors-custom .entry-title a:hover, .colors-custom .entry-meta a:focus, .colors-custom .entry-meta a:hover, .colors-custom.blog .entry-meta a.post-edit-link:focus, .colors-custom.blog .entry-meta a.post-edit-link:hover, .colors-custom.archive .entry-meta a.post-edit-link:focus, .colors-custom.archive .entry-meta a.post-edit-link:hover, .colors-custom.search .entry-meta a.post-edit-link:focus, .colors-custom.search .entry-meta a.post-edit-link:hover, .colors-custom .page-links a:focus .page-number, .colors-custom .page-links a:hover .page-number, .colors-custom .entry-footer a:focus, .colors-custom .entry-footer a:hover, .colors-custom .entry-footer .cat-links a:focus, .colors-custom .entry-footer .cat-links a:hover, .colors-custom .entry-footer .tags-links a:focus, .colors-custom .entry-footer .tags-links a:hover, .colors-custom .post-navigation a:focus, .colors-custom .post-navigation a:hover, .colors-custom .pagination a:not(.prev):not(.next):focus, .colors-custom .pagination a:not(.prev):not(.next):hover, .colors-custom .comments-pagination a:not(.prev):not(.next):focus, .colors-custom .comments-pagination a:not(.prev):not(.next):hover, .colors-custom .logged-in-as a:focus, .colors-custom .logged-in-as a:hover, .colors-custom a:focus .nav-title, .colors-custom a:hover .nav-title, .colors-custom .edit-link a:focus, .colors-custom .edit-link a:hover, .colors-custom .site-info a:focus, .colors-custom .site-info a:hover, .colors-custom .widget .widget-title a:focus, .colors-custom .widget .widget-title a:hover, .colors-custom .widget ul li a:focus, .colors-custom .widget ul li a:hover { color: hsl( ' . $hue . ', ' . $saturation . ', 0% ); /* base: #000; */ } .colors-custom .entry-content a, .colors-custom .entry-summary a, .colors-custom .comment-content a, .colors-custom .widget a, .colors-custom .site-footer .widget-area a, .colors-custom .posts-navigation a, .colors-custom .widget_authors a strong { -webkit-box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 6% ); /* base: rgba(15, 15, 15, 1); */ box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 6% ); /* base: rgba(15, 15, 15, 1); */ } .colors-custom button, .colors-custom input[type="button"], .colors-custom input[type="submit"], .colors-custom .entry-footer .edit-link a.post-edit-link { background-color: hsl( ' . $hue . ', ' . $saturation . ', 13% ); /* base: #222; */ } .colors-custom input[type="text"]:focus,