~canonical-sysadmins/wordpress/4.9

« back to all changes in this revision

Viewing changes to wp-content/themes/twentyseventeen/inc/color-patterns.php

  • Committer: Barry Price
  • Date: 2017-06-09 02:09:58 UTC
  • mfrom: (1.1.26 upstream)
  • Revision ID: barry.price@canonical.com-20170609020958-838whhwt2196f2vk
Merge WP4.8 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
         *
19
19
         * @since Twenty Seventeen 1.0
20
20
         *
21
 
         * @param $saturation integer
 
21
         * @param int $saturation Color saturation level.
22
22
         */
23
23
        $saturation = absint( apply_filters( 'twentyseventeen_custom_colors_saturation', 50 ) );
24
24
        $reduced_saturation = ( .8 * $saturation ) . '%';
95
95
.colors-custom .site-footer .widget-area a,
96
96
.colors-custom .posts-navigation a,
97
97
.colors-custom .widget_authors a strong {
98
 
        -webkit-box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation  . ', 6% ); /* base: rgba(15, 15, 15, 1); */
 
98
        -webkit-box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 6% ); /* base: rgba(15, 15, 15, 1); */
99
99
        box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 6% ); /* base: rgba(15, 15, 15, 1); */
100
100
}
101
101
 
201
201
.colors-custom .widget ul li a:focus,
202
202
.colors-custom .widget ul li a:hover {
203
203
        -webkit-box-shadow: inset 0 0 0 hsl( ' . $hue . ', ' . $saturation . ', 13% ), 0 3px 0 hsl( ' . $hue . ', ' . $saturation . ', 13% );
204
 
        box-shadow: inset 0 0 0 hsl( ' . $hue . ', ' . $saturation. ' , 13% ), 0 3px 0 hsl( ' . $hue . ', ' . $saturation . ', 13% );
 
204
        box-shadow: inset 0 0 0 hsl( ' . $hue . ', ' . $saturation . ' , 13% ), 0 3px 0 hsl( ' . $hue . ', ' . $saturation . ', 13% );
205
205
}
206
206
 
207
207
body.colors-custom,
560
560
        }
561
561
}';
562
562
 
563
 
 
564
563
        /**
565
564
         * Filters Twenty Seventeen custom colors CSS.
566
565
         *
567
566
         * @since Twenty Seventeen 1.0
568
567
         *
569
 
         * @param $css        string Base theme colors CSS.
570
 
         * @param $hue        int    The user's selected color hue.
571
 
         * @param $saturation string Filtered theme color saturation level.
 
568
         * @param string $css        Base theme colors CSS.
 
569
         * @param int    $hue        The user's selected color hue.
 
570
         * @param string $saturation Filtered theme color saturation level.
572
571
         */
573
572
        return apply_filters( 'twentyseventeen_custom_colors_css', $css, $hue, $saturation );
574
573
}