Update themes
This commit is contained in:
parent
e00f87f2f5
commit
168d1a5ee7
98 changed files with 6532 additions and 2223 deletions
|
|
@ -132,20 +132,14 @@ function twentynineteen_custom_colors_css() {
|
|||
}
|
||||
|
||||
/*
|
||||
* Set left border color for:
|
||||
* Set border color for:
|
||||
* wp block quote
|
||||
* :focus
|
||||
*/
|
||||
blockquote,
|
||||
.entry .entry-content blockquote,
|
||||
.entry .entry-content .wp-block-quote:not(.is-large),
|
||||
.entry .entry-content .wp-block-quote:not(.is-style-large) {
|
||||
border-left-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
/*
|
||||
* Set border color for:
|
||||
* :focus
|
||||
*/
|
||||
.entry .entry-content .wp-block-quote:not(.is-style-large),
|
||||
input[type="text"]:focus,
|
||||
input[type="email"]:focus,
|
||||
input[type="url"]:focus,
|
||||
|
|
@ -231,7 +225,7 @@ function twentynineteen_custom_colors_css() {
|
|||
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large),
|
||||
.editor-styles-wrapper .editor-block-list__layout .wp-block-freeform blockquote {
|
||||
border-left: 2px solid hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
border-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-pullquote.is-style-solid-color:not(.has-background-color) {
|
||||
|
|
|
|||
|
|
@ -52,8 +52,8 @@ function twentynineteen_customize_register( $wp_customize ) {
|
|||
'type' => 'radio',
|
||||
'label' => __( 'Primary Color', 'twentynineteen' ),
|
||||
'choices' => array(
|
||||
'default' => _x( 'Default', 'primary color', 'twentynineteen' ),
|
||||
'custom' => _x( 'Custom', 'primary color', 'twentynineteen' ),
|
||||
'default' => _x( 'Default', 'primary color', 'twentynineteen' ),
|
||||
'custom' => _x( 'Custom', 'primary color', 'twentynineteen' ),
|
||||
),
|
||||
'section' => 'colors',
|
||||
'priority' => 5,
|
||||
|
|
|
|||
|
|
@ -361,14 +361,14 @@ function twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true ) {
|
|||
$mid1;
|
||||
$mid2;
|
||||
|
||||
$m = $l + $l - $v;
|
||||
$sv = ( $v - $m ) / $v;
|
||||
$h *= 6.0;
|
||||
$m = $l + $l - $v;
|
||||
$sv = ( $v - $m ) / $v;
|
||||
$h *= 6.0;
|
||||
$sextant = floor( $h );
|
||||
$fract = $h - $sextant;
|
||||
$vsf = $v * $sv * $fract;
|
||||
$mid1 = $m + $vsf;
|
||||
$mid2 = $v - $vsf;
|
||||
$fract = $h - $sextant;
|
||||
$vsf = $v * $sv * $fract;
|
||||
$mid1 = $m + $vsf;
|
||||
$mid2 = $v - $vsf;
|
||||
|
||||
switch ( $sextant ) {
|
||||
case 0:
|
||||
|
|
|
|||
|
|
@ -238,3 +238,21 @@ if ( ! function_exists( 'twentynineteen_the_posts_navigation' ) ) :
|
|||
);
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'wp_body_open' ) ) :
|
||||
/**
|
||||
* Fire the wp_body_open action.
|
||||
*
|
||||
* Added for backwards compatibility to support pre 5.2.0 WordPress versions.
|
||||
*
|
||||
* @since Twenty Nineteen 1.4
|
||||
*/
|
||||
function wp_body_open() {
|
||||
/**
|
||||
* Triggered after the opening <body> tag.
|
||||
*
|
||||
* @since Twenty Nineteen 1.4
|
||||
*/
|
||||
do_action( 'wp_body_open' );
|
||||
}
|
||||
endif;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue