Block Editor: Update the WordPress Packages to the latest version.

This includes the packages that match the Gutenberg 9.2 Release.
It is going to be the last block-editor features update for WordPress 5.6.
It also updates the block-supports code base to the latest APIs.

Props isabel_brison, noisysocks, desrosj.
Fixes #51570.

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


git-svn-id: http://core.svn.wordpress.org/trunk@48988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
youknowriad 2020-10-20 13:36:16 +00:00
parent d40c365a30
commit d6cff7965a
184 changed files with 12625 additions and 12062 deletions

File diff suppressed because one or more lines are too long

View File

@ -8,6 +8,8 @@
/** /**
* Registers the align block attribute for block types that support it. * Registers the align block attribute for block types that support it.
* *
* @access private
*
* @param WP_Block_Type $block_type Block Type. * @param WP_Block_Type $block_type Block Type.
*/ */
function wp_register_alignment_support( $block_type ) { function wp_register_alignment_support( $block_type ) {
@ -33,13 +35,15 @@ function wp_register_alignment_support( $block_type ) {
* Add CSS classes for block alignment to the incoming attributes array. * Add CSS classes for block alignment to the incoming attributes array.
* This will be applied to the block markup in the front-end. * This will be applied to the block markup in the front-end.
* *
* @param array $attributes Comprehensive list of attributes to be applied. * @access private
* @param array $block_attributes Block attributes. *
* @param WP_Block_Type $block_type Block Type. * @param WP_Block_Type $block_type Block Type.
* @param array $block_attributes Block attributes.
* *
* @return array Block alignment CSS classes and inline styles. * @return array Block alignment CSS classes and inline styles.
*/ */
function wp_apply_alignment_support( $attributes, $block_attributes, $block_type ) { function wp_apply_alignment_support( $block_type, $block_attributes ) {
$attributes = array();
$has_align_support = false; $has_align_support = false;
if ( property_exists( $block_type, 'supports' ) ) { if ( property_exists( $block_type, 'supports' ) ) {
$has_align_support = wp_array_get( $block_type->supports, array( 'align' ), false ); $has_align_support = wp_array_get( $block_type->supports, array( 'align' ), false );
@ -48,9 +52,18 @@ function wp_apply_alignment_support( $attributes, $block_attributes, $block_type
$has_block_alignment = array_key_exists( 'align', $block_attributes ); $has_block_alignment = array_key_exists( 'align', $block_attributes );
if ( $has_block_alignment ) { if ( $has_block_alignment ) {
$attributes['css_classes'][] = sprintf( 'align%s', $block_attributes['align'] ); $attributes['class'] = sprintf( 'align%s', $block_attributes['align'] );
} }
} }
return $attributes; return $attributes;
} }
// Register the block support.
WP_Block_Supports::get_instance()->register(
'align',
array(
'register_attribute' => 'wp_register_alignment_support',
'apply' => 'wp_apply_alignment_support',
)
);

View File

@ -8,6 +8,8 @@
/** /**
* Registers the style and colors block attributes for block types that support it. * Registers the style and colors block attributes for block types that support it.
* *
* @access private
*
* @param WP_Block_Type $block_type Block Type. * @param WP_Block_Type $block_type Block Type.
*/ */
function wp_register_colors_support( $block_type ) { function wp_register_colors_support( $block_type ) {
@ -53,18 +55,21 @@ function wp_register_colors_support( $block_type ) {
* Add CSS classes and inline styles for colors to the incoming attributes array. * Add CSS classes and inline styles for colors to the incoming attributes array.
* This will be applied to the block markup in the front-end. * This will be applied to the block markup in the front-end.
* *
* @param array $attributes Comprehensive list of attributes to be applied. * @access private
* @param array $block_attributes Block attributes. *
* @param WP_Block_Type $block_type Block type. * @param WP_Block_Type $block_type Block type.
* @param array $block_attributes Block attributes.
* *
* @return array Colors CSS classes and inline styles. * @return array Colors CSS classes and inline styles.
*/ */
function wp_apply_colors_support( $attributes, $block_attributes, $block_type ) { function wp_apply_colors_support( $block_type, $block_attributes ) {
$color_support = wp_array_get( $block_type->supports, array( '__experimentalColor' ), false ); $color_support = wp_array_get( $block_type->supports, array( '__experimentalColor' ), false );
$has_text_colors_support = true === $color_support || ( is_array( $color_support ) && wp_array_get( $color_support, array( 'text' ), true ) ); $has_text_colors_support = true === $color_support || ( is_array( $color_support ) && wp_array_get( $color_support, array( 'text' ), true ) );
$has_background_colors_support = true === $color_support || ( is_array( $color_support ) && wp_array_get( $color_support, array( 'background' ), true ) ); $has_background_colors_support = true === $color_support || ( is_array( $color_support ) && wp_array_get( $color_support, array( 'background' ), true ) );
$has_link_colors_support = wp_array_get( $color_support, array( 'linkColor' ), false ); $has_link_colors_support = wp_array_get( $color_support, array( 'linkColor' ), false );
$has_gradients_support = wp_array_get( $color_support, array( 'gradients' ), false ); $has_gradients_support = wp_array_get( $color_support, array( 'gradients' ), false );
$classes = array();
$styles = array();
// Text Colors. // Text Colors.
// Check support for text colors. // Check support for text colors.
@ -74,13 +79,13 @@ function wp_apply_colors_support( $attributes, $block_attributes, $block_type )
// Apply required generic class. // Apply required generic class.
if ( $has_custom_text_color || $has_named_text_color ) { if ( $has_custom_text_color || $has_named_text_color ) {
$attributes['css_classes'][] = 'has-text-color'; $classes[] = 'has-text-color';
} }
// Apply color class or inline style. // Apply color class or inline style.
if ( $has_named_text_color ) { if ( $has_named_text_color ) {
$attributes['css_classes'][] = sprintf( 'has-%s-color', $block_attributes['textColor'] ); $classes[] = sprintf( 'has-%s-color', $block_attributes['textColor'] );
} elseif ( $has_custom_text_color ) { } elseif ( $has_custom_text_color ) {
$attributes['inline_styles'][] = sprintf( 'color: %s;', $block_attributes['style']['color']['text'] ); $styles[] = sprintf( 'color: %s;', $block_attributes['style']['color']['text'] );
} }
} }
@ -89,15 +94,15 @@ function wp_apply_colors_support( $attributes, $block_attributes, $block_type )
$has_link_color = isset( $block_attributes['style']['color']['link'] ); $has_link_color = isset( $block_attributes['style']['color']['link'] );
// Apply required class and style. // Apply required class and style.
if ( $has_link_color ) { if ( $has_link_color ) {
$attributes['css_classes'][] = 'has-link-color'; $classes[] = 'has-link-color';
// If link is a named color. // If link is a named color.
if ( strpos( $block_attributes['style']['color']['link'], 'var:preset|color|' ) !== false ) { if ( strpos( $block_attributes['style']['color']['link'], 'var:preset|color|' ) !== false ) {
// Get the name from the string and add proper styles. // Get the name from the string and add proper styles.
$index_to_splice = strrpos( $block_attributes['style']['color']['link'], '|' ) + 1; $index_to_splice = strrpos( $block_attributes['style']['color']['link'], '|' ) + 1;
$link_color_name = substr( $block_attributes['style']['color']['link'], $index_to_splice ); $link_color_name = substr( $block_attributes['style']['color']['link'], $index_to_splice );
$attributes['inline_styles'][] = sprintf( '--wp--style--color--link:var(--wp--preset--color--%s);', $link_color_name ); $styles[] = sprintf( '--wp--style--color--link: var(--wp--preset--color--%s);', $link_color_name );
} else { } else {
$attributes['inline_styles'][] = sprintf( '--wp--style--color--link: %s;', $block_attributes['style']['color']['link'] ); $styles[] = sprintf( '--wp--style--color--link: %s;', $block_attributes['style']['color']['link'] );
} }
} }
} }
@ -109,13 +114,13 @@ function wp_apply_colors_support( $attributes, $block_attributes, $block_type )
// Apply required background class. // Apply required background class.
if ( $has_custom_background_color || $has_named_background_color ) { if ( $has_custom_background_color || $has_named_background_color ) {
$attributes['css_classes'][] = 'has-background'; $classes[] = 'has-background';
} }
// Apply background color classes or styles. // Apply background color classes or styles.
if ( $has_named_background_color ) { if ( $has_named_background_color ) {
$attributes['css_classes'][] = sprintf( 'has-%s-background-color', $block_attributes['backgroundColor'] ); $classes[] = sprintf( 'has-%s-background-color', $block_attributes['backgroundColor'] );
} elseif ( $has_custom_background_color ) { } elseif ( $has_custom_background_color ) {
$attributes['inline_styles'][] = sprintf( 'background-color: %s;', $block_attributes['style']['color']['background'] ); $styles[] = sprintf( 'background-color: %s;', $block_attributes['style']['color']['background'] );
} }
} }
@ -125,15 +130,32 @@ function wp_apply_colors_support( $attributes, $block_attributes, $block_type )
$has_custom_gradient = isset( $block_attributes['style']['color']['gradient'] ); $has_custom_gradient = isset( $block_attributes['style']['color']['gradient'] );
if ( $has_named_gradient || $has_custom_gradient ) { if ( $has_named_gradient || $has_custom_gradient ) {
$attributes['css_classes'][] = 'has-background'; $classes[] = 'has-background';
} }
// Apply required background class. // Apply required background class.
if ( $has_named_gradient ) { if ( $has_named_gradient ) {
$attributes['css_classes'][] = sprintf( 'has-%s-gradient-background', $block_attributes['gradient'] ); $classes[] = sprintf( 'has-%s-gradient-background', $block_attributes['gradient'] );
} elseif ( $has_custom_gradient ) { } elseif ( $has_custom_gradient ) {
$attributes['inline_styles'][] = sprintf( 'background: %s;', $block_attributes['style']['color']['gradient'] ); $styles[] = sprintf( 'background: %s;', $block_attributes['style']['color']['gradient'] );
} }
} }
$attributes = array();
if ( ! empty( $classes ) ) {
$attributes['class'] = implode( ' ', $classes );
}
if ( ! empty( $styles ) ) {
$attributes['style'] = implode( ' ', $styles );
}
return $attributes; return $attributes;
} }
// Register the block support.
WP_Block_Supports::get_instance()->register(
'colors',
array(
'register_attribute' => 'wp_register_colors_support',
'apply' => 'wp_apply_colors_support',
)
);

View File

@ -8,6 +8,8 @@
/** /**
* Registers the custom classname block attribute for block types that support it. * Registers the custom classname block attribute for block types that support it.
* *
* @access private
*
* @param WP_Block_Type $block_type Block Type. * @param WP_Block_Type $block_type Block Type.
*/ */
function wp_register_custom_classname_support( $block_type ) { function wp_register_custom_classname_support( $block_type ) {
@ -31,14 +33,16 @@ function wp_register_custom_classname_support( $block_type ) {
/** /**
* Add the custom classnames to the output. * Add the custom classnames to the output.
* *
* @param array $attributes Comprehensive list of attributes to be applied. * @access private
* @param array $block_attributes Block attributes. *
* @param WP_Block_Type $block_type Block Type. * @param WP_Block_Type $block_type Block Type.
* @param array $block_attributes Block attributes.
* *
* @return array Block CSS classes and inline styles. * @return array Block CSS classes and inline styles.
*/ */
function wp_apply_custom_classname_support( $attributes, $block_attributes, $block_type ) { function wp_apply_custom_classname_support( $block_type, $block_attributes ) {
$has_custom_classname_support = true; $has_custom_classname_support = true;
$attributes = array();
if ( property_exists( $block_type, 'supports' ) ) { if ( property_exists( $block_type, 'supports' ) ) {
$has_custom_classname_support = wp_array_get( $block_type->supports, array( 'customClassName' ), true ); $has_custom_classname_support = wp_array_get( $block_type->supports, array( 'customClassName' ), true );
} }
@ -46,9 +50,18 @@ function wp_apply_custom_classname_support( $attributes, $block_attributes, $blo
$has_custom_classnames = array_key_exists( 'className', $block_attributes ); $has_custom_classnames = array_key_exists( 'className', $block_attributes );
if ( $has_custom_classnames ) { if ( $has_custom_classnames ) {
$attributes['css_classes'][] = $block_attributes['className']; $attributes['class'] = $block_attributes['className'];
} }
} }
return $attributes; return $attributes;
} }
// Register the block support.
WP_Block_Supports::get_instance()->register(
'custom-classname',
array(
'register_attribute' => 'wp_register_custom_classname_support',
'apply' => 'wp_apply_custom_classname_support',
)
);

View File

@ -8,6 +8,8 @@
/** /**
* Get the generated classname from a given block name. * Get the generated classname from a given block name.
* *
* @access private
*
* @param string $block_name Block Name. * @param string $block_name Block Name.
* @return string Generated classname. * @return string Generated classname.
*/ */
@ -34,14 +36,16 @@ function wp_get_block_default_classname( $block_name ) {
/** /**
* Add the generated classnames to the output. * Add the generated classnames to the output.
* *
* @param array $attributes Comprehensive list of attributes to be applied. * @access private
* @param array $block_attributes Block attributes. *
* @param WP_Block_Type $block_type Block Type. * @param WP_Block_Type $block_type Block Type.
* @param array $block_attributes Block attributes.
* *
* @return array Block CSS classes and inline styles. * @return array Block CSS classes and inline styles.
*/ */
function wp_apply_generated_classname_support( $attributes, $block_attributes, $block_type ) { function wp_apply_generated_classname_support( $block_type, $block_attributes ) {
$has_generated_classname_support = true; $has_generated_classname_support = true;
$attributes = array();
if ( property_exists( $block_type, 'supports' ) ) { if ( property_exists( $block_type, 'supports' ) ) {
$has_generated_classname_support = wp_array_get( $block_type->supports, array( 'className' ), true ); $has_generated_classname_support = wp_array_get( $block_type->supports, array( 'className' ), true );
} }
@ -49,9 +53,17 @@ function wp_apply_generated_classname_support( $attributes, $block_attributes, $
$block_classname = wp_get_block_default_classname( $block_type->name ); $block_classname = wp_get_block_default_classname( $block_type->name );
if ( $block_classname ) { if ( $block_classname ) {
$attributes['css_classes'][] = $block_classname; $attributes['class'] = $block_classname;
} }
} }
return $attributes; return $attributes;
} }
// Register the block support.
WP_Block_Supports::get_instance()->register(
'generated-classname',
array(
'apply' => 'wp_apply_generated_classname_support',
)
);

View File

@ -1,137 +0,0 @@
<?php
/**
* Block support flags.
*
* @package WordPress
*/
// Require all the block supports mechanisms.
require __DIR__ . '/align.php';
require __DIR__ . '/colors.php';
require __DIR__ . '/custom-classname.php';
require __DIR__ . '/generated-classname.php';
require __DIR__ . '/typography.php';
/**
* Filter the registered blocks to apply the block supports attributes registration.
*/
function wp_register_block_supports() {
$block_registry = WP_Block_Type_Registry::get_instance();
$registered_block_types = $block_registry->get_all_registered();
// Ideally we need a hook to extend the block registration
// instead of mutating the block type.
foreach ( $registered_block_types as $block_type ) {
wp_register_alignment_support( $block_type );
wp_register_colors_support( $block_type );
wp_register_typography_support( $block_type );
wp_register_custom_classname_support( $block_type );
}
}
add_action( 'init', 'wp_register_block_supports', 21 );
/**
* Filters the frontend output of blocks and apply the block support flags transformations.
*
* @param string $block_content rendered block content.
* @param array $block block object.
* @return string filtered block content.
*/
function wp_apply_block_supports( $block_content, $block ) {
if ( ! isset( $block['attrs'] ) ) {
return $block_content;
}
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
// If no render_callback, assume styles have been previously handled.
if ( ! $block_type || ! $block_type->render_callback ) {
return $block_content;
}
$attributes = array();
$attributes = wp_apply_generated_classname_support( $attributes, $block['attrs'], $block_type );
$attributes = wp_apply_colors_support( $attributes, $block['attrs'], $block_type );
$attributes = wp_apply_typography_support( $attributes, $block['attrs'], $block_type );
$attributes = wp_apply_alignment_support( $attributes, $block['attrs'], $block_type );
$attributes = wp_apply_custom_classname_support( $attributes, $block['attrs'], $block_type );
if ( ! count( $attributes ) ) {
return $block_content;
}
$dom = new DOMDocument( '1.0', 'utf-8' );
// Suppress DOMDocument::loadHTML warnings from polluting the front-end.
$previous = libxml_use_internal_errors( true );
// We need to wrap the block in order to handle UTF-8 properly.
$wrapped_block_html =
'<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>'
. $block_content
. '</body></html>';
$success = $dom->loadHTML( $wrapped_block_html, LIBXML_HTML_NODEFDTD | LIBXML_COMPACT );
// Clear errors and reset the use_errors setting.
libxml_clear_errors();
libxml_use_internal_errors( $previous );
if ( ! $success ) {
return $block_content;
}
// Structure is like `<html><head/><body/></html>`, so body is the `lastChild` of our document.
$body_element = $dom->documentElement->lastChild; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
$xpath = new DOMXPath( $dom );
$block_root = $xpath->query( './*', $body_element )[0];
// phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
if ( empty( $block_root ) ) {
return $block_content;
}
// Merge and dedupe new and existing classes and styles.
$current_classes = explode( ' ', trim( $block_root->getAttribute( 'class' ) ) );
$classes_to_add = array_key_exists( 'css_classes', $attributes ) ? $attributes['css_classes'] : array();
$new_classes = array_unique( array_filter( array_merge( $current_classes, $classes_to_add ) ) );
$current_styles = preg_split( '/\s*;\s*/', trim( $block_root->getAttribute( 'style' ) ) );
$styles_to_add = array_key_exists( 'inline_styles', $attributes ) ? $attributes['inline_styles'] : array();
$new_styles = array_unique( array_map( 'wp_normalize_css_rule', array_filter( array_merge( $current_styles, $styles_to_add ) ) ) );
// Apply new styles and classes.
if ( ! empty( $new_classes ) ) {
// `DOMElement::setAttribute` handles attribute value escaping.
$block_root->setAttribute( 'class', implode( ' ', $new_classes ) );
}
if ( ! empty( $new_styles ) ) {
// `DOMElement::setAttribute` handles attribute value escaping.
$block_root->setAttribute( 'style', implode( '; ', $new_styles ) . ';' );
}
// Avoid using `$dom->saveHtml( $node )` because the node results may not produce consistent
// whitespace for PHP < 7.3. Saving the root HTML `$dom->saveHtml()` prevents this behavior.
$full_html = $dom->saveHtml();
// Find the <body> open/close tags. The open tag needs to be adjusted so we get inside the tag
// and not the tag itself.
$start = strpos( $full_html, '<body>', 0 ) + strlen( '<body>' );
$end = strpos( $full_html, '</body>', $start );
return trim( substr( $full_html, $start, $end - $start ) );
}
add_filter( 'render_block', 'wp_apply_block_supports', 10, 2 );
/**
* Normalizes spacing in a string representing a CSS rule
*
* @example
* 'color :red;' becomes 'color:red'
*
* @param string $css_rule_string CSS rule.
* @return string Normalized CSS rule.
*/
function wp_normalize_css_rule( $css_rule_string ) {
return trim( implode( ': ', preg_split( '/\s*:\s*/', $css_rule_string, 2 ) ), ';' );
}

View File

@ -8,6 +8,8 @@
/** /**
* Registers the style and typography block attributes for block types that support it. * Registers the style and typography block attributes for block types that support it.
* *
* @access private
*
* @param WP_Block_Type $block_type Block Type. * @param WP_Block_Type $block_type Block Type.
*/ */
function wp_register_typography_support( $block_type ) { function wp_register_typography_support( $block_type ) {
@ -16,11 +18,6 @@ function wp_register_typography_support( $block_type ) {
$has_font_size_support = wp_array_get( $block_type->supports, array( '__experimentalFontSize' ), false ); $has_font_size_support = wp_array_get( $block_type->supports, array( '__experimentalFontSize' ), false );
} }
$has_font_style_support = false;
if ( property_exists( $block_type, 'supports' ) ) {
$has_font_style_support = wp_array_get( $block_type->supports, array( '__experimentalFontStyle' ), false );
}
$has_line_height_support = false; $has_line_height_support = false;
if ( property_exists( $block_type, 'supports' ) ) { if ( property_exists( $block_type, 'supports' ) ) {
$has_line_height_support = wp_array_get( $block_type->supports, array( '__experimentalLineHeight' ), false ); $has_line_height_support = wp_array_get( $block_type->supports, array( '__experimentalLineHeight' ), false );
@ -30,7 +27,7 @@ function wp_register_typography_support( $block_type ) {
$block_type->attributes = array(); $block_type->attributes = array();
} }
if ( ( $has_font_size_support || $has_font_style_support || $has_line_height_support ) && ! array_key_exists( 'style', $block_type->attributes ) ) { if ( ( $has_font_size_support || $has_line_height_support ) && ! array_key_exists( 'style', $block_type->attributes ) ) {
$block_type->attributes['style'] = array( $block_type->attributes['style'] = array(
'type' => 'object', 'type' => 'object',
); );
@ -47,26 +44,24 @@ function wp_register_typography_support( $block_type ) {
* Add CSS classes and inline styles for font sizes to the incoming attributes array. * Add CSS classes and inline styles for font sizes to the incoming attributes array.
* This will be applied to the block markup in the front-end. * This will be applied to the block markup in the front-end.
* *
* @param array $attributes Comprehensive list of attributes to be applied. * @access private
* @param array $block_attributes Block attributes. *
* @param WP_Block_Type $block_type Block type. * @param WP_Block_Type $block_type Block type.
* @param array $block_attributes Block attributes.
* *
* @return array Font size CSS classes and inline styles. * @return array Font size CSS classes and inline styles.
*/ */
function wp_apply_typography_support( $attributes, $block_attributes, $block_type ) { function wp_apply_typography_support( $block_type, $block_attributes ) {
$has_font_size_support = false; $has_font_size_support = false;
$classes = array();
$styles = array();
if ( property_exists( $block_type, 'supports' ) ) { if ( property_exists( $block_type, 'supports' ) ) {
$has_font_size_support = wp_array_get( $block_type->supports, array( '__experimentalFontSize' ), false ); $has_font_size_support = wp_array_get( $block_type->supports, array( 'fontSize' ), false );
}
$has_font_style_support = false;
if ( property_exists( $block_type, 'supports' ) ) {
$has_font_style_support = wp_array_get( $block_type->supports, array( '__experimentalFontStyle' ), false );
} }
$has_line_height_support = false; $has_line_height_support = false;
if ( property_exists( $block_type, 'supports' ) ) { if ( property_exists( $block_type, 'supports' ) ) {
$has_line_height_support = wp_array_get( $block_type->supports, array( '__experimentalLineHeight' ), false ); $has_line_height_support = wp_array_get( $block_type->supports, array( 'lineHeight' ), false );
} }
// Font Size. // Font Size.
@ -76,35 +71,9 @@ function wp_apply_typography_support( $attributes, $block_attributes, $block_typ
// Apply required class or style. // Apply required class or style.
if ( $has_named_font_size ) { if ( $has_named_font_size ) {
$attributes['css_classes'][] = sprintf( 'has-%s-font-size', $block_attributes['fontSize'] ); $classes[] = sprintf( 'has-%s-font-size', $block_attributes['fontSize'] );
} elseif ( $has_custom_font_size ) { } elseif ( $has_custom_font_size ) {
$attributes['inline_styles'][] = sprintf( 'font-size: %spx;', $block_attributes['style']['typography']['fontSize'] ); $styles[] = sprintf( 'font-size: %spx;', $block_attributes['style']['typography']['fontSize'] );
}
}
// Font Styles e.g. bold, italic, underline & strikethrough.
if ( $has_font_style_support ) {
$has_font_styles = isset( $block_attributes['style']['typography']['fontStyles'] );
// Apply required CSS classes.
if ( $has_font_styles ) {
$attributes['css_classes'][] = 'has-font-style';
// CSS class names chosen to be more explicit than generic `has-<something>-font-style`.
$font_style_classes = array(
'bold' => 'has-bold-font-weight',
'italic' => 'has-italic-font-style',
'underline' => 'has-underline-text-decoration',
'strikethrough' => 'has-strikethrough-text-decoration',
);
$style_selections = $block_attributes['style']['typography']['fontStyles'];
foreach ( $style_selections as $style => $turned_on ) {
if ( $turned_on ) {
$attributes['css_classes'][] = $font_style_classes[ $style ];
}
}
} }
} }
@ -113,9 +82,25 @@ function wp_apply_typography_support( $attributes, $block_attributes, $block_typ
$has_line_height = isset( $block_attributes['style']['typography']['lineHeight'] ); $has_line_height = isset( $block_attributes['style']['typography']['lineHeight'] );
// Add the style (no classes for line-height). // Add the style (no classes for line-height).
if ( $has_line_height ) { if ( $has_line_height ) {
$attributes['inline_styles'][] = sprintf( 'line-height: %s;', $block_attributes['style']['typography']['lineHeight'] ); $styles[] = sprintf( 'line-height: %s;', $block_attributes['style']['typography']['lineHeight'] );
} }
} }
$attributes = array();
if ( ! empty( $classes ) ) {
$attributes['class'] = implode( ' ', $classes );
}
if ( ! empty( $styles ) ) {
$attributes['style'] = implode( ' ', $styles );
}
return $attributes; return $attributes;
} }
WP_Block_Supports::get_instance()->register(
'typography',
array(
'register_attribute' => 'wp_register_typography_support',
'apply' => 'wp_apply_typography_support',
)
);

View File

@ -647,19 +647,33 @@ function _excerpt_render_inner_columns_blocks( $columns, $allowed_blocks ) {
return $output; return $output;
} }
/**
* Block currently being parsed.
*
* @type array
*/
global $current_parsed_block;
$current_parsed_block = array(
'blockName' => null,
'attributes' => null,
);
/** /**
* Renders a single block into a HTML string. * Renders a single block into a HTML string.
* *
* @since 5.0.0 * @since 5.0.0
* *
* @global WP_Post $post The post to edit. * @global array $current_parsed_block Block currently being parsed.
* @global WP_Query $wp_query WordPress Query object. * @global WP_Post $post The post to edit.
* @global WP_Query $wp_query WordPress Query object.
* @global WP_Query $wp_query WordPress Query object.
* *
* @param array $parsed_block A single parsed block object. * @param array $parsed_block A single parsed block object.
* @return string String of rendered HTML. * @return string String of rendered HTML.
*/ */
function render_block( $parsed_block ) { function render_block( $parsed_block ) {
global $post, $wp_query; global $post, $wp_query, $current_parsed_block;
/** /**
* Allows render_block() to be short-circuited, by returning a non-null value. * Allows render_block() to be short-circuited, by returning a non-null value.
@ -674,6 +688,8 @@ function render_block( $parsed_block ) {
return $pre_render; return $pre_render;
} }
$current_parsed_block = $parsed_block;
$source_block = $parsed_block; $source_block = $parsed_block;
/** /**

View File

@ -97,9 +97,11 @@ function render_block_core_archives( $attributes ) {
); );
} }
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) );
return sprintf( return sprintf(
'<ul class="%1$s">%2$s</ul>', '<ul %1$s>%2$s</ul>',
$classnames, $wrapper_attributes,
$archives $archives
); );
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/archives", "name": "core/archives",
"category": "widgets", "category": "widgets",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/audio", "name": "core/audio",
"category": "media", "category": "media",
"attributes": { "attributes": {
@ -37,7 +38,6 @@
}, },
"supports": { "supports": {
"anchor": true, "anchor": true,
"align": true, "align": true
"lightBlockWrapper": true
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/block", "name": "core/block",
"category": "reusable", "category": "reusable",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/button", "name": "core/button",
"category": "design", "category": "design",
"parent": [ "parent": [
@ -58,6 +59,6 @@
"align": true, "align": true,
"alignWide": false, "alignWide": false,
"reusable": false, "reusable": false,
"lightBlockWrapper": true "__experimentalSelector": ".wp-block-button > a"
} }
} }

View File

@ -1,10 +1,10 @@
{ {
"apiVersion": 2,
"name": "core/buttons", "name": "core/buttons",
"category": "design", "category": "design",
"supports": { "supports": {
"anchor": true, "anchor": true,
"align": true, "align": true,
"alignWide": false, "alignWide": false
"lightBlockWrapper": true
} }
} }

View File

@ -31,8 +31,10 @@ function render_block_core_calendar( $attributes ) {
} }
} }
$output = sprintf( $wrapper_attributes = get_block_wrapper_attributes();
'<div>%1$s</div>', $output = sprintf(
'<div %1$s>%2$s</div>',
$wrapper_attributes,
get_calendar( true, false ) get_calendar( true, false )
); );

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/calendar", "name": "core/calendar",
"category": "widgets", "category": "widgets",
"attributes": { "attributes": {

View File

@ -28,7 +28,7 @@ function render_block_core_categories( $attributes ) {
$id = 'wp-block-categories-' . $block_id; $id = 'wp-block-categories-' . $block_id;
$args['id'] = $id; $args['id'] = $id;
$args['show_option_none'] = __( 'Select Category' ); $args['show_option_none'] = __( 'Select Category' );
$wrapper_markup = '<div class="%1$s">%2$s</div>'; $wrapper_markup = '<div %1$s>%2$s</div>';
$items_markup = wp_dropdown_categories( $args ); $items_markup = wp_dropdown_categories( $args );
$type = 'dropdown'; $type = 'dropdown';
@ -42,16 +42,16 @@ function render_block_core_categories( $attributes ) {
); );
} }
} else { } else {
$wrapper_markup = '<ul class="%1$s">%2$s</ul>'; $wrapper_markup = '<ul %1$s>%2$s</ul>';
$items_markup = wp_list_categories( $args ); $items_markup = wp_list_categories( $args );
$type = 'list'; $type = 'list';
} }
$class = "wp-block-categories-{$type}"; $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => "wp-block-categories-{$type}" ) );
return sprintf( return sprintf(
$wrapper_markup, $wrapper_markup,
esc_attr( $class ), $wrapper_attributes,
$items_markup $items_markup
); );
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/categories", "name": "core/categories",
"category": "widgets", "category": "widgets",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/freeform", "name": "core/freeform",
"category": "text", "category": "text",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/code", "name": "core/code",
"category": "text", "category": "text",
"attributes": { "attributes": {
@ -9,7 +10,6 @@
} }
}, },
"supports": { "supports": {
"anchor": true, "anchor": true
"lightBlockWrapper": true
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/column", "name": "core/column",
"category": "text", "category": "text",
"parent": [ "parent": [
@ -9,15 +10,15 @@
"type": "string" "type": "string"
}, },
"width": { "width": {
"type": "number", "type": "string"
"min": 0, },
"max": 100 "templateLock": {
"type": "string"
} }
}, },
"supports": { "supports": {
"anchor": true, "anchor": true,
"reusable": false, "reusable": false,
"html": false, "html": false
"lightBlockWrapper": true
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/columns", "name": "core/columns",
"category": "design", "category": "design",
"attributes": { "attributes": {
@ -13,10 +14,9 @@
"full" "full"
], ],
"html": false, "html": false,
"lightBlockWrapper": true, "color": {
"__experimentalColor": {
"gradients": true, "gradients": true,
"linkColor": true "link": true
} }
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/embed", "name": "core/embed",
"category": "embed", "category": "embed",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/file", "name": "core/file",
"category": "media", "category": "media",
"attributes": { "attributes": {

View File

@ -1,10 +1,14 @@
{ {
"apiVersion": 2,
"name": "core/group", "name": "core/group",
"category": "design", "category": "design",
"attributes": { "attributes": {
"tagName": { "tagName": {
"type": "string", "type": "string",
"default": "div" "default": "div"
},
"templateLock": {
"type": "string"
} }
}, },
"supports": { "supports": {
@ -14,11 +18,12 @@
], ],
"anchor": true, "anchor": true,
"html": false, "html": false,
"lightBlockWrapper": true, "color": {
"__experimentalColor": {
"gradients": true, "gradients": true,
"linkColor": true "link": true
}, },
"__experimentalPadding": true "spacing": {
"padding": true
}
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/heading", "name": "core/heading",
"category": "text", "category": "text",
"attributes": { "attributes": {
@ -20,14 +21,14 @@
} }
}, },
"supports": { "supports": {
"align": [ "wide", "full" ],
"anchor": true, "anchor": true,
"className": false, "className": false,
"lightBlockWrapper": true, "color": {
"__experimentalColor": { "link": true
"linkColor": true
}, },
"__experimentalFontSize": true, "fontSize": true,
"__experimentalLineHeight": true, "lineHeight": true,
"__experimentalSelector": { "__experimentalSelector": {
"core/heading/h1": "h1", "core/heading/h1": "h1",
"core/heading/h2": "h2", "core/heading/h2": "h2",

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/html", "name": "core/html",
"category": "widgets", "category": "widgets",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/image", "name": "core/image",
"category": "media", "category": "media",
"attributes": { "attributes": {
@ -70,7 +71,6 @@
} }
}, },
"supports": { "supports": {
"anchor": true, "anchor": true
"lightBlockWrapper": true
} }
} }

View File

@ -129,15 +129,15 @@ function render_block_core_latest_comments( $attributes = array() ) {
if ( empty( $comments ) ) { if ( empty( $comments ) ) {
$classnames[] = 'no-comments'; $classnames[] = 'no-comments';
} }
$class = esc_attr( implode( ' ', $classnames ) ); $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classnames ) ) );
return ! empty( $comments ) ? sprintf( return ! empty( $comments ) ? sprintf(
'<ol class="%1$s">%2$s</ol>', '<ol %1$s>%2$s</ol>',
$class, $wrapper_attributes,
$list_items_markup $list_items_markup
) : sprintf( ) : sprintf(
'<div class="%1$s">%2$s</div>', '<div %1$s>%2$s</div>',
$class, $wrapper_attributes,
__( 'No comments to show.' ) __( 'No comments to show.' )
); );
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/latest-comments", "name": "core/latest-comments",
"category": "widgets", "category": "widgets",
"attributes": { "attributes": {

View File

@ -171,9 +171,11 @@ function render_block_core_latest_posts( $attributes ) {
$class .= ' has-author'; $class .= ' has-author';
} }
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $class ) );
return sprintf( return sprintf(
'<ul class="%1$s">%2$s</ul>', '<ul %1$s>%2$s</ul>',
esc_attr( $class ), $wrapper_attributes,
$list_items_markup $list_items_markup
); );
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/list", "name": "core/list",
"category": "text", "category": "text",
"attributes": { "attributes": {
@ -27,10 +28,9 @@
"supports": { "supports": {
"anchor": true, "anchor": true,
"className": false, "className": false,
"__experimentalColor": { "color": {
"gradients": true "gradients": true
}, },
"__unstablePasteTextInline": true, "__unstablePasteTextInline": true
"lightBlockWrapper": true
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/media-text", "name": "core/media-text",
"category": "media", "category": "media",
"attributes": { "attributes": {
@ -84,10 +85,9 @@
"anchor": true, "anchor": true,
"align": [ "wide", "full" ], "align": [ "wide", "full" ],
"html": false, "html": false,
"lightBlockWrapper": true, "color": {
"__experimentalColor": {
"gradients": true, "gradients": true,
"linkColor": true "link": true
} }
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/missing", "name": "core/missing",
"category": "text", "category": "text",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/more", "name": "core/more",
"category": "design", "category": "design",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/nextpage", "name": "core/nextpage",
"category": "design", "category": "design",
"parent": [ "core/post-content" ], "parent": [ "core/post-content" ],

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/paragraph", "name": "core/paragraph",
"category": "text", "category": "text",
"attributes": { "attributes": {
@ -29,12 +30,11 @@
"supports": { "supports": {
"anchor": true, "anchor": true,
"className": false, "className": false,
"lightBlockWrapper": true, "color": {
"__experimentalColor": { "link": true
"linkColor": true
}, },
"__experimentalFontSize": true, "fontSize": true,
"__experimentalLineHeight": true, "lineHeight": true,
"__experimentalSelector": "p", "__experimentalSelector": "p",
"__unstablePasteTextInline": true "__unstablePasteTextInline": true
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/preformatted", "name": "core/preformatted",
"category": "text", "category": "text",
"attributes": { "attributes": {
@ -11,7 +12,6 @@
} }
}, },
"supports": { "supports": {
"anchor": true, "anchor": true
"lightBlockWrapper": true
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/pullquote", "name": "core/pullquote",
"category": "text", "category": "text",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/quote", "name": "core/quote",
"category": "text", "category": "text",
"attributes": { "attributes": {
@ -20,7 +21,6 @@
} }
}, },
"supports": { "supports": {
"anchor": true, "anchor": true
"lightBlockWrapper": true
} }
} }

View File

@ -87,8 +87,9 @@ function render_block_core_rss( $attributes ) {
if ( isset( $attributes['columns'] ) && 'grid' === $attributes['blockLayout'] ) { if ( isset( $attributes['columns'] ) && 'grid' === $attributes['blockLayout'] ) {
$classnames[] = 'columns-' . $attributes['columns']; $classnames[] = 'columns-' . $attributes['columns'];
} }
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classnames ) ) );
return sprintf( '<ul class="%s">%s</ul>', esc_attr( implode( ' ', $classnames ) ), $list_items ); return sprintf( '<ul %s>%s</ul>', $wrapper_attributes, $list_items );
} }
/** /**

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/rss", "name": "core/rss",
"category": "widgets", "category": "widgets",
"attributes": { "attributes": {

View File

@ -65,20 +65,22 @@ function render_block_core_search( $attributes ) {
if ( $show_button ) { if ( $show_button ) {
$button_internal_markup = ''; $button_internal_markup = '';
$button_classes = '';
if ( ! $use_icon_button ) { if ( ! $use_icon_button ) {
if ( ! empty( $attributes['buttonText'] ) ) { if ( ! empty( $attributes['buttonText'] ) ) {
$button_internal_markup = $attributes['buttonText']; $button_internal_markup = $attributes['buttonText'];
} }
} else { } else {
$button_classes .= 'has-icon';
$button_internal_markup = $button_internal_markup =
'<svg id="search-icon" class="search-icon" viewBox="0 0 24 24"> '<svg id="search-icon" class="search-icon" viewBox="0 0 24 24" width="24" height="24">
<path d="M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"></path> <path d="M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"></path>
</svg>'; </svg>';
} }
$button_markup = sprintf( $button_markup = sprintf(
'<button type="submit" class="wp-block-search__button">%s</button>', '<button type="submit"class="wp-block-search__button ' . $button_classes . '">%s</button>',
$button_internal_markup $button_internal_markup
); );
} }
@ -89,16 +91,17 @@ function render_block_core_search( $attributes ) {
} }
} }
$field_markup = sprintf( $field_markup = sprintf(
'<div class="wp-block-search__inside-wrapper"%s>%s</div>', '<div class="wp-block-search__inside-wrapper"%s>%s</div>',
$width_styles, $width_styles,
$input_markup . $button_markup $input_markup . $button_markup
); );
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) );
return sprintf( return sprintf(
'<form role="search" method="get" action="%s" class="%s">%s</form>', '<form role="search" method="get" action="%s" %s>%s</form>',
esc_url( home_url( '/' ) ), esc_url( home_url( '/' ) ),
$classnames, $wrapper_attributes,
$label_markup . $field_markup $label_markup . $field_markup
); );
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/search", "name": "core/search",
"category": "widgets", "category": "widgets",
"attributes": { "attributes": {
@ -6,7 +7,7 @@
"type": "string" "type": "string"
}, },
"showLabel": { "showLabel": {
"type": "bool", "type": "boolean",
"default": true "default": true
}, },
"placeholder": { "placeholder": {
@ -27,13 +28,12 @@
"default": "button-outside" "default": "button-outside"
}, },
"buttonUseIcon": { "buttonUseIcon": {
"type": "bool", "type": "boolean",
"default": false "default": false
} }
}, },
"supports": { "supports": {
"align": [ "left", "center", "right" ], "align": [ "left", "center", "right" ],
"html": false, "html": false
"lightBlockWrapper": true
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/separator", "name": "core/separator",
"category": "design", "category": "design",
"attributes": { "attributes": {
@ -10,6 +11,7 @@
} }
}, },
"supports": { "supports": {
"anchor": true "anchor": true,
"align": ["center","wide","full"]
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/shortcode", "name": "core/shortcode",
"category": "widgets", "category": "widgets",
"attributes": { "attributes": {

View File

@ -32,8 +32,10 @@ function render_block_core_social_link( $attributes, $content, $block ) {
$attribute = 'rel="noopener nofollow" target="_blank"'; $attribute = 'rel="noopener nofollow" target="_blank"';
} }
$icon = block_core_social_link_get_icon( $service ); $icon = block_core_social_link_get_icon( $service );
return '<li class="wp-social-link wp-social-link-' . esc_attr( $service ) . esc_attr( $class_name ) . '"><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '" ' . $attribute . '> ' . $icon . '</a></li>'; $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => 'wp-social-link wp-social-link-' . $service . $class_name ) );
return '<li ' . $wrapper_attributes . '><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '" ' . $attribute . '> ' . $icon . '</a></li>';
} }
/** /**

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/social-link", "name": "core/social-link",
"category": "widgets", "category": "widgets",
"parent": [ "parent": [
@ -20,7 +21,6 @@
], ],
"supports": { "supports": {
"reusable": false, "reusable": false,
"html": false, "html": false
"lightBlockWrapper": true
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/social-links", "name": "core/social-links",
"category": "widgets", "category": "widgets",
"attributes": { "attributes": {
@ -16,7 +17,6 @@
"center", "center",
"right" "right"
], ],
"lightBlockWrapper": true,
"anchor": true "anchor": true
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/spacer", "name": "core/spacer",
"category": "design", "category": "design",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/subhead", "name": "core/subhead",
"category": "text", "category": "text",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/table", "name": "core/table",
"category": "text", "category": "text",
"attributes": { "attributes": {
@ -123,6 +124,7 @@
}, },
"supports": { "supports": {
"anchor": true, "anchor": true,
"align": true "align": true,
"__experimentalSelector": ".wp-block-button > table"
} }
} }

View File

@ -31,8 +31,11 @@ function render_block_core_tag_cloud( $attributes ) {
); );
} }
$wrapper_attributes = get_block_wrapper_attributes();
return sprintf( return sprintf(
'<p>%1$s</p>', '<p %1$s>%2$s</p>',
$wrapper_attributes,
$tag_cloud $tag_cloud
); );
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/tag-cloud", "name": "core/tag-cloud",
"category": "widgets", "category": "widgets",
"attributes": { "attributes": {

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/text-columns", "name": "core/text-columns",
"icon": "columns", "icon": "columns",
"category": "design", "category": "design",

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/verse", "name": "core/verse",
"category": "text", "category": "text",
"attributes": { "attributes": {
@ -14,7 +15,6 @@
} }
}, },
"supports": { "supports": {
"anchor": true, "anchor": true
"lightBlockWrapper": true
} }
} }

View File

@ -1,4 +1,5 @@
{ {
"apiVersion": 2,
"name": "core/video", "name": "core/video",
"category": "media", "category": "media",
"attributes": { "attributes": {
@ -59,11 +60,17 @@
"source": "attribute", "source": "attribute",
"selector": "video", "selector": "video",
"attribute": "playsinline" "attribute": "playsinline"
},
"tracks": {
"type": "array",
"items": {
"type": "object"
},
"default": []
} }
}, },
"supports": { "supports": {
"anchor": true, "anchor": true,
"align": true, "align": true
"lightBlockWrapper": true
} }
} }

View File

@ -0,0 +1,211 @@
<?php
/**
* Block support flags.
*
* @package WordPress
*
* @since 5.6.0
*/
/**
* Class encapsulating and implementing Block Supports.
*
* @since 5.6.0
*
* @access private
*/
class WP_Block_Supports {
/**
* Config.
*
* @var array
*/
private $block_supports = array();
/**
* Container for the main instance of the class.
*
* @var WP_Block_Supports|null
*/
private static $instance = null;
/**
* Utility method to retrieve the main instance of the class.
*
* The instance will be created if it does not exist yet.
*
* @since 5.6.0
*
* @return WP_Block_Supports The main instance.
*/
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Initializes the block supports. It registes the block supports block attributes.
*
* @since 5.6.0
*/
public static function init() {
$instance = self::get_instance();
$instance->register_attributes();
}
/**
* Registers a block support.
*
* @since 5.6.0
*
* @param string $block_support_name Block support name.
* @param array $block_support_config Array containing the properties of the block support.
*/
public function register( $block_support_name, $block_support_config ) {
$this->block_supports[ $block_support_name ] = array_merge(
$block_support_config,
array( 'name' => $block_support_name )
);
}
/**
* Generates an array of HTML attributes, such as classes, by applying to
* the given block all of the features that the block supports.
*
* @since 5.6.0
*
* @param array $parsed_block Block as parsed from content.
* @return array Array of HTML attributes.
*/
public function apply_block_supports( $parsed_block ) {
$block_attributes = $parsed_block['attrs'];
$block_type = WP_Block_Type_Registry::get_instance()->get_registered(
$parsed_block['blockName']
);
// If no render_callback, assume styles have been previously handled.
if ( ! $block_type || empty( $block_type ) ) {
return array();
}
$output = array();
foreach ( $this->block_supports as $name => $block_support_config ) {
if ( ! isset( $block_support_config['apply'] ) ) {
continue;
}
$new_attributes = call_user_func(
$block_support_config['apply'],
$block_type,
$block_attributes
);
if ( ! empty( $new_attributes ) ) {
foreach ( $new_attributes as $attribute_name => $attribute_value ) {
if ( empty( $output[ $attribute_name ] ) ) {
$output[ $attribute_name ] = $attribute_value;
} else {
$output[ $attribute_name ] .= " $attribute_value";
}
}
}
}
return $output;
}
/**
* Registers the block attributes required by the different block supports.
*
* @since 5.6.0
*/
private function register_attributes() {
$block_registry = WP_Block_Type_Registry::get_instance();
$registered_block_types = $block_registry->get_all_registered();
foreach ( $registered_block_types as $block_type ) {
if ( ! property_exists( $block_type, 'supports' ) ) {
continue;
}
if ( ! $block_type->attributes ) {
$block_type->attributes = array();
}
foreach ( $this->block_supports as $name => $block_support_config ) {
if ( ! isset( $block_support_config['register_attribute'] ) ) {
continue;
}
call_user_func(
$block_support_config['register_attribute'],
$block_type
);
}
}
}
}
/**
* Generates a string of attributes by applying to the current block being
* rendered all of the features that the block supports.
*
* @since 5.6.0
*
* @global array $current_parsed_block Block currently being parsed.
*
* @param array $extra_attributes Optional. Extra attributes to render on the block wrapper.
*
* @return string String of HTML classes.
*/
function get_block_wrapper_attributes( $extra_attributes = array() ) {
global $current_parsed_block;
$new_attributes = WP_Block_Supports::get_instance()->apply_block_supports( $current_parsed_block );
if ( empty( $new_attributes ) && empty( $extra_attributes ) ) {
return '';
}
// This is hardcoded on purpose.
// We only support a fixed list of attributes.
$attributes_to_merge = array( 'style', 'class' );
$attributes = array();
foreach ( $attributes_to_merge as $attribute_name ) {
if ( empty( $new_attributes[ $attribute_name ] ) && empty( $extra_attributes[ $attribute_name ] ) ) {
continue;
}
if ( empty( $new_attributes[ $attribute_name ] ) ) {
$attributes[ $attribute_name ] = $extra_attributes[ $attribute_name ];
continue;
}
if ( empty( $extra_attributes[ $attribute_name ] ) ) {
$attributes[ $attribute_name ] = $new_attributes[ $attribute_name ];
continue;
}
$attributes[ $attribute_name ] = $extra_attributes[ $attribute_name ] . ' ' . $new_attributes[ $attribute_name ];
}
foreach ( $extra_attributes as $attribute_name => $value ) {
if ( ! in_array( $attribute_name, $attributes_to_merge, true ) ) {
$attributes[ $attribute_name ] = $value;
}
}
if ( empty( $attributes ) ) {
return '';
}
$normalized_attributes = array();
foreach ( $attributes as $key => $value ) {
$normalized_attributes[] = $key . '="' . esc_attr( $value ) . '"';
}
return implode( ' ', $normalized_attributes );
}

View File

@ -192,7 +192,7 @@ class WP_Block {
* @return string Rendered block output. * @return string Rendered block output.
*/ */
public function render( $options = array() ) { public function render( $options = array() ) {
global $post; global $post, $current_parsed_block;
$options = wp_parse_args( $options = wp_parse_args(
$options, $options,
array( array(
@ -206,9 +206,14 @@ class WP_Block {
if ( ! $options['dynamic'] || empty( $this->block_type->skip_inner_blocks ) ) { if ( ! $options['dynamic'] || empty( $this->block_type->skip_inner_blocks ) ) {
$index = 0; $index = 0;
foreach ( $this->inner_content as $chunk ) { foreach ( $this->inner_content as $chunk ) {
$block_content .= is_string( $chunk ) ? if ( is_string( $chunk ) ) {
$chunk : $block_content .= $chunk;
$this->inner_blocks[ $index++ ]->render(); } else {
$parent_parsed_block = $current_parsed_block;
$current_parsed_block = $this->inner_blocks[ $index ]->parsed_block;
$block_content .= $this->inner_blocks[ $index++ ]->render();
$current_parsed_block = $parent_parsed_block;
}
} }
} }

View File

@ -111,59 +111,12 @@
padding: 32px 16px; padding: 32px 16px;
text-align: center; } text-align: center; }
.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * {
z-index: 1; }
.block-editor-block-styles .block-editor-block-list__block { .block-editor-block-styles .block-editor-block-list__block {
margin: 0; } margin: 0; }
/** /**
* Notices & Block Selected/Hover Styles. * Notices & Block Selected/Hover Styles.
*/ */
.block-editor-block-list__layout .block-editor-block-list__block {
position: relative;
overflow-wrap: break-word;
/**
* Notices
*/
/**
* Block Layout
*/ }
.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui {
margin: -10px 0 12px 0; }
.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui {
margin: 0 0 12px 0;
width: 100%; }
.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice {
margin-right: 0;
margin-left: 0; }
.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content {
font-size: 13px; }
.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus {
outline: none; }
.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
position: absolute;
z-index: 1;
pointer-events: none;
content: "";
top: 1px;
bottom: 1px;
right: 1px;
left: 1px;
box-shadow: 0 0 0 1.5px #007cba;
box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color);
border-radius: 1px; }
.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
box-shadow: 0 0 0 1.5px #fff; }
.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) {
opacity: 0.5;
transition: opacity 0.1s linear; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) {
transition-duration: 0s; } }
.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused {
opacity: 1; }
.block-editor-block-list__layout .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block,
.block-editor-block-list__layout .block-list-appender { .block-editor-block-list__layout .block-list-appender {
position: relative; } position: relative; }
@ -204,22 +157,11 @@
top: 1px; top: 1px;
bottom: 1px; bottom: 1px;
right: 1px; right: 1px;
left: 1px; } left: 1px;
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after,
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after,
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after,
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after {
box-shadow: 0 0 0 1.5px #007cba; box-shadow: 0 0 0 1.5px #007cba;
box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color);
border-radius: 1px; border-radius: 1px;
transition: box-shadow 0.2s ease-out;
outline: 2px solid transparent; } outline: 2px solid transparent; }
@media (prefers-reduced-motion: reduce) {
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after,
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after,
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after,
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after {
transition-duration: 0s; } }
.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, .is-dark-theme .is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, .is-dark-theme
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, .is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, .is-dark-theme
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .is-dark-theme
@ -259,64 +201,106 @@
height: 1px; height: 1px;
padding: 0; } padding: 0; }
/** .block-editor-block-list__layout .block-editor-block-list__block {
* Block styles and alignments position: relative;
*/ overflow-wrap: break-word;
.block-editor-block-list__layout .block-editor-block-list__block.has-warning { /**
min-height: 36px; } * Notices
*/
.block-editor-block-list__layout .block-editor-block-list__block::after { /**
content: ""; * Block Layout
pointer-events: none; */
position: absolute; /**
top: 0; * Block styles and alignments
left: 0; */ }
bottom: 0; .block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * {
right: 0; z-index: 1; }
border-radius: 2px; .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui {
box-shadow: 0 0 0 1.5px transparent; margin: -10px 0 12px 0; }
transition: box-shadow 0.1s ease-in; } .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui {
@media (prefers-reduced-motion: reduce) { margin: 0 0 12px 0;
.block-editor-block-list__layout .block-editor-block-list__block::after { width: 100%; }
transition-duration: 0s; } } .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice {
margin-right: 0;
.block-editor-block-list__layout .block-editor-block-list__block.has-warning > * { margin-left: 0; }
pointer-events: none; .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content {
-webkit-user-select: none; font-size: 13px; }
-ms-user-select: none; .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus {
user-select: none; } outline: none; }
.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning { position: absolute;
pointer-events: all; } z-index: 1;
pointer-events: none;
.block-editor-block-list__layout .block-editor-block-list__block.has-warning::after { content: "";
content: ""; top: 1px;
position: absolute; bottom: 1px;
top: 0; right: 1px;
left: 0; left: 1px;
bottom: 0; box-shadow: 0 0 0 1.5px #007cba;
right: 0; box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color);
border-radius: 2px; border-radius: 1px; }
background-color: rgba(255, 255, 255, 0.4); } .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
box-shadow: 0 0 0 1.5px #fff; }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected::after { .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) {
background-color: transparent; } opacity: 0.5;
transition: opacity 0.1s linear; }
.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay::after { @media (prefers-reduced-motion: reduce) {
display: none; } .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) {
transition-duration: 0s; } }
.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay::after { .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused {
display: block; } opacity: 1; }
.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) {
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block { opacity: 0.5;
cursor: default; } transition: opacity 0.1s linear; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] { .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) {
float: none; } transition-duration: 0s; } }
.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity, .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).has-child-selected,
.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter { .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode):not(.has-child-selected) .block-editor-block-list__block,
right: auto; .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity .block-editor-block-list__block,
left: 8px; } .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) .is-active-entity .block-editor-block-list__block {
opacity: 1; }
.block-editor-block-list__layout .block-editor-block-list__block::after {
content: "";
pointer-events: none;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
border-radius: 2px;
box-shadow: 0 0 0 1.5px transparent; }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning {
min-height: 36px; }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning > * {
pointer-events: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none; }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning {
pointer-events: all; }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning::after {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
border-radius: 2px;
background-color: rgba(255, 255, 255, 0.4); }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected::after {
background-color: transparent; }
.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay::after {
display: none; }
.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay::after {
display: block; }
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block {
cursor: default; }
.block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] {
float: none; }
.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter {
right: auto;
left: 8px; }
.block-editor-block-list__layout .wp-block { .block-editor-block-list__layout .wp-block {
margin-right: auto; margin-right: auto;
@ -354,7 +338,9 @@
.block-editor-block-list__insertion-point { .block-editor-block-list__insertion-point {
position: relative; position: relative;
z-index: 6; z-index: 6;
margin-top: -28px; } margin-top: -14px; }
.block-editor-block-list__insertion-point.is-insert-after {
margin-top: 14px; }
.block-editor-block-list__insertion-point-indicator { .block-editor-block-list__insertion-point-indicator {
position: absolute; position: absolute;
@ -447,10 +433,12 @@
.block-editor-block-list__block .block-editor-block-list__block-html-textarea { .block-editor-block-list__block .block-editor-block-list__block-html-textarea {
display: block; display: block;
margin: 0; margin: 0;
padding: 12px;
width: 100%; width: 100%;
border: none; border: none;
outline: none; outline: none;
box-shadow: none; border-radius: 2px;
box-shadow: inset 0 0 0 1px #1e1e1e;
resize: none; resize: none;
overflow: hidden; overflow: hidden;
font-family: Menlo, Consolas, monaco, monospace; font-family: Menlo, Consolas, monaco, monospace;
@ -461,7 +449,8 @@
.block-editor-block-list__block .block-editor-block-list__block-html-textarea { .block-editor-block-list__block .block-editor-block-list__block-html-textarea {
transition-duration: 0s; } } transition-duration: 0s; } }
.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus { .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus {
box-shadow: none; } box-shadow: inset 0 0 0 1.5px #007cba;
box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); }
/** /**
* Block Toolbar when contextual. * Block Toolbar when contextual.
@ -478,36 +467,10 @@
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button { .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button {
min-width: 24px; min-width: 24px;
width: 24px; } width: 24px; }
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg {
transition: ease-in-out transform 0.1s; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg {
transition-duration: 0s; } }
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:hover svg {
transform: translateX(2px); }
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg {
transition: ease-in-out transform 0.1s; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg {
transition-duration: 0s; } }
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:hover svg {
transform: translateX(-2px); }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg {
margin-top: 2px; margin-top: 2px; }
transition: ease-in-out transform 0.1s; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg {
transition-duration: 0s; } }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:hover svg {
transform: translateY(-2px); }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg {
margin-bottom: 3px; margin-bottom: 3px; }
transition: ease-in-out transform 0.1s; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg {
transition-duration: 0s; } }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:hover svg {
transform: translateY(2px); }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus::before { .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus::before {
right: 0 !important; right: 0 !important;
min-width: 0; min-width: 0;
@ -565,6 +528,7 @@
.components-popover.block-editor-block-list__block-popover .components-popover__content { .components-popover.block-editor-block-list__block-popover .components-popover__content {
margin: 0 !important; margin: 0 !important;
min-width: auto; min-width: auto;
width: -webkit-max-content;
width: max-content; width: max-content;
background: none; background: none;
border: none; border: none;
@ -777,100 +741,86 @@
.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button { .block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button {
float: right; } float: right; }
.block-editor-block-mover {
display: inline-flex;
flex-direction: row; }
.block-editor-block-mover-button__description { .block-editor-block-mover-button__description {
display: none; } display: none; }
.block-editor-block-mover-button.has-icon { .block-editor-block-mover-button.has-icon {
padding: 0; } padding: 0; }
.block-editor-block-mover .block-editor-block-mover__move-button-container, .block-editor-block-mover {
.block-editor-block-mover .components-toolbar { display: inline-flex;
flex: 1;
flex-direction: row;
border-left: none !important; }
@media (min-width: 600px) {
.block-editor-block-mover .block-editor-block-mover__move-button-container,
.block-editor-block-mover .components-toolbar {
flex-direction: column; } }
.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,
.block-editor-block-mover.is-horizontal .components-toolbar {
flex-direction: row; } flex-direction: row; }
.block-editor-block-mover .block-editor-block-mover__move-button-container,
@media (min-width: 600px) { .block-editor-block-mover .components-toolbar {
.block-editor-block-mover .block-editor-block-mover-button { flex: 1;
height: 24px; flex-direction: row;
width: 42px; border-left: none !important; }
padding-left: 11px !important; @media (min-width: 600px) {
padding-right: 6px !important; } } .block-editor-block-mover .block-editor-block-mover__move-button-container,
.block-editor-block-mover .components-toolbar {
@media (min-width: 600px) { flex-direction: column; } }
.block-editor-block-mover .block-editor-block-mover-button::before { .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,
right: 8px !important; .block-editor-block-mover.is-horizontal .components-toolbar {
left: 8px !important; } } flex-direction: row; }
@media (min-width: 600px) {
.block-editor-block-mover .block-editor-block-mover__drag-handle { .block-editor-block-mover .block-editor-block-mover-button {
width: 24px; height: 24px;
cursor: grab; width: 42px;
min-width: 24px !important; padding-left: 11px !important;
padding: 0 !important; } padding-right: 6px !important; } }
.block-editor-block-mover .block-editor-block-mover__drag-handle:focus::before { @media (min-width: 600px) {
.block-editor-block-mover .block-editor-block-mover-button::before {
right: 8px !important;
left: 8px !important; } }
.block-editor-block-mover .block-editor-block-mover__drag-handle {
width: 24px;
cursor: grab;
min-width: 24px !important;
padding: 0 !important; }
.block-editor-block-mover .block-editor-block-mover__drag-handle:focus::before {
right: 0 !important;
left: 0 !important; }
@media (min-width: 600px) {
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg {
margin-bottom: -8px; }
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button::before,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button::before {
bottom: 0;
height: calc(100% - 1px); }
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg {
margin-top: -8px; }
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button::before,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button::before {
top: 0;
height: calc(100% - 1px); } }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon {
height: 48px;
width: 24px;
padding-right: 0;
padding-left: 0; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before {
top: 1px;
bottom: 1px;
min-width: 0;
width: auto;
height: auto; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg {
margin-right: 0;
margin-left: -8px;
margin-bottom: 0; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon::before {
right: 0 !important; right: 0 !important;
left: 0 !important; } left: 0 !important; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg {
@media (min-width: 600px) { margin-right: -8px;
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg, margin-left: 0;
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg { margin-top: 0; }
margin-bottom: -8px; } .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon::before {
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button::before, right: 0 !important;
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button::before { left: 0 !important;
bottom: 0; width: calc(100% + 1px); }
height: calc(100% - 1px); }
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg {
margin-top: -8px; }
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button::before,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button::before {
top: 0;
height: calc(100% - 1px); } }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon {
height: 48px;
width: 24px;
padding-right: 0;
padding-left: 0; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before {
top: 1px;
bottom: 1px;
min-width: 0;
width: auto;
height: auto; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg {
margin-right: 0;
margin-left: -8px;
margin-bottom: 0; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon::before {
right: 0 !important;
left: 0 !important; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg {
margin-right: -8px;
margin-left: 0;
margin-top: 0; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon::before {
right: 0 !important;
left: 0 !important;
width: calc(100% + 1px); }
.block-editor-block-navigation__container {
padding: 7px; }
.block-editor-block-navigation__label { .block-editor-block-navigation__label {
margin: 0 0 12px; margin: 0 0 12px;
@ -1309,23 +1259,21 @@
font-size: 11px; font-size: 11px;
font-weight: 500; } font-weight: 500; }
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon {
height: 48px; }
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon { .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon {
width: 48px; } width: 48px; }
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon, .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform, .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle {
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform {
width: 48px;
height: 48px; } height: 48px; }
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform, .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,
padding: 12px; } .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform {
width: 48px;
height: 48px; }
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform {
padding: 12px; }
.block-editor-block-types-list { .block-editor-block-types-list {
list-style: none; list-style: none;
@ -1659,8 +1607,6 @@
max-width: 230px; max-width: 230px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; } text-overflow: ellipsis; }
.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark {
color: #1e1e1e; }
.block-editor-link-control__search-item .block-editor-link-control__search-item-title { .block-editor-link-control__search-item .block-editor-link-control__search-item-title {
display: block; display: block;
margin-bottom: 0.2em; margin-bottom: 0.2em;
@ -2301,6 +2247,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
line-height: 1.4; line-height: 1.4;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px; font-size: 13px;
color: #1e1e1e;
margin: 0 0 1em; } margin: 0 0 1em; }
.block-editor-warning p.block-editor-warning__message.block-editor-warning__message { .block-editor-warning p.block-editor-warning__message.block-editor-warning__message {
min-height: auto; } min-height: auto; }
@ -2405,8 +2352,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper { .is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper {
opacity: 1; opacity: 1;
transform: translateY(-60px); } transform: translateY(-60px); }
.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper {
display: none; }
.block-editor-block-toolbar-animated-width-container { .block-editor-block-toolbar-animated-width-container {
position: relative; position: relative;
@ -2733,8 +2678,11 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
border-radius: 0; } border-radius: 0; }
.block-editor-inserter__quick-inserter-expand.components-button:hover { .block-editor-inserter__quick-inserter-expand.components-button:hover {
color: #fff; } color: #fff; }
.block-editor-inserter__quick-inserter-expand.components-button:active {
color: #ccc; }
.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled) { .block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled) {
box-shadow: inset 0 0 0 1.5px #1e1e1e, inset 0 0 0 2px #fff; } box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 3px #fff;
box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 3px #fff; }
.block-editor-post-preview__dropdown { .block-editor-post-preview__dropdown {
padding: 0; } padding: 0; }

File diff suppressed because one or more lines are too long

View File

@ -111,59 +111,12 @@
padding: 32px 16px; padding: 32px 16px;
text-align: center; } text-align: center; }
.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * {
z-index: 1; }
.block-editor-block-styles .block-editor-block-list__block { .block-editor-block-styles .block-editor-block-list__block {
margin: 0; } margin: 0; }
/** /**
* Notices & Block Selected/Hover Styles. * Notices & Block Selected/Hover Styles.
*/ */
.block-editor-block-list__layout .block-editor-block-list__block {
position: relative;
overflow-wrap: break-word;
/**
* Notices
*/
/**
* Block Layout
*/ }
.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui {
margin: -10px 0 12px 0; }
.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui {
margin: 0 0 12px 0;
width: 100%; }
.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice {
margin-left: 0;
margin-right: 0; }
.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content {
font-size: 13px; }
.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus {
outline: none; }
.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
position: absolute;
z-index: 1;
pointer-events: none;
content: "";
top: 1px;
bottom: 1px;
left: 1px;
right: 1px;
box-shadow: 0 0 0 1.5px #007cba;
box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color);
border-radius: 1px; }
.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
box-shadow: 0 0 0 1.5px #fff; }
.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) {
opacity: 0.5;
transition: opacity 0.1s linear; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) {
transition-duration: 0s; } }
.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused {
opacity: 1; }
.block-editor-block-list__layout .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block,
.block-editor-block-list__layout .block-list-appender { .block-editor-block-list__layout .block-list-appender {
position: relative; } position: relative; }
@ -204,22 +157,11 @@
top: 1px; top: 1px;
bottom: 1px; bottom: 1px;
left: 1px; left: 1px;
right: 1px; } right: 1px;
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after,
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after,
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after,
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after {
box-shadow: 0 0 0 1.5px #007cba; box-shadow: 0 0 0 1.5px #007cba;
box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color);
border-radius: 1px; border-radius: 1px;
transition: box-shadow 0.2s ease-out;
outline: 2px solid transparent; } outline: 2px solid transparent; }
@media (prefers-reduced-motion: reduce) {
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after,
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after,
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after,
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after {
transition-duration: 0s; } }
.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, .is-dark-theme .is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, .is-dark-theme
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, .is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, .is-dark-theme
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .is-dark-theme
@ -259,64 +201,106 @@
height: 1px; height: 1px;
padding: 0; } padding: 0; }
/** .block-editor-block-list__layout .block-editor-block-list__block {
* Block styles and alignments position: relative;
*/ overflow-wrap: break-word;
.block-editor-block-list__layout .block-editor-block-list__block.has-warning { /**
min-height: 36px; } * Notices
*/
.block-editor-block-list__layout .block-editor-block-list__block::after { /**
content: ""; * Block Layout
pointer-events: none; */
position: absolute; /**
top: 0; * Block styles and alignments
right: 0; */ }
bottom: 0; .block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * {
left: 0; z-index: 1; }
border-radius: 2px; .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui {
box-shadow: 0 0 0 1.5px transparent; margin: -10px 0 12px 0; }
transition: box-shadow 0.1s ease-in; } .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui {
@media (prefers-reduced-motion: reduce) { margin: 0 0 12px 0;
.block-editor-block-list__layout .block-editor-block-list__block::after { width: 100%; }
transition-duration: 0s; } } .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice {
margin-left: 0;
.block-editor-block-list__layout .block-editor-block-list__block.has-warning > * { margin-right: 0; }
pointer-events: none; .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content {
-webkit-user-select: none; font-size: 13px; }
-ms-user-select: none; .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus {
user-select: none; } outline: none; }
.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning { position: absolute;
pointer-events: all; } z-index: 1;
pointer-events: none;
.block-editor-block-list__layout .block-editor-block-list__block.has-warning::after { content: "";
content: ""; top: 1px;
position: absolute; bottom: 1px;
top: 0; left: 1px;
right: 0; right: 1px;
bottom: 0; box-shadow: 0 0 0 1.5px #007cba;
left: 0; box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color);
border-radius: 2px; border-radius: 1px; }
background-color: rgba(255, 255, 255, 0.4); } .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
box-shadow: 0 0 0 1.5px #fff; }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected::after { .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) {
background-color: transparent; } opacity: 0.5;
transition: opacity 0.1s linear; }
.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay::after { @media (prefers-reduced-motion: reduce) {
display: none; } .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) {
transition-duration: 0s; } }
.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay::after { .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused {
display: block; } opacity: 1; }
.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) {
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block { opacity: 0.5;
cursor: default; } transition: opacity 0.1s linear; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] { .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) {
float: none; } transition-duration: 0s; } }
.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity, .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).has-child-selected,
.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter { .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode):not(.has-child-selected) .block-editor-block-list__block,
left: auto; .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity .block-editor-block-list__block,
right: 8px; } .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) .is-active-entity .block-editor-block-list__block {
opacity: 1; }
.block-editor-block-list__layout .block-editor-block-list__block::after {
content: "";
pointer-events: none;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 2px;
box-shadow: 0 0 0 1.5px transparent; }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning {
min-height: 36px; }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning > * {
pointer-events: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none; }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning {
pointer-events: all; }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning::after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 2px;
background-color: rgba(255, 255, 255, 0.4); }
.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected::after {
background-color: transparent; }
.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay::after {
display: none; }
.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay::after {
display: block; }
.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block {
cursor: default; }
.block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] {
float: none; }
.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter {
left: auto;
right: 8px; }
.block-editor-block-list__layout .wp-block { .block-editor-block-list__layout .wp-block {
margin-left: auto; margin-left: auto;
@ -358,7 +342,9 @@
.block-editor-block-list__insertion-point { .block-editor-block-list__insertion-point {
position: relative; position: relative;
z-index: 6; z-index: 6;
margin-top: -28px; } margin-top: -14px; }
.block-editor-block-list__insertion-point.is-insert-after {
margin-top: 14px; }
.block-editor-block-list__insertion-point-indicator { .block-editor-block-list__insertion-point-indicator {
position: absolute; position: absolute;
@ -451,10 +437,12 @@
.block-editor-block-list__block .block-editor-block-list__block-html-textarea { .block-editor-block-list__block .block-editor-block-list__block-html-textarea {
display: block; display: block;
margin: 0; margin: 0;
padding: 12px;
width: 100%; width: 100%;
border: none; border: none;
outline: none; outline: none;
box-shadow: none; border-radius: 2px;
box-shadow: inset 0 0 0 1px #1e1e1e;
resize: none; resize: none;
overflow: hidden; overflow: hidden;
font-family: Menlo, Consolas, monaco, monospace; font-family: Menlo, Consolas, monaco, monospace;
@ -465,7 +453,8 @@
.block-editor-block-list__block .block-editor-block-list__block-html-textarea { .block-editor-block-list__block .block-editor-block-list__block-html-textarea {
transition-duration: 0s; } } transition-duration: 0s; } }
.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus { .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus {
box-shadow: none; } box-shadow: inset 0 0 0 1.5px #007cba;
box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); }
/** /**
* Block Toolbar when contextual. * Block Toolbar when contextual.
@ -482,36 +471,10 @@
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button { .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button {
min-width: 24px; min-width: 24px;
width: 24px; } width: 24px; }
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg {
transition: ease-in-out transform 0.1s; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg {
transition-duration: 0s; } }
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:hover svg {
transform: translateX(-2px); }
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg {
transition: ease-in-out transform 0.1s; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg {
transition-duration: 0s; } }
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:hover svg {
transform: translateX(2px); }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg {
margin-top: 2px; margin-top: 2px; }
transition: ease-in-out transform 0.1s; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg {
transition-duration: 0s; } }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:hover svg {
transform: translateY(-2px); }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg {
margin-bottom: 3px; margin-bottom: 3px; }
transition: ease-in-out transform 0.1s; }
@media (prefers-reduced-motion: reduce) {
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg {
transition-duration: 0s; } }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:hover svg {
transform: translateY(2px); }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus::before { .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus::before {
left: 0 !important; left: 0 !important;
min-width: 0; min-width: 0;
@ -569,6 +532,7 @@
.components-popover.block-editor-block-list__block-popover .components-popover__content { .components-popover.block-editor-block-list__block-popover .components-popover__content {
margin: 0 !important; margin: 0 !important;
min-width: auto; min-width: auto;
width: -webkit-max-content;
width: max-content; width: max-content;
background: none; background: none;
border: none; border: none;
@ -781,100 +745,86 @@
.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button { .block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button {
float: left; } float: left; }
.block-editor-block-mover {
display: inline-flex;
flex-direction: row; }
.block-editor-block-mover-button__description { .block-editor-block-mover-button__description {
display: none; } display: none; }
.block-editor-block-mover-button.has-icon { .block-editor-block-mover-button.has-icon {
padding: 0; } padding: 0; }
.block-editor-block-mover .block-editor-block-mover__move-button-container, .block-editor-block-mover {
.block-editor-block-mover .components-toolbar { display: inline-flex;
flex: 1;
flex-direction: row;
border-right: none !important; }
@media (min-width: 600px) {
.block-editor-block-mover .block-editor-block-mover__move-button-container,
.block-editor-block-mover .components-toolbar {
flex-direction: column; } }
.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,
.block-editor-block-mover.is-horizontal .components-toolbar {
flex-direction: row; } flex-direction: row; }
.block-editor-block-mover .block-editor-block-mover__move-button-container,
@media (min-width: 600px) { .block-editor-block-mover .components-toolbar {
.block-editor-block-mover .block-editor-block-mover-button { flex: 1;
height: 24px; flex-direction: row;
width: 42px; border-right: none !important; }
padding-right: 11px !important; @media (min-width: 600px) {
padding-left: 6px !important; } } .block-editor-block-mover .block-editor-block-mover__move-button-container,
.block-editor-block-mover .components-toolbar {
@media (min-width: 600px) { flex-direction: column; } }
.block-editor-block-mover .block-editor-block-mover-button::before { .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,
left: 8px !important; .block-editor-block-mover.is-horizontal .components-toolbar {
right: 8px !important; } } flex-direction: row; }
@media (min-width: 600px) {
.block-editor-block-mover .block-editor-block-mover__drag-handle { .block-editor-block-mover .block-editor-block-mover-button {
width: 24px; height: 24px;
cursor: grab; width: 42px;
min-width: 24px !important; padding-right: 11px !important;
padding: 0 !important; } padding-left: 6px !important; } }
.block-editor-block-mover .block-editor-block-mover__drag-handle:focus::before { @media (min-width: 600px) {
.block-editor-block-mover .block-editor-block-mover-button::before {
left: 8px !important;
right: 8px !important; } }
.block-editor-block-mover .block-editor-block-mover__drag-handle {
width: 24px;
cursor: grab;
min-width: 24px !important;
padding: 0 !important; }
.block-editor-block-mover .block-editor-block-mover__drag-handle:focus::before {
left: 0 !important;
right: 0 !important; }
@media (min-width: 600px) {
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg {
margin-bottom: -8px; }
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button::before,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button::before {
bottom: 0;
height: calc(100% - 1px); }
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg {
margin-top: -8px; }
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button::before,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button::before {
top: 0;
height: calc(100% - 1px); } }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon {
height: 48px;
width: 24px;
padding-left: 0;
padding-right: 0; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before {
top: 1px;
bottom: 1px;
min-width: 0;
width: auto;
height: auto; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg {
margin-left: 0;
margin-right: -8px;
margin-bottom: 0; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon::before {
left: 0 !important; left: 0 !important;
right: 0 !important; } right: 0 !important; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg {
@media (min-width: 600px) { margin-left: -8px;
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg, margin-right: 0;
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg { margin-top: 0; }
margin-bottom: -8px; } .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon::before {
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button::before, left: 0 !important;
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button::before { right: 0 !important;
bottom: 0; width: calc(100% + 1px); }
height: calc(100% - 1px); }
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg {
margin-top: -8px; }
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button::before,
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button::before {
top: 0;
height: calc(100% - 1px); } }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon {
height: 48px;
width: 24px;
padding-left: 0;
padding-right: 0; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before {
top: 1px;
bottom: 1px;
min-width: 0;
width: auto;
height: auto; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg {
margin-left: 0;
margin-right: -8px;
margin-bottom: 0; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon::before {
left: 0 !important;
right: 0 !important; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg {
margin-left: -8px;
margin-right: 0;
margin-top: 0; }
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon::before {
left: 0 !important;
right: 0 !important;
width: calc(100% + 1px); }
.block-editor-block-navigation__container {
padding: 7px; }
.block-editor-block-navigation__label { .block-editor-block-navigation__label {
margin: 0 0 12px; margin: 0 0 12px;
@ -1313,23 +1263,21 @@
font-size: 11px; font-size: 11px;
font-weight: 500; } font-weight: 500; }
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon {
height: 48px; }
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon { .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon {
width: 48px; } width: 48px; }
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon, .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform, .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle {
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform {
width: 48px;
height: 48px; } height: 48px; }
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform, .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,
padding: 12px; } .block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform {
width: 48px;
height: 48px; }
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,
.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform {
padding: 12px; }
.block-editor-block-types-list { .block-editor-block-types-list {
list-style: none; list-style: none;
@ -1663,8 +1611,6 @@
max-width: 230px; max-width: 230px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; } text-overflow: ellipsis; }
.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark {
color: #1e1e1e; }
.block-editor-link-control__search-item .block-editor-link-control__search-item-title { .block-editor-link-control__search-item .block-editor-link-control__search-item-title {
display: block; display: block;
margin-bottom: 0.2em; margin-bottom: 0.2em;
@ -2305,6 +2251,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
line-height: 1.4; line-height: 1.4;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px; font-size: 13px;
color: #1e1e1e;
margin: 0 0 1em; } margin: 0 0 1em; }
.block-editor-warning p.block-editor-warning__message.block-editor-warning__message { .block-editor-warning p.block-editor-warning__message.block-editor-warning__message {
min-height: auto; } min-height: auto; }
@ -2409,8 +2356,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper { .is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper {
opacity: 1; opacity: 1;
transform: translateY(-60px); } transform: translateY(-60px); }
.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper {
display: none; }
.block-editor-block-toolbar-animated-width-container { .block-editor-block-toolbar-animated-width-container {
position: relative; position: relative;
@ -2737,8 +2682,11 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
border-radius: 0; } border-radius: 0; }
.block-editor-inserter__quick-inserter-expand.components-button:hover { .block-editor-inserter__quick-inserter-expand.components-button:hover {
color: #fff; } color: #fff; }
.block-editor-inserter__quick-inserter-expand.components-button:active {
color: #ccc; }
.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled) { .block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled) {
box-shadow: inset 0 0 0 1.5px #1e1e1e, inset 0 0 0 2px #fff; } box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 3px #fff;
box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 3px #fff; }
.block-editor-post-preview__dropdown { .block-editor-post-preview__dropdown {
padding: 0; } padding: 0; }

File diff suppressed because one or more lines are too long

View File

@ -182,6 +182,16 @@ div[data-type="core/button"] {
padding: 0 !important; } padding: 0 !important; }
.wp-block-cover.components-placeholder h2 { .wp-block-cover.components-placeholder h2 {
color: inherit; } color: inherit; }
.wp-block-cover.is-transient::before {
background-color: #fff;
opacity: 0.3; }
.wp-block-cover .components-spinner {
position: absolute;
z-index: 1;
top: 50%;
right: 50%;
transform: translate(50%, -50%);
margin: 0; }
.wp-block-cover .block-editor-block-list__layout { .wp-block-cover .block-editor-block-list__layout {
width: 100%; } width: 100%; }
.wp-block-cover .wp-block-cover__inner-container { .wp-block-cover .wp-block-cover__inner-container {
@ -909,8 +919,7 @@ ul.has-background.has-background {
border-radius: 4px; } border-radius: 4px; }
.block-library-colors-selector .block-library-colors-selector__state-selection { .block-library-colors-selector .block-library-colors-selector__state-selection {
margin-right: auto; margin-right: auto;
margin-left: auto; } margin-left: auto;
.block-library-colors-selector .block-library-colors-selector__state-selection {
border-radius: 11px; border-radius: 11px;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
width: 22px; width: 22px;
@ -951,9 +960,6 @@ ul.has-background.has-background {
vertical-align: middle; vertical-align: middle;
margin-left: 7px; } margin-left: 7px; }
.wp-block-navigation-placeholder .components-custom-select-control__label {
margin-bottom: 1rem; }
.wp-block-navigation-placeholder .components-custom-select-control__button { .wp-block-navigation-placeholder .components-custom-select-control__button {
height: auto; height: auto;
padding: 0.375rem 1.5rem 0.375rem 0.75rem; padding: 0.375rem 1.5rem 0.375rem 0.75rem;
@ -972,6 +978,7 @@ ul.has-background.has-background {
border-top: 1px solid #757575; } border-top: 1px solid #757575; }
.wp-block-navigation-placeholder .components-custom-select-control__label { .wp-block-navigation-placeholder .components-custom-select-control__label {
margin-bottom: 1rem;
font-size: 13px; font-size: 13px;
font-weight: normal; } font-weight: normal; }
@ -1283,8 +1290,34 @@ ul.has-background.has-background {
.editor-styles-wrapper .wp-block-social-links { .editor-styles-wrapper .wp-block-social-links {
padding: 0; } padding: 0; }
.wp-block-social-links__social-placeholder {
display: flex; }
.wp-block-social-links__social-placeholder .wp-block-social-link {
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0 0 8px 8px;
width: 36px;
height: 36px;
border-radius: 50%;
opacity: 0.8; }
.is-style-logos-only .wp-block-social-links__social-placeholder .wp-block-social-link::before {
content: "";
display: block;
width: 18px;
height: 18px;
border-radius: 50%;
opacity: 0.8;
background: currentColor; }
.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-block-social-link {
border-radius: 9999px;
padding-right: 28px;
padding-left: 28px; }
.wp-block-social-links .block-list-appender { .wp-block-social-links .block-list-appender {
margin: 0; margin: 0 0 8px 0;
display: flex; display: flex;
align-items: center; } align-items: center; }
@ -1297,17 +1330,6 @@ ul.has-background.has-background {
[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links { [data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links {
min-height: 36px; } min-height: 36px; }
[data-type="core/social-links"] .wp-social-link__is-incomplete {
transition: transform 0.1s ease;
transform-origin: center center; }
[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete {
opacity: 0;
transform: scale(0);
width: 0;
padding: 0;
margin-left: 0; }
.wp-social-link.wp-social-link__is-incomplete { .wp-social-link.wp-social-link__is-incomplete {
opacity: 0.5; } opacity: 0.5; }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
@ -1353,29 +1375,27 @@ ul.has-background.has-background {
font-size: 1.1em; font-size: 1.1em;
font-style: italic; } font-style: italic; }
.wp-block[data-align="left"] > .wp-block-table,
.wp-block[data-align="right"] > .wp-block-table,
.wp-block[data-align="center"] > .wp-block-table {
height: auto; }
.wp-block[data-align="left"] > .wp-block-table table,
.wp-block[data-align="right"] > .wp-block-table table,
.wp-block[data-align="center"] > .wp-block-table table {
width: auto; }
.wp-block[data-align="left"] > .wp-block-table td,
.wp-block[data-align="left"] > .wp-block-table th,
.wp-block[data-align="right"] > .wp-block-table td,
.wp-block[data-align="right"] > .wp-block-table th,
.wp-block[data-align="center"] > .wp-block-table td,
.wp-block[data-align="center"] > .wp-block-table th {
word-break: break-word; }
.wp-block[data-align="center"] > .wp-block-table {
text-align: initial; }
.wp-block[data-align="center"] > .wp-block-table table {
margin: 0 auto; }
.wp-block-table { .wp-block-table {
margin: 0; } margin: 0; }
.wp-block[data-align="left"] > .wp-block-table,
.wp-block[data-align="right"] > .wp-block-table,
.wp-block[data-align="center"] > .wp-block-table {
height: auto; }
.wp-block[data-align="left"] > .wp-block-table table,
.wp-block[data-align="right"] > .wp-block-table table,
.wp-block[data-align="center"] > .wp-block-table table {
width: auto; }
.wp-block[data-align="left"] > .wp-block-table td,
.wp-block[data-align="left"] > .wp-block-table th,
.wp-block[data-align="right"] > .wp-block-table td,
.wp-block[data-align="right"] > .wp-block-table th,
.wp-block[data-align="center"] > .wp-block-table td,
.wp-block[data-align="center"] > .wp-block-table th {
word-break: break-word; }
.wp-block[data-align="center"] > .wp-block-table {
text-align: initial; }
.wp-block[data-align="center"] > .wp-block-table table {
margin: 0 auto; }
.wp-block-table table { .wp-block-table table {
border-collapse: collapse; } border-collapse: collapse; }
.wp-block-table td, .wp-block-table td,
@ -1441,7 +1461,9 @@ ul.has-background.has-background {
cursor: pointer; cursor: pointer;
margin-top: 16px; margin-top: 16px;
transition: all 0.05s ease-in-out; transition: all 0.05s ease-in-out;
border: 1px solid transparent; } border: 1px solid transparent;
width: 100%;
background-color: #fff; }
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover { .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover {
border: 1px solid #007cba; border: 1px solid #007cba;
border: 1px solid var(--wp-admin-theme-color); } border: 1px solid var(--wp-admin-theme-color); }
@ -1524,17 +1546,66 @@ pre.wp-block-verse {
.editor-video-poster-control .components-button { .editor-video-poster-control .components-button {
margin-left: 8px; } margin-left: 8px; }
.wp-block[data-type="core/widget-area"] { .block-library-video-tracks-editor {
max-width: 700px; } z-index: 159990; }
.wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) { .block-library-video-tracks-editor > .components-popover__content {
width: 360px; }
.block-library-video-tracks-editor__track-list-track {
display: flex;
place-content: space-between;
align-items: baseline;
padding-right: 12px; }
.block-library-video-tracks-editor__single-track-editor-label-language {
display: flex;
margin-top: 12px; }
.block-library-video-tracks-editor__single-track-editor-label-language > .components-base-control {
width: 50%; }
.block-library-video-tracks-editor__single-track-editor-label-language > .components-base-control:first-child {
margin-left: 16px; }
.block-library-video-tracks-editor__single-track-editor-kind-select {
max-width: 240px; }
.block-library-video-tracks-editor__single-track-editor-buttons-container {
display: flex;
place-content: space-between;
margin-top: 32px; }
.block-library-video-tracks-editor__single-track-editor-edit-track-label {
margin-top: 4px;
margin-bottom: 12px;
color: #757575;
text-transform: uppercase;
font-size: 11px;
font-weight: 500;
display: block; }
.block-library-video-tracks-editor > .components-popover__content > div {
padding: 0; } padding: 0; }
.wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) > .components-panel__body-title {
padding: 0;
margin: 0; }
.wp-block-widget-area > .components-panel__body > .block-editor-inner-blocks { .block-library-video-tracks-editor__track-list .components-menu-group__label,
padding-top: 24px; } .block-library-video-tracks-editor__add-tracks-container .components-menu-group__label {
padding: 0; }
.block-library-video-tracks-editor__single-track-editor,
.block-library-video-tracks-editor__track-list,
.block-library-video-tracks-editor__add-tracks-container {
padding: 12px; }
.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label {
margin-bottom: 4px; }
.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field {
margin-bottom: 12px; }
.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input {
margin-right: 0; }
.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label {
margin-bottom: 4px; }
.editor-styles-wrapper .wp-block.wp-block-query-loop { .editor-styles-wrapper .wp-block.wp-block-query-loop {
max-width: 100%; } max-width: 100%; }
@ -1542,6 +1613,26 @@ pre.wp-block-verse {
.editor-styles-wrapper .wp-block.wp-block-query { .editor-styles-wrapper .wp-block.wp-block-query {
max-width: 100%; } max-width: 100%; }
div[data-type="core/post-featured-image"] .post-featured-image_placeholder {
display: flex;
flex-direction: row;
align-items: flex-start;
border-radius: 2px;
background-color: #fff;
box-shadow: inset 0 0 0 1px #1e1e1e;
padding: 12px; }
div[data-type="core/post-featured-image"] .post-featured-image_placeholder svg {
margin-left: 12px; }
div[data-type="core/post-featured-image"] .post-featured-image_placeholder p {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px;
margin: 0; }
div[data-type="core/post-featured-image"] img {
max-width: 100%;
height: auto;
display: block; }
/** /**
* Import styles from internal editor components used by the blocks. * Import styles from internal editor components used by the blocks.
*/ */

File diff suppressed because one or more lines are too long

View File

@ -183,6 +183,16 @@ div[data-type="core/button"] {
padding: 0 !important; } padding: 0 !important; }
.wp-block-cover.components-placeholder h2 { .wp-block-cover.components-placeholder h2 {
color: inherit; } color: inherit; }
.wp-block-cover.is-transient::before {
background-color: #fff;
opacity: 0.3; }
.wp-block-cover .components-spinner {
position: absolute;
z-index: 1;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: 0; }
.wp-block-cover .block-editor-block-list__layout { .wp-block-cover .block-editor-block-list__layout {
width: 100%; } width: 100%; }
.wp-block-cover .wp-block-cover__inner-container { .wp-block-cover .wp-block-cover__inner-container {
@ -914,8 +924,7 @@ ul.has-background.has-background {
border-radius: 4px; } border-radius: 4px; }
.block-library-colors-selector .block-library-colors-selector__state-selection { .block-library-colors-selector .block-library-colors-selector__state-selection {
margin-left: auto; margin-left: auto;
margin-right: auto; } margin-right: auto;
.block-library-colors-selector .block-library-colors-selector__state-selection {
border-radius: 11px; border-radius: 11px;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
width: 22px; width: 22px;
@ -956,9 +965,6 @@ ul.has-background.has-background {
vertical-align: middle; vertical-align: middle;
margin-right: 7px; } margin-right: 7px; }
.wp-block-navigation-placeholder .components-custom-select-control__label {
margin-bottom: 1rem; }
.wp-block-navigation-placeholder .components-custom-select-control__button { .wp-block-navigation-placeholder .components-custom-select-control__button {
height: auto; height: auto;
padding: 0.375rem 0.75rem 0.375rem 1.5rem; padding: 0.375rem 0.75rem 0.375rem 1.5rem;
@ -977,6 +983,7 @@ ul.has-background.has-background {
border-top: 1px solid #757575; } border-top: 1px solid #757575; }
.wp-block-navigation-placeholder .components-custom-select-control__label { .wp-block-navigation-placeholder .components-custom-select-control__label {
margin-bottom: 1rem;
font-size: 13px; font-size: 13px;
font-weight: normal; } font-weight: normal; }
@ -1288,8 +1295,34 @@ ul.has-background.has-background {
.editor-styles-wrapper .wp-block-social-links { .editor-styles-wrapper .wp-block-social-links {
padding: 0; } padding: 0; }
.wp-block-social-links__social-placeholder {
display: flex; }
.wp-block-social-links__social-placeholder .wp-block-social-link {
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0 8px 8px 0;
width: 36px;
height: 36px;
border-radius: 50%;
opacity: 0.8; }
.is-style-logos-only .wp-block-social-links__social-placeholder .wp-block-social-link::before {
content: "";
display: block;
width: 18px;
height: 18px;
border-radius: 50%;
opacity: 0.8;
background: currentColor; }
.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-block-social-link {
border-radius: 9999px;
padding-left: 28px;
padding-right: 28px; }
.wp-block-social-links .block-list-appender { .wp-block-social-links .block-list-appender {
margin: 0; margin: 0 0 8px 0;
display: flex; display: flex;
align-items: center; } align-items: center; }
@ -1302,17 +1335,6 @@ ul.has-background.has-background {
[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links { [data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links {
min-height: 36px; } min-height: 36px; }
[data-type="core/social-links"] .wp-social-link__is-incomplete {
transition: transform 0.1s ease;
transform-origin: center center; }
[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete {
opacity: 0;
transform: scale(0);
width: 0;
padding: 0;
margin-right: 0; }
.wp-social-link.wp-social-link__is-incomplete { .wp-social-link.wp-social-link__is-incomplete {
opacity: 0.5; } opacity: 0.5; }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
@ -1358,29 +1380,27 @@ ul.has-background.has-background {
font-size: 1.1em; font-size: 1.1em;
font-style: italic; } font-style: italic; }
.wp-block[data-align="left"] > .wp-block-table,
.wp-block[data-align="right"] > .wp-block-table,
.wp-block[data-align="center"] > .wp-block-table {
height: auto; }
.wp-block[data-align="left"] > .wp-block-table table,
.wp-block[data-align="right"] > .wp-block-table table,
.wp-block[data-align="center"] > .wp-block-table table {
width: auto; }
.wp-block[data-align="left"] > .wp-block-table td,
.wp-block[data-align="left"] > .wp-block-table th,
.wp-block[data-align="right"] > .wp-block-table td,
.wp-block[data-align="right"] > .wp-block-table th,
.wp-block[data-align="center"] > .wp-block-table td,
.wp-block[data-align="center"] > .wp-block-table th {
word-break: break-word; }
.wp-block[data-align="center"] > .wp-block-table {
text-align: initial; }
.wp-block[data-align="center"] > .wp-block-table table {
margin: 0 auto; }
.wp-block-table { .wp-block-table {
margin: 0; } margin: 0; }
.wp-block[data-align="left"] > .wp-block-table,
.wp-block[data-align="right"] > .wp-block-table,
.wp-block[data-align="center"] > .wp-block-table {
height: auto; }
.wp-block[data-align="left"] > .wp-block-table table,
.wp-block[data-align="right"] > .wp-block-table table,
.wp-block[data-align="center"] > .wp-block-table table {
width: auto; }
.wp-block[data-align="left"] > .wp-block-table td,
.wp-block[data-align="left"] > .wp-block-table th,
.wp-block[data-align="right"] > .wp-block-table td,
.wp-block[data-align="right"] > .wp-block-table th,
.wp-block[data-align="center"] > .wp-block-table td,
.wp-block[data-align="center"] > .wp-block-table th {
word-break: break-word; }
.wp-block[data-align="center"] > .wp-block-table {
text-align: initial; }
.wp-block[data-align="center"] > .wp-block-table table {
margin: 0 auto; }
.wp-block-table table { .wp-block-table table {
border-collapse: collapse; } border-collapse: collapse; }
.wp-block-table td, .wp-block-table td,
@ -1446,7 +1466,9 @@ ul.has-background.has-background {
cursor: pointer; cursor: pointer;
margin-top: 16px; margin-top: 16px;
transition: all 0.05s ease-in-out; transition: all 0.05s ease-in-out;
border: 1px solid transparent; } border: 1px solid transparent;
width: 100%;
background-color: #fff; }
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover { .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover {
border: 1px solid #007cba; border: 1px solid #007cba;
border: 1px solid var(--wp-admin-theme-color); } border: 1px solid var(--wp-admin-theme-color); }
@ -1529,17 +1551,66 @@ pre.wp-block-verse {
.editor-video-poster-control .components-button { .editor-video-poster-control .components-button {
margin-right: 8px; } margin-right: 8px; }
.wp-block[data-type="core/widget-area"] { .block-library-video-tracks-editor {
max-width: 700px; } z-index: 159990; }
.wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) { .block-library-video-tracks-editor > .components-popover__content {
width: 360px; }
.block-library-video-tracks-editor__track-list-track {
display: flex;
place-content: space-between;
align-items: baseline;
padding-left: 12px; }
.block-library-video-tracks-editor__single-track-editor-label-language {
display: flex;
margin-top: 12px; }
.block-library-video-tracks-editor__single-track-editor-label-language > .components-base-control {
width: 50%; }
.block-library-video-tracks-editor__single-track-editor-label-language > .components-base-control:first-child {
margin-right: 16px; }
.block-library-video-tracks-editor__single-track-editor-kind-select {
max-width: 240px; }
.block-library-video-tracks-editor__single-track-editor-buttons-container {
display: flex;
place-content: space-between;
margin-top: 32px; }
.block-library-video-tracks-editor__single-track-editor-edit-track-label {
margin-top: 4px;
margin-bottom: 12px;
color: #757575;
text-transform: uppercase;
font-size: 11px;
font-weight: 500;
display: block; }
.block-library-video-tracks-editor > .components-popover__content > div {
padding: 0; } padding: 0; }
.wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) > .components-panel__body-title {
padding: 0;
margin: 0; }
.wp-block-widget-area > .components-panel__body > .block-editor-inner-blocks { .block-library-video-tracks-editor__track-list .components-menu-group__label,
padding-top: 24px; } .block-library-video-tracks-editor__add-tracks-container .components-menu-group__label {
padding: 0; }
.block-library-video-tracks-editor__single-track-editor,
.block-library-video-tracks-editor__track-list,
.block-library-video-tracks-editor__add-tracks-container {
padding: 12px; }
.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label {
margin-bottom: 4px; }
.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field {
margin-bottom: 12px; }
.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input {
margin-left: 0; }
.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label {
margin-bottom: 4px; }
.editor-styles-wrapper .wp-block.wp-block-query-loop { .editor-styles-wrapper .wp-block.wp-block-query-loop {
max-width: 100%; } max-width: 100%; }
@ -1547,6 +1618,26 @@ pre.wp-block-verse {
.editor-styles-wrapper .wp-block.wp-block-query { .editor-styles-wrapper .wp-block.wp-block-query {
max-width: 100%; } max-width: 100%; }
div[data-type="core/post-featured-image"] .post-featured-image_placeholder {
display: flex;
flex-direction: row;
align-items: flex-start;
border-radius: 2px;
background-color: #fff;
box-shadow: inset 0 0 0 1px #1e1e1e;
padding: 12px; }
div[data-type="core/post-featured-image"] .post-featured-image_placeholder svg {
margin-right: 12px; }
div[data-type="core/post-featured-image"] .post-featured-image_placeholder p {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px;
margin: 0; }
div[data-type="core/post-featured-image"] img {
max-width: 100%;
height: auto;
display: block; }
/** /**
* Import styles from internal editor components used by the blocks. * Import styles from internal editor components used by the blocks.
*/ */

File diff suppressed because one or more lines are too long

View File

@ -104,7 +104,7 @@
.wp-block-button__link.no-border-radius { .wp-block-button__link.no-border-radius {
border-radius: 0 !important; } border-radius: 0 !important; }
.is-style-outline .wp-block-button__link, .is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline { .wp-block-button__link.is-style-outline {
color: #32373c; color: #32373c;
background-color: transparent; background-color: transparent;
@ -162,18 +162,30 @@
.wp-block-columns { .wp-block-columns {
display: flex; display: flex;
margin-bottom: 1.75em; margin-bottom: 1.75em;
flex-wrap: wrap; } flex-wrap: wrap;
/**
* All Columns Alignment
*/ }
@media (min-width: 782px) { @media (min-width: 782px) {
.wp-block-columns { .wp-block-columns {
flex-wrap: nowrap; } } flex-wrap: nowrap; } }
.wp-block-columns.has-background { .wp-block-columns.has-background {
padding: 1.25em 2.375em; } padding: 1.25em 2.375em; }
.wp-block-columns.are-vertically-aligned-top {
align-items: flex-start; }
.wp-block-columns.are-vertically-aligned-center {
align-items: center; }
.wp-block-columns.are-vertically-aligned-bottom {
align-items: flex-end; }
.wp-block-column { .wp-block-column {
flex-grow: 1; flex-grow: 1;
min-width: 0; min-width: 0;
word-break: break-word; word-break: break-word;
overflow-wrap: break-word; } overflow-wrap: break-word;
/**
* Individual Column Alignment
*/ }
@media (max-width: 599px) { @media (max-width: 599px) {
.wp-block-column { .wp-block-column {
flex-basis: 100% !important; } } flex-basis: 100% !important; } }
@ -191,34 +203,15 @@
flex-grow: 0; } flex-grow: 0; }
.wp-block-column:not(:first-child) { .wp-block-column:not(:first-child) {
margin-right: 2em; } } margin-right: 2em; } }
.wp-block-column.is-vertically-aligned-top {
/** align-self: flex-start; }
* All Columns Alignment .wp-block-column.is-vertically-aligned-center {
*/ -ms-grid-row-align: center;
.wp-block-columns.are-vertically-aligned-top { align-self: center; }
align-items: flex-start; } .wp-block-column.is-vertically-aligned-bottom {
align-self: flex-end; }
.wp-block-columns.are-vertically-aligned-center { .wp-block-column.is-vertically-aligned-top, .wp-block-column.is-vertically-aligned-center, .wp-block-column.is-vertically-aligned-bottom {
align-items: center; } width: 100%; }
.wp-block-columns.are-vertically-aligned-bottom {
align-items: flex-end; }
/**
* Individual Column Alignment
*/
.wp-block-column.is-vertically-aligned-top {
align-self: flex-start; }
.wp-block-column.is-vertically-aligned-center {
-ms-grid-row-align: center;
align-self: center; }
.wp-block-column.is-vertically-aligned-bottom {
align-self: flex-end; }
.wp-block-column.is-vertically-aligned-top, .wp-block-column.is-vertically-aligned-center, .wp-block-column.is-vertically-aligned-bottom {
width: 100%; }
.wp-block-cover-image, .wp-block-cover-image,
.wp-block-cover { .wp-block-cover {
@ -244,13 +237,14 @@
.wp-block-cover-image.has-parallax, .wp-block-cover-image.has-parallax,
.wp-block-cover.has-parallax { .wp-block-cover.has-parallax {
background-attachment: scroll; } } background-attachment: scroll; } }
.wp-block-cover-image.has-background-dim, .wp-block-cover-image.is-repeated,
.wp-block-cover.has-background-dim { .wp-block-cover.is-repeated {
background-color: #000; } background-repeat: repeat;
.wp-block-cover-image.has-background-dim::before, background-size: auto; }
.wp-block-cover.has-background-dim::before { .wp-block-cover-image.has-background-dim::before,
content: ""; .wp-block-cover.has-background-dim::before {
background-color: inherit; } content: "";
background-color: inherit; }
.wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,
.wp-block-cover-image .wp-block-cover__gradient-background, .wp-block-cover-image .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
@ -260,70 +254,56 @@
right: 0; right: 0;
bottom: 0; bottom: 0;
left: 0; left: 0;
z-index: 1; } z-index: 1;
.wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,
.wp-block-cover-image .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
.wp-block-cover .wp-block-cover__gradient-background {
opacity: 0.5; } opacity: 0.5; }
.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before {
opacity: 0.1; }
.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background {
opacity: 0.1; } opacity: 0.1; }
.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before {
opacity: 0.2; }
.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background {
opacity: 0.2; } opacity: 0.2; }
.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before {
opacity: 0.3; }
.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background {
opacity: 0.3; } opacity: 0.3; }
.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before {
opacity: 0.4; }
.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background {
opacity: 0.4; } opacity: 0.4; }
.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before {
opacity: 0.5; }
.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background {
opacity: 0.5; } opacity: 0.5; }
.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before {
opacity: 0.6; }
.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background {
opacity: 0.6; } opacity: 0.6; }
.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before {
opacity: 0.7; }
.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background {
opacity: 0.7; } opacity: 0.7; }
.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before {
opacity: 0.8; }
.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background {
opacity: 0.8; } opacity: 0.8; }
.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before {
opacity: 0.9; }
.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background {
opacity: 0.9; } opacity: 0.9; }
.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before {
opacity: 1; }
.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background {
opacity: 1; } opacity: 1; }
.wp-block-cover-image.alignleft, .wp-block-cover-image.alignright, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
@ -348,6 +328,7 @@
display: flex; } display: flex; }
.wp-block-cover-image .wp-block-cover__inner-container, .wp-block-cover-image .wp-block-cover__inner-container,
.wp-block-cover .wp-block-cover__inner-container { .wp-block-cover .wp-block-cover__inner-container {
width: 100%;
z-index: 1; z-index: 1;
color: #fff; } color: #fff; }
.wp-block-cover-image p:not(.has-text-color), .wp-block-cover-image p:not(.has-text-color),
@ -519,8 +500,8 @@ section.wp-block-cover-image > h2,
.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { .wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before {
padding-top: 100%; } padding-top: 100%; }
.wp-embed-responsive .wp-embed-aspect-9-6 .wp-block-embed__wrapper::before { .wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before {
padding-top: 66.66%; } padding-top: 177.77%; }
.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { .wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before {
padding-top: 200%; } padding-top: 200%; }
@ -563,7 +544,13 @@ section.wp-block-cover-image > h2,
flex-grow: 1; flex-grow: 1;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
position: relative; } position: relative;
width: calc(50% - 1em); }
.wp-block-gallery .blocks-gallery-image:nth-of-type(even),
.wp-block-gallery .blocks-gallery-item:nth-of-type(even),
.blocks-gallery-grid .blocks-gallery-image:nth-of-type(even),
.blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) {
margin-left: 0; }
.wp-block-gallery .blocks-gallery-image figure, .wp-block-gallery .blocks-gallery-image figure,
.wp-block-gallery .blocks-gallery-item figure, .wp-block-gallery .blocks-gallery-item figure,
.blocks-gallery-grid .blocks-gallery-image figure, .blocks-gallery-grid .blocks-gallery-image figure,
@ -584,11 +571,7 @@ section.wp-block-cover-image > h2,
.blocks-gallery-grid .blocks-gallery-item img { .blocks-gallery-grid .blocks-gallery-item img {
display: block; display: block;
max-width: 100%; max-width: 100%;
height: auto; } height: auto;
.wp-block-gallery .blocks-gallery-image img,
.wp-block-gallery .blocks-gallery-item img,
.blocks-gallery-grid .blocks-gallery-image img,
.blocks-gallery-grid .blocks-gallery-item img {
width: 100%; } width: 100%; }
@supports ((position: -webkit-sticky) or (position: sticky)) { @supports ((position: -webkit-sticky) or (position: sticky)) {
.wp-block-gallery .blocks-gallery-image img, .wp-block-gallery .blocks-gallery-image img,
@ -610,12 +593,16 @@ section.wp-block-cover-image > h2,
text-align: center; text-align: center;
font-size: 0.8em; font-size: 0.8em;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent);
box-sizing: border-box; } box-sizing: border-box;
margin: 0; }
.wp-block-gallery .blocks-gallery-image figcaption img, .wp-block-gallery .blocks-gallery-image figcaption img,
.wp-block-gallery .blocks-gallery-item figcaption img, .wp-block-gallery .blocks-gallery-item figcaption img,
.blocks-gallery-grid .blocks-gallery-image figcaption img, .blocks-gallery-grid .blocks-gallery-image figcaption img,
.blocks-gallery-grid .blocks-gallery-item figcaption img { .blocks-gallery-grid .blocks-gallery-item figcaption img {
display: inline; } display: inline; }
.wp-block-gallery figcaption,
.blocks-gallery-grid figcaption {
flex-grow: 1; }
.wp-block-gallery.is-cropped .blocks-gallery-image a, .wp-block-gallery.is-cropped .blocks-gallery-image a,
.wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-image img,
.wp-block-gallery.is-cropped .blocks-gallery-item a, .wp-block-gallery.is-cropped .blocks-gallery-item a,
@ -637,16 +624,6 @@ section.wp-block-cover-image > h2,
height: 100%; height: 100%;
flex: 1; flex: 1;
object-fit: cover; } } object-fit: cover; } }
.wp-block-gallery .blocks-gallery-image,
.wp-block-gallery .blocks-gallery-item,
.blocks-gallery-grid .blocks-gallery-image,
.blocks-gallery-grid .blocks-gallery-item {
width: calc(50% - 1em); }
.wp-block-gallery .blocks-gallery-image:nth-of-type(even),
.wp-block-gallery .blocks-gallery-item:nth-of-type(even),
.blocks-gallery-grid .blocks-gallery-image:nth-of-type(even),
.blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) {
margin-left: 0; }
.wp-block-gallery.columns-1 .blocks-gallery-image, .wp-block-gallery.columns-1 .blocks-gallery-image,
.wp-block-gallery.columns-1 .blocks-gallery-item, .wp-block-gallery.columns-1 .blocks-gallery-item,
.blocks-gallery-grid.columns-1 .blocks-gallery-image, .blocks-gallery-grid.columns-1 .blocks-gallery-image,
@ -865,15 +842,25 @@ h6.has-background {
@media (min-width: 600px) { @media (min-width: 600px) {
.wp-block-latest-posts.columns-2 li { .wp-block-latest-posts.columns-2 li {
width: calc((100% / 2) - 1.25em); } width: calc((100% / 2) - 1.25em + (1.25em / 2)); }
.wp-block-latest-posts.columns-2 li:nth-child(2n) {
margin-left: 0; }
.wp-block-latest-posts.columns-3 li { .wp-block-latest-posts.columns-3 li {
width: calc((100% / 3) - 1.25em); } width: calc((100% / 3) - 1.25em + (1.25em / 3)); }
.wp-block-latest-posts.columns-3 li:nth-child(3n) {
margin-left: 0; }
.wp-block-latest-posts.columns-4 li { .wp-block-latest-posts.columns-4 li {
width: calc((100% / 4) - 1.25em); } width: calc((100% / 4) - 1.25em + (1.25em / 4)); }
.wp-block-latest-posts.columns-4 li:nth-child(4n) {
margin-left: 0; }
.wp-block-latest-posts.columns-5 li { .wp-block-latest-posts.columns-5 li {
width: calc((100% / 5) - 1.25em); } width: calc((100% / 5) - 1.25em + (1.25em / 5)); }
.wp-block-latest-posts.columns-5 li:nth-child(5n) {
margin-left: 0; }
.wp-block-latest-posts.columns-6 li { .wp-block-latest-posts.columns-6 li {
width: calc((100% / 6) - 1.25em); } } width: calc((100% / 6) - 1.25em + (1.25em / 6)); }
.wp-block-latest-posts.columns-6 li:nth-child(6n) {
margin-left: 0; } }
.wp-block-latest-posts__post-date, .wp-block-latest-posts__post-date,
.wp-block-latest-posts__post-author { .wp-block-latest-posts__post-author {
@ -1055,6 +1042,8 @@ ul.has-background {
position: absolute; position: absolute;
right: 0; right: 0;
top: 100%; top: 100%;
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content; width: fit-content;
z-index: 2; z-index: 2;
opacity: 0; opacity: 0;
@ -1314,6 +1303,7 @@ p.has-text-color a {
justify-content: flex-start; justify-content: flex-start;
padding-right: 0; padding-right: 0;
padding-left: 0; padding-left: 0;
text-indent: 0;
margin-right: 0; } margin-right: 0; }
.wp-block-social-links .wp-social-link a, .wp-block-social-links .wp-social-link a,
.wp-block-social-links .wp-social-link a:hover { .wp-block-social-links .wp-social-link a:hover {
@ -1325,7 +1315,7 @@ p.has-text-color a {
display: block; display: block;
width: 36px; width: 36px;
height: 36px; height: 36px;
border-radius: 36px; border-radius: 9999px;
margin: 0 0 8px 8px; margin: 0 0 8px 8px;
transition: transform 0.1s ease; } transition: transform 0.1s ease; }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
@ -1708,6 +1698,9 @@ p.wp-block-subhead {
margin-top: 0.5em; margin-top: 0.5em;
margin-bottom: 1em; } margin-bottom: 1em; }
.wp-block-post-featured-image a {
display: inline-block; }
:root { :root {
/* stylelint-disable function-comma-space-after */ /* stylelint-disable function-comma-space-after */
/* stylelint-enable function-comma-space-after */ } /* stylelint-enable function-comma-space-after */ }

File diff suppressed because one or more lines are too long

View File

@ -105,7 +105,7 @@
.wp-block-button__link.no-border-radius { .wp-block-button__link.no-border-radius {
border-radius: 0 !important; } border-radius: 0 !important; }
.is-style-outline .wp-block-button__link, .is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline { .wp-block-button__link.is-style-outline {
color: #32373c; color: #32373c;
background-color: transparent; background-color: transparent;
@ -169,18 +169,30 @@
.wp-block-columns { .wp-block-columns {
display: flex; display: flex;
margin-bottom: 1.75em; margin-bottom: 1.75em;
flex-wrap: wrap; } flex-wrap: wrap;
/**
* All Columns Alignment
*/ }
@media (min-width: 782px) { @media (min-width: 782px) {
.wp-block-columns { .wp-block-columns {
flex-wrap: nowrap; } } flex-wrap: nowrap; } }
.wp-block-columns.has-background { .wp-block-columns.has-background {
padding: 1.25em 2.375em; } padding: 1.25em 2.375em; }
.wp-block-columns.are-vertically-aligned-top {
align-items: flex-start; }
.wp-block-columns.are-vertically-aligned-center {
align-items: center; }
.wp-block-columns.are-vertically-aligned-bottom {
align-items: flex-end; }
.wp-block-column { .wp-block-column {
flex-grow: 1; flex-grow: 1;
min-width: 0; min-width: 0;
word-break: break-word; word-break: break-word;
overflow-wrap: break-word; } overflow-wrap: break-word;
/**
* Individual Column Alignment
*/ }
@media (max-width: 599px) { @media (max-width: 599px) {
.wp-block-column { .wp-block-column {
flex-basis: 100% !important; } } flex-basis: 100% !important; } }
@ -198,34 +210,15 @@
flex-grow: 0; } flex-grow: 0; }
.wp-block-column:not(:first-child) { .wp-block-column:not(:first-child) {
margin-left: 2em; } } margin-left: 2em; } }
.wp-block-column.is-vertically-aligned-top {
/** align-self: flex-start; }
* All Columns Alignment .wp-block-column.is-vertically-aligned-center {
*/ -ms-grid-row-align: center;
.wp-block-columns.are-vertically-aligned-top { align-self: center; }
align-items: flex-start; } .wp-block-column.is-vertically-aligned-bottom {
align-self: flex-end; }
.wp-block-columns.are-vertically-aligned-center { .wp-block-column.is-vertically-aligned-top, .wp-block-column.is-vertically-aligned-center, .wp-block-column.is-vertically-aligned-bottom {
align-items: center; } width: 100%; }
.wp-block-columns.are-vertically-aligned-bottom {
align-items: flex-end; }
/**
* Individual Column Alignment
*/
.wp-block-column.is-vertically-aligned-top {
align-self: flex-start; }
.wp-block-column.is-vertically-aligned-center {
-ms-grid-row-align: center;
align-self: center; }
.wp-block-column.is-vertically-aligned-bottom {
align-self: flex-end; }
.wp-block-column.is-vertically-aligned-top, .wp-block-column.is-vertically-aligned-center, .wp-block-column.is-vertically-aligned-bottom {
width: 100%; }
.wp-block-cover-image, .wp-block-cover-image,
.wp-block-cover { .wp-block-cover {
@ -251,13 +244,14 @@
.wp-block-cover-image.has-parallax, .wp-block-cover-image.has-parallax,
.wp-block-cover.has-parallax { .wp-block-cover.has-parallax {
background-attachment: scroll; } } background-attachment: scroll; } }
.wp-block-cover-image.has-background-dim, .wp-block-cover-image.is-repeated,
.wp-block-cover.has-background-dim { .wp-block-cover.is-repeated {
background-color: #000; } background-repeat: repeat;
.wp-block-cover-image.has-background-dim::before, background-size: auto; }
.wp-block-cover.has-background-dim::before { .wp-block-cover-image.has-background-dim::before,
content: ""; .wp-block-cover.has-background-dim::before {
background-color: inherit; } content: "";
background-color: inherit; }
.wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,
.wp-block-cover-image .wp-block-cover__gradient-background, .wp-block-cover-image .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
@ -267,70 +261,56 @@
left: 0; left: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
z-index: 1; } z-index: 1;
.wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,
.wp-block-cover-image .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
.wp-block-cover .wp-block-cover__gradient-background {
opacity: 0.5; } opacity: 0.5; }
.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before {
opacity: 0.1; }
.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background {
opacity: 0.1; } opacity: 0.1; }
.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before {
opacity: 0.2; }
.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background {
opacity: 0.2; } opacity: 0.2; }
.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before {
opacity: 0.3; }
.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background {
opacity: 0.3; } opacity: 0.3; }
.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before {
opacity: 0.4; }
.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background {
opacity: 0.4; } opacity: 0.4; }
.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before {
opacity: 0.5; }
.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background {
opacity: 0.5; } opacity: 0.5; }
.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before {
opacity: 0.6; }
.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background {
opacity: 0.6; } opacity: 0.6; }
.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before {
opacity: 0.7; }
.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background {
opacity: 0.7; } opacity: 0.7; }
.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before {
opacity: 0.8; }
.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background {
opacity: 0.8; } opacity: 0.8; }
.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before {
opacity: 0.9; }
.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background {
opacity: 0.9; } opacity: 0.9; }
.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before, .wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before {
opacity: 1; }
.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background, .wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,
.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before,
.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background { .wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background {
opacity: 1; } opacity: 1; }
.wp-block-cover-image.alignleft, .wp-block-cover-image.alignright, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
@ -355,6 +335,7 @@
display: flex; } display: flex; }
.wp-block-cover-image .wp-block-cover__inner-container, .wp-block-cover-image .wp-block-cover__inner-container,
.wp-block-cover .wp-block-cover__inner-container { .wp-block-cover .wp-block-cover__inner-container {
width: 100%;
z-index: 1; z-index: 1;
color: #fff; } color: #fff; }
.wp-block-cover-image p:not(.has-text-color), .wp-block-cover-image p:not(.has-text-color),
@ -526,8 +507,8 @@ section.wp-block-cover-image > h2,
.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { .wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before {
padding-top: 100%; } padding-top: 100%; }
.wp-embed-responsive .wp-embed-aspect-9-6 .wp-block-embed__wrapper::before { .wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before {
padding-top: 66.66%; } padding-top: 177.77%; }
.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { .wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before {
padding-top: 200%; } padding-top: 200%; }
@ -571,7 +552,13 @@ section.wp-block-cover-image > h2,
flex-grow: 1; flex-grow: 1;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
position: relative; } position: relative;
width: calc(50% - 1em); }
.wp-block-gallery .blocks-gallery-image:nth-of-type(even),
.wp-block-gallery .blocks-gallery-item:nth-of-type(even),
.blocks-gallery-grid .blocks-gallery-image:nth-of-type(even),
.blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) {
margin-right: 0; }
.wp-block-gallery .blocks-gallery-image figure, .wp-block-gallery .blocks-gallery-image figure,
.wp-block-gallery .blocks-gallery-item figure, .wp-block-gallery .blocks-gallery-item figure,
.blocks-gallery-grid .blocks-gallery-image figure, .blocks-gallery-grid .blocks-gallery-image figure,
@ -592,11 +579,7 @@ section.wp-block-cover-image > h2,
.blocks-gallery-grid .blocks-gallery-item img { .blocks-gallery-grid .blocks-gallery-item img {
display: block; display: block;
max-width: 100%; max-width: 100%;
height: auto; } height: auto;
.wp-block-gallery .blocks-gallery-image img,
.wp-block-gallery .blocks-gallery-item img,
.blocks-gallery-grid .blocks-gallery-image img,
.blocks-gallery-grid .blocks-gallery-item img {
width: 100%; } width: 100%; }
@supports ((position: -webkit-sticky) or (position: sticky)) { @supports ((position: -webkit-sticky) or (position: sticky)) {
.wp-block-gallery .blocks-gallery-image img, .wp-block-gallery .blocks-gallery-image img,
@ -618,12 +601,16 @@ section.wp-block-cover-image > h2,
text-align: center; text-align: center;
font-size: 0.8em; font-size: 0.8em;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent);
box-sizing: border-box; } box-sizing: border-box;
margin: 0; }
.wp-block-gallery .blocks-gallery-image figcaption img, .wp-block-gallery .blocks-gallery-image figcaption img,
.wp-block-gallery .blocks-gallery-item figcaption img, .wp-block-gallery .blocks-gallery-item figcaption img,
.blocks-gallery-grid .blocks-gallery-image figcaption img, .blocks-gallery-grid .blocks-gallery-image figcaption img,
.blocks-gallery-grid .blocks-gallery-item figcaption img { .blocks-gallery-grid .blocks-gallery-item figcaption img {
display: inline; } display: inline; }
.wp-block-gallery figcaption,
.blocks-gallery-grid figcaption {
flex-grow: 1; }
.wp-block-gallery.is-cropped .blocks-gallery-image a, .wp-block-gallery.is-cropped .blocks-gallery-image a,
.wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-image img,
.wp-block-gallery.is-cropped .blocks-gallery-item a, .wp-block-gallery.is-cropped .blocks-gallery-item a,
@ -645,16 +632,6 @@ section.wp-block-cover-image > h2,
height: 100%; height: 100%;
flex: 1; flex: 1;
object-fit: cover; } } object-fit: cover; } }
.wp-block-gallery .blocks-gallery-image,
.wp-block-gallery .blocks-gallery-item,
.blocks-gallery-grid .blocks-gallery-image,
.blocks-gallery-grid .blocks-gallery-item {
width: calc(50% - 1em); }
.wp-block-gallery .blocks-gallery-image:nth-of-type(even),
.wp-block-gallery .blocks-gallery-item:nth-of-type(even),
.blocks-gallery-grid .blocks-gallery-image:nth-of-type(even),
.blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) {
margin-right: 0; }
.wp-block-gallery.columns-1 .blocks-gallery-image, .wp-block-gallery.columns-1 .blocks-gallery-image,
.wp-block-gallery.columns-1 .blocks-gallery-item, .wp-block-gallery.columns-1 .blocks-gallery-item,
.blocks-gallery-grid.columns-1 .blocks-gallery-image, .blocks-gallery-grid.columns-1 .blocks-gallery-image,
@ -879,15 +856,25 @@ h6.has-background {
@media (min-width: 600px) { @media (min-width: 600px) {
.wp-block-latest-posts.columns-2 li { .wp-block-latest-posts.columns-2 li {
width: calc((100% / 2) - 1.25em); } width: calc((100% / 2) - 1.25em + (1.25em / 2)); }
.wp-block-latest-posts.columns-2 li:nth-child(2n) {
margin-right: 0; }
.wp-block-latest-posts.columns-3 li { .wp-block-latest-posts.columns-3 li {
width: calc((100% / 3) - 1.25em); } width: calc((100% / 3) - 1.25em + (1.25em / 3)); }
.wp-block-latest-posts.columns-3 li:nth-child(3n) {
margin-right: 0; }
.wp-block-latest-posts.columns-4 li { .wp-block-latest-posts.columns-4 li {
width: calc((100% / 4) - 1.25em); } width: calc((100% / 4) - 1.25em + (1.25em / 4)); }
.wp-block-latest-posts.columns-4 li:nth-child(4n) {
margin-right: 0; }
.wp-block-latest-posts.columns-5 li { .wp-block-latest-posts.columns-5 li {
width: calc((100% / 5) - 1.25em); } width: calc((100% / 5) - 1.25em + (1.25em / 5)); }
.wp-block-latest-posts.columns-5 li:nth-child(5n) {
margin-right: 0; }
.wp-block-latest-posts.columns-6 li { .wp-block-latest-posts.columns-6 li {
width: calc((100% / 6) - 1.25em); } } width: calc((100% / 6) - 1.25em + (1.25em / 6)); }
.wp-block-latest-posts.columns-6 li:nth-child(6n) {
margin-right: 0; } }
.wp-block-latest-posts__post-date, .wp-block-latest-posts__post-date,
.wp-block-latest-posts__post-author { .wp-block-latest-posts__post-author {
@ -1081,6 +1068,8 @@ ul.has-background {
position: absolute; position: absolute;
left: 0; left: 0;
top: 100%; top: 100%;
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content; width: fit-content;
z-index: 2; z-index: 2;
opacity: 0; opacity: 0;
@ -1343,6 +1332,7 @@ p.has-text-color a {
justify-content: flex-start; justify-content: flex-start;
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
text-indent: 0;
margin-left: 0; } margin-left: 0; }
.wp-block-social-links .wp-social-link a, .wp-block-social-links .wp-social-link a,
.wp-block-social-links .wp-social-link a:hover { .wp-block-social-links .wp-social-link a:hover {
@ -1354,7 +1344,7 @@ p.has-text-color a {
display: block; display: block;
width: 36px; width: 36px;
height: 36px; height: 36px;
border-radius: 36px; border-radius: 9999px;
margin: 0 8px 8px 0; margin: 0 8px 8px 0;
transition: transform 0.1s ease; } transition: transform 0.1s ease; }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
@ -1737,6 +1727,9 @@ p.wp-block-subhead {
margin-top: 0.5em; margin-top: 0.5em;
margin-bottom: 1em; } margin-bottom: 1em; }
.wp-block-post-featured-image a {
display: inline-block; }
:root { :root {
/* stylelint-disable function-comma-space-after */ /* stylelint-disable function-comma-space-after */
/* stylelint-enable function-comma-space-after */ } /* stylelint-enable function-comma-space-after */ }

File diff suppressed because one or more lines are too long

View File

@ -125,20 +125,6 @@
box-shadow: 0 0 0 2px #007cba; box-shadow: 0 0 0 2px #007cba;
box-shadow: 0 0 0 2px var(--wp-admin-theme-color); } box-shadow: 0 0 0 2px var(--wp-admin-theme-color); }
.components-base-control {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px; }
.components-base-control .components-base-control__field {
margin-bottom: 8px; }
.components-panel__row .components-base-control .components-base-control__field {
margin-bottom: inherit; }
.components-base-control .components-base-control__label {
display: inline-block;
margin-bottom: 8px; }
.components-base-control .components-base-control__help {
margin-top: -8px;
font-style: italic; }
.components-button-group { .components-button-group {
display: inline-block; } display: inline-block; }
.components-button-group .components-button { .components-button-group .components-button {
@ -361,6 +347,7 @@
box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color);
outline: 2px solid transparent; } outline: 2px solid transparent; }
.components-button.is-pressed:hover:not(:disabled) { .components-button.is-pressed:hover:not(:disabled) {
color: #fff;
background: #1e1e1e; } background: #1e1e1e; }
.components-button svg { .components-button svg {
fill: currentColor; fill: currentColor;
@ -401,6 +388,7 @@
width: 24px; width: 24px;
height: 24px; height: 24px;
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none;
appearance: none; appearance: none;
transition: 0.1s border-color ease-in-out; } transition: 0.1s border-color ease-in-out; }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
@ -621,6 +609,40 @@ svg.components-checkbox-control__checked {
.components-circular-option-picker__dropdown-link-action .components-button { .components-circular-option-picker__dropdown-link-action .components-button {
line-height: 22px; } line-height: 22px; }
.components-color-edit__color-option-main-area {
display: flex;
align-items: center; }
.components-color-edit__color-option-main-area .components-circular-option-picker__option-wrapper {
margin: 8px; }
.components-color-edit__color-option.is-hover {
background: #e0e0e0; }
.components-color-edit__cancel-button {
float: left; }
.components-color-edit__color-option-color-name {
width: 100%; }
.components-color-edit__label-and-insert-container {
display: flex;
align-items: center;
justify-content: space-between; }
.components-color-edit__insert-button {
margin-top: -8px; }
.components-color-edit__hidden-control {
position: relative;
right: -9999px; }
.components-color-edit__color-option-color-name-input .components-base-control__field {
margin-bottom: 0;
margin-left: 8px; }
.components-color-edit__slug-input {
margin-right: 8px; }
.component-color-indicator { .component-color-indicator {
width: 25px; width: 25px;
height: 16px; height: 16px;
@ -903,6 +925,12 @@ input.components-combobox-control__input[type="text"] {
box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
outline: 2px solid transparent; } outline: 2px solid transparent; }
.components-combobox-control__reset.components-button {
display: flex;
height: 24px;
min-width: 24px;
padding: 0; }
.components-custom-gradient-picker__gradient-bar:not(.has-gradient) { .components-custom-gradient-picker__gradient-bar:not(.has-gradient) {
opacity: 0.4; } opacity: 0.4; }
@ -1961,7 +1989,8 @@ input.components-combobox-control__input[type="text"] {
.components-datetime__timezone { .components-datetime__timezone {
line-height: 30px; line-height: 30px;
margin-right: 4px; margin-right: 4px;
text-decoration: underline dotted; } -webkit-text-decoration: underline dotted;
text-decoration: underline dotted; }
.components-datetime__time-legend { .components-datetime__time-legend {
font-weight: 600; font-weight: 600;
@ -2165,13 +2194,6 @@ body.is-dragging-components-draggable {
.is-alternate .components-dropdown-menu__menu .components-menu-group + .components-menu-group { .is-alternate .components-dropdown-menu__menu .components-menu-group + .components-menu-group {
border-color: #1e1e1e; } border-color: #1e1e1e; }
.components-external-link__icon {
width: 1.4em;
height: 1.4em;
margin: -0.2em 0.1em 0;
vertical-align: middle;
fill: currentColor; }
.components-font-size-picker__controls { .components-font-size-picker__controls {
max-width: 248px; max-width: 248px;
display: flex; display: flex;
@ -2391,7 +2413,9 @@ body.is-dragging-components-draggable {
margin-bottom: 4px; } margin-bottom: 4px; }
.components-form-token-field__help { .components-form-token-field__help {
font-style: italic; } font-size: 12px;
font-style: normal;
color: #757575; }
.components-form-token-field__token { .components-form-token-field__token {
font-size: 13px; font-size: 13px;
@ -3315,7 +3339,8 @@ body.is-dragging-components-draggable {
.components-resizable-box__handle { .components-resizable-box__handle {
display: none; display: none;
width: 23px; width: 23px;
height: 23px; } height: 23px;
z-index: 2; }
.components-resizable-box__container.has-show-handle .components-resizable-box__handle { .components-resizable-box__container.has-show-handle .components-resizable-box__handle {
display: block; } display: block; }
@ -3355,9 +3380,6 @@ body.is-dragging-components-draggable {
.is-dark-theme .components-resizable-box__handle::after { .is-dark-theme .components-resizable-box__handle::after {
border-color: #ddd; } border-color: #ddd; }
.components-resizable-box__handle {
z-index: 2; }
.components-resizable-box__side-handle { .components-resizable-box__side-handle {
z-index: 2; } z-index: 2; }
@ -3507,6 +3529,8 @@ body.lockscroll {
cursor: pointer; } cursor: pointer; }
@media (min-width: 600px) { @media (min-width: 600px) {
.components-snackbar { .components-snackbar {
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content; } } width: fit-content; } }
.components-snackbar:focus { .components-snackbar:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba;
@ -3789,47 +3813,6 @@ body.lockscroll {
.components-text-control__input[type="number"]:-ms-input-placeholder { .components-text-control__input[type="number"]:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.65); } color: rgba(255, 255, 255, 0.65); }
.components-textarea-control__input {
width: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
padding: 6px 8px;
box-shadow: 0 0 0 transparent;
transition: box-shadow 0.1s linear;
border-radius: 2px;
border: 1px solid #757575;
/* Fonts smaller than 16px causes mobile safari to zoom. */
font-size: 16px;
/* Override core line-height. To be reviewed. */
line-height: normal; }
@media (prefers-reduced-motion: reduce) {
.components-textarea-control__input {
transition-duration: 0s; } }
@media (min-width: 600px) {
.components-textarea-control__input {
font-size: 13px;
/* Override core line-height. To be reviewed. */
line-height: normal; } }
.components-textarea-control__input:focus {
border-color: #007cba;
border-color: var(--wp-admin-theme-color);
box-shadow: 0 0 0 0.5px #007cba;
box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
outline: 2px solid transparent; }
.components-textarea-control__input::-webkit-input-placeholder {
color: rgba(30, 30, 30, 0.62); }
.components-textarea-control__input::-moz-placeholder {
opacity: 1;
color: rgba(30, 30, 30, 0.62); }
.components-textarea-control__input:-ms-input-placeholder {
color: rgba(30, 30, 30, 0.62); }
.is-dark-theme .components-textarea-control__input::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.65); }
.is-dark-theme .components-textarea-control__input::-moz-placeholder {
opacity: 1;
color: rgba(255, 255, 255, 0.65); }
.is-dark-theme .components-textarea-control__input:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.65); }
.components-tip { .components-tip {
display: flex; display: flex;
color: #757575; } color: #757575; }

File diff suppressed because one or more lines are too long

View File

@ -125,20 +125,6 @@
box-shadow: 0 0 0 2px #007cba; box-shadow: 0 0 0 2px #007cba;
box-shadow: 0 0 0 2px var(--wp-admin-theme-color); } box-shadow: 0 0 0 2px var(--wp-admin-theme-color); }
.components-base-control {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px; }
.components-base-control .components-base-control__field {
margin-bottom: 8px; }
.components-panel__row .components-base-control .components-base-control__field {
margin-bottom: inherit; }
.components-base-control .components-base-control__label {
display: inline-block;
margin-bottom: 8px; }
.components-base-control .components-base-control__help {
margin-top: -8px;
font-style: italic; }
.components-button-group { .components-button-group {
display: inline-block; } display: inline-block; }
.components-button-group .components-button { .components-button-group .components-button {
@ -361,6 +347,7 @@
box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color);
outline: 2px solid transparent; } outline: 2px solid transparent; }
.components-button.is-pressed:hover:not(:disabled) { .components-button.is-pressed:hover:not(:disabled) {
color: #fff;
background: #1e1e1e; } background: #1e1e1e; }
.components-button svg { .components-button svg {
fill: currentColor; fill: currentColor;
@ -401,6 +388,7 @@
width: 24px; width: 24px;
height: 24px; height: 24px;
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none;
appearance: none; appearance: none;
transition: 0.1s border-color ease-in-out; } transition: 0.1s border-color ease-in-out; }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
@ -621,6 +609,40 @@ svg.components-checkbox-control__checked {
.components-circular-option-picker__dropdown-link-action .components-button { .components-circular-option-picker__dropdown-link-action .components-button {
line-height: 22px; } line-height: 22px; }
.components-color-edit__color-option-main-area {
display: flex;
align-items: center; }
.components-color-edit__color-option-main-area .components-circular-option-picker__option-wrapper {
margin: 8px; }
.components-color-edit__color-option.is-hover {
background: #e0e0e0; }
.components-color-edit__cancel-button {
float: right; }
.components-color-edit__color-option-color-name {
width: 100%; }
.components-color-edit__label-and-insert-container {
display: flex;
align-items: center;
justify-content: space-between; }
.components-color-edit__insert-button {
margin-top: -8px; }
.components-color-edit__hidden-control {
position: relative;
left: -9999px; }
.components-color-edit__color-option-color-name-input .components-base-control__field {
margin-bottom: 0;
margin-right: 8px; }
.components-color-edit__slug-input {
margin-left: 8px; }
.component-color-indicator { .component-color-indicator {
width: 25px; width: 25px;
height: 16px; height: 16px;
@ -907,6 +929,12 @@ input.components-combobox-control__input[type="text"] {
box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
outline: 2px solid transparent; } outline: 2px solid transparent; }
.components-combobox-control__reset.components-button {
display: flex;
height: 24px;
min-width: 24px;
padding: 0; }
.components-custom-gradient-picker__gradient-bar:not(.has-gradient) { .components-custom-gradient-picker__gradient-bar:not(.has-gradient) {
opacity: 0.4; } opacity: 0.4; }
@ -1970,7 +1998,8 @@ input.components-combobox-control__input[type="text"] {
.components-datetime__timezone { .components-datetime__timezone {
line-height: 30px; line-height: 30px;
margin-left: 4px; margin-left: 4px;
text-decoration: underline dotted; } -webkit-text-decoration: underline dotted;
text-decoration: underline dotted; }
.components-datetime__time-legend { .components-datetime__time-legend {
font-weight: 600; font-weight: 600;
@ -2174,13 +2203,6 @@ body.is-dragging-components-draggable {
.is-alternate .components-dropdown-menu__menu .components-menu-group + .components-menu-group { .is-alternate .components-dropdown-menu__menu .components-menu-group + .components-menu-group {
border-color: #1e1e1e; } border-color: #1e1e1e; }
.components-external-link__icon {
width: 1.4em;
height: 1.4em;
margin: -0.2em 0.1em 0;
vertical-align: middle;
fill: currentColor; }
.components-font-size-picker__controls { .components-font-size-picker__controls {
max-width: 248px; max-width: 248px;
display: flex; display: flex;
@ -2400,7 +2422,9 @@ body.is-dragging-components-draggable {
margin-bottom: 4px; } margin-bottom: 4px; }
.components-form-token-field__help { .components-form-token-field__help {
font-style: italic; } font-size: 12px;
font-style: normal;
color: #757575; }
.components-form-token-field__token { .components-form-token-field__token {
font-size: 13px; font-size: 13px;
@ -3330,7 +3354,8 @@ body.is-dragging-components-draggable {
.components-resizable-box__handle { .components-resizable-box__handle {
display: none; display: none;
width: 23px; width: 23px;
height: 23px; } height: 23px;
z-index: 2; }
.components-resizable-box__container.has-show-handle .components-resizable-box__handle { .components-resizable-box__container.has-show-handle .components-resizable-box__handle {
display: block; } display: block; }
@ -3370,9 +3395,6 @@ body.is-dragging-components-draggable {
.is-dark-theme .components-resizable-box__handle::after { .is-dark-theme .components-resizable-box__handle::after {
border-color: #ddd; } border-color: #ddd; }
.components-resizable-box__handle {
z-index: 2; }
.components-resizable-box__side-handle { .components-resizable-box__side-handle {
z-index: 2; } z-index: 2; }
@ -3526,6 +3548,8 @@ body.lockscroll {
cursor: pointer; } cursor: pointer; }
@media (min-width: 600px) { @media (min-width: 600px) {
.components-snackbar { .components-snackbar {
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content; } } width: fit-content; } }
.components-snackbar:focus { .components-snackbar:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba;
@ -3810,47 +3834,6 @@ body.lockscroll {
.components-text-control__input[type="number"]:-ms-input-placeholder { .components-text-control__input[type="number"]:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.65); } color: rgba(255, 255, 255, 0.65); }
.components-textarea-control__input {
width: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
padding: 6px 8px;
box-shadow: 0 0 0 transparent;
transition: box-shadow 0.1s linear;
border-radius: 2px;
border: 1px solid #757575;
/* Fonts smaller than 16px causes mobile safari to zoom. */
font-size: 16px;
/* Override core line-height. To be reviewed. */
line-height: normal; }
@media (prefers-reduced-motion: reduce) {
.components-textarea-control__input {
transition-duration: 0s; } }
@media (min-width: 600px) {
.components-textarea-control__input {
font-size: 13px;
/* Override core line-height. To be reviewed. */
line-height: normal; } }
.components-textarea-control__input:focus {
border-color: #007cba;
border-color: var(--wp-admin-theme-color);
box-shadow: 0 0 0 0.5px #007cba;
box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
outline: 2px solid transparent; }
.components-textarea-control__input::-webkit-input-placeholder {
color: rgba(30, 30, 30, 0.62); }
.components-textarea-control__input::-moz-placeholder {
opacity: 1;
color: rgba(30, 30, 30, 0.62); }
.components-textarea-control__input:-ms-input-placeholder {
color: rgba(30, 30, 30, 0.62); }
.is-dark-theme .components-textarea-control__input::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.65); }
.is-dark-theme .components-textarea-control__input::-moz-placeholder {
opacity: 1;
color: rgba(255, 255, 255, 0.65); }
.is-dark-theme .components-textarea-control__input:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.65); }
.components-tip { .components-tip {
display: flex; display: flex;
color: #757575; } color: #757575; }

File diff suppressed because one or more lines are too long

View File

@ -175,7 +175,7 @@ html.interface-interface-skeleton__html-container {
.interface-interface-skeleton { .interface-interface-skeleton {
display: flex; display: flex;
flex-direction: column; flex-direction: row;
height: auto; height: auto;
max-height: 100%; max-height: 100%;
position: fixed; position: fixed;
@ -189,6 +189,11 @@ html.interface-interface-skeleton__html-container {
.is-fullscreen-mode .interface-interface-skeleton { .is-fullscreen-mode .interface-interface-skeleton {
top: 0; } } top: 0; } }
.interface-interface-skeleton__editor {
display: flex;
flex-direction: column;
flex-grow: 1; }
.interface-interface-skeleton { .interface-interface-skeleton {
/* Set left position when auto-fold is not on the body element. */ /* Set left position when auto-fold is not on the body element. */
right: 0; } right: 0; }
@ -284,6 +289,11 @@ body.is-fullscreen-mode .interface-interface-skeleton {
flex-shrink: 0; flex-shrink: 0;
border-top: 1px solid #e0e0e0; border-top: 1px solid #e0e0e0;
color: #1e1e1e; color: #1e1e1e;
position: fixed;
bottom: 0;
width: 100%;
background-color: #fff;
z-index: 90;
display: none; } display: none; }
@media (min-width: 782px) { @media (min-width: 782px) {
.interface-interface-skeleton__footer { .interface-interface-skeleton__footer {
@ -336,11 +346,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
.edit-post-header__toolbar { .edit-post-header__toolbar {
display: flex; display: flex;
flex-grow: 1; flex-grow: 1; }
padding-right: 8px; }
@media (min-width: 600px) {
.edit-post-header__toolbar {
padding-right: 24px; } }
.edit-post-header__toolbar .table-of-contents { .edit-post-header__toolbar .table-of-contents {
display: none; } display: none; }
@media (min-width: 600px) { @media (min-width: 600px) {
@ -351,29 +357,26 @@ body.is-fullscreen-mode .interface-interface-skeleton {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
padding-left: 4px; } padding-left: 4px;
/**
* Buttons in the Toolbar
*/ }
@media (min-width: 600px) { @media (min-width: 600px) {
.edit-post-header__settings { .edit-post-header__settings {
padding-left: 16px; } } padding-left: 16px; } }
.edit-post-header__settings .editor-post-saved-state,
/** .edit-post-header__settings .components-button.components-button {
* Buttons in the Toolbar margin-left: 4px; }
*/ @media (min-width: 600px) {
.edit-post-header__settings .editor-post-saved-state, .edit-post-header__settings .editor-post-saved-state,
.edit-post-header__settings .components-button.components-button { .edit-post-header__settings .components-button.components-button {
margin-left: 4px; } margin-left: 12px; } }
@media (min-width: 600px) { .edit-post-header__settings .editor-post-saved-state,
.edit-post-header__settings .editor-post-saved-state, .edit-post-header__settings .components-button.is-tertiary {
.edit-post-header__settings .components-button.components-button { padding: 0 6px; }
margin-left: 12px; } } .edit-post-header__settings .edit-post-more-menu .components-button,
.edit-post-header__settings .interface-pinned-items .components-button {
.edit-post-header__settings .editor-post-saved-state, margin-left: 0; }
.edit-post-header__settings .components-button.is-tertiary {
padding: 0 6px; }
.edit-post-header__settings .edit-post-more-menu .components-button,
.edit-post-header__settings .interface-pinned-items .components-button {
margin-left: 0; }
.edit-post-header-preview__grouping-external { .edit-post-header-preview__grouping-external {
display: flex; display: flex;
@ -534,7 +537,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
.edit-post-fullscreen-mode-close.has-icon { .edit-post-fullscreen-mode-close.has-icon {
display: flex; display: flex;
align-items: center; align-items: center;
align-self: stretch; -ms-grid-row-align: stretch;
align-self: stretch;
border: none; border: none;
background: #23282e; background: #23282e;
color: #fff; color: #fff;
@ -556,35 +560,46 @@ body.is-fullscreen-mode .interface-interface-skeleton {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
border: none; } border: none; }
.edit-post-header-toolbar > .components-button { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button {
display: none; } display: none; }
@media (min-width: 600px) { @media (min-width: 600px) {
.edit-post-header-toolbar > .components-button { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button {
display: inline-flex; } } display: inline-flex; } }
.edit-post-header-toolbar > .edit-post-header-toolbar__inserter-toggle { .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle {
display: inline-flex; } display: inline-flex; }
.edit-post-header-toolbar .block-editor-block-navigation { .edit-post-header-toolbar .block-editor-block-navigation {
display: none; } display: none; }
@media (min-width: 600px) { @media (min-width: 600px) {
.edit-post-header-toolbar .block-editor-block-navigation { .edit-post-header-toolbar .block-editor-block-navigation {
display: flex; } } display: flex; } }
.edit-post-header-toolbar > .components-button.has-icon, .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon,
.edit-post-header-toolbar > .components-dropdown > .components-button.has-icon { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon {
height: 36px; height: 36px;
min-width: 36px; min-width: 36px;
padding: 6px; } padding: 6px; }
.edit-post-header-toolbar > .components-button.has-icon.is-pressed, .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon.is-pressed,
.edit-post-header-toolbar > .components-dropdown > .components-button.has-icon.is-pressed { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon.is-pressed {
background: #1e1e1e; } background: #1e1e1e; }
.edit-post-header-toolbar > .components-button.has-icon:focus:not(:disabled), .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon:focus:not(:disabled),
.edit-post-header-toolbar > .components-dropdown > .components-button.has-icon:focus:not(:disabled) { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon:focus:not(:disabled) {
box-shadow: 0 0 0 1.5px #007cba, inset 0 0 0 1px #fff; box-shadow: 0 0 0 1.5px #007cba, inset 0 0 0 1px #fff;
box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 1px #fff; box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
outline: 1px solid transparent; } outline: 1px solid transparent; }
.edit-post-header-toolbar > .components-button.has-icon::before, .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon::before,
.edit-post-header-toolbar > .components-dropdown > .components-button.has-icon::before { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon::before {
display: none; } display: none; }
.edit-post-header-toolbar__left {
display: inline-flex;
align-items: center;
padding-right: 8px; }
@media (min-width: 600px) {
.edit-post-header-toolbar__left {
padding-right: 24px; } }
@media (min-width: 1280px) {
.edit-post-header-toolbar__left {
padding-left: 8px; } }
.edit-post-header-toolbar__block-toolbar { .edit-post-header-toolbar__block-toolbar {
position: absolute; position: absolute;
top: 61px; top: 61px;
@ -600,13 +615,14 @@ body.is-fullscreen-mode .interface-interface-skeleton {
border-bottom: none; } border-bottom: none; }
.is-sidebar-opened .edit-post-header-toolbar__block-toolbar { .is-sidebar-opened .edit-post-header-toolbar__block-toolbar {
display: none; } display: none; }
.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper {
display: none; }
@media (min-width: 782px) { @media (min-width: 782px) {
.is-sidebar-opened .edit-post-header-toolbar__block-toolbar { .is-sidebar-opened .edit-post-header-toolbar__block-toolbar {
display: block; display: block;
left: 280px; } } left: 280px; } }
@media (min-width: 1280px) { @media (min-width: 1280px) {
.edit-post-header-toolbar__block-toolbar { .edit-post-header-toolbar__block-toolbar {
padding-right: 8px;
position: static; position: static;
right: auto; right: auto;
left: auto; left: auto;
@ -621,12 +637,14 @@ body.is-fullscreen-mode .interface-interface-skeleton {
height: 60px; height: 60px;
padding: 6px 0; } } padding: 6px 0; } }
.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon { .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon {
margin-left: 8px; margin-left: 8px;
min-width: 32px; min-width: 32px;
width: 32px; width: 32px;
height: 32px; height: 32px;
padding: 0; } padding: 0; }
.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon {
height: 36px; }
@media (min-width: 1280px) { @media (min-width: 1280px) {
.show-icon-labels .edit-post-header-toolbar__block-toolbar { .show-icon-labels .edit-post-header-toolbar__block-toolbar {
@ -642,9 +660,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
height: auto; height: auto;
padding: 0; } } padding: 0; } }
.show-icon-labels .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle {
height: 36px; }
.edit-post-more-menu { .edit-post-more-menu {
margin-right: -4px; } margin-right: -4px; }
.edit-post-more-menu .components-button { .edit-post-more-menu .components-button {
@ -821,22 +836,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
display: flex; display: flex;
justify-content: center; } justify-content: center; }
.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,
.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,
.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,
.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus
.edit-post-layout__toogle-sidebar-panel, .edit-post-layout__toogle-sidebar-panel,
.interface-interface-skeleton__actions:focus-within .interface-interface-skeleton__actions:focus-within
.edit-post-layout__toogle-sidebar-panel,
.interface-interface-skeleton__actions:focus
.edit-post-layout__toogle-sidebar-panel,
.interface-interface-skeleton__actions:focus-within
.edit-post-layout__toogle-sidebar-panel, .interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel, .interface-interface-skeleton__actions:focus
.edit-post-layout__toggle-entities-saved-states-panel, .edit-post-layout__toggle-entities-saved-states-panel,
.interface-interface-skeleton__actions:focus-within .interface-interface-skeleton__actions:focus-within
.edit-post-layout__toggle-entities-saved-states-panel,
.interface-interface-skeleton__actions:focus
.edit-post-layout__toggle-entities-saved-states-panel,
.interface-interface-skeleton__actions:focus-within
.edit-post-layout__toggle-entities-saved-states-panel { .edit-post-layout__toggle-entities-saved-states-panel {
top: auto; top: auto;
bottom: 0; } bottom: 0; }
@ -1038,6 +1043,43 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
.edit-post-meta-boxes-area__clear { .edit-post-meta-boxes-area__clear {
clear: both; } clear: both; }
.edit-post-preferences-modal__section {
margin: 0 0 2.5rem 0; }
.edit-post-preferences-modal__section-title {
font-size: 0.9rem;
font-weight: 600; }
.edit-post-preferences-modal__option .components-base-control__field {
align-items: center;
display: flex;
margin: 0; }
.edit-post-preferences-modal__option .components-checkbox-control__label {
flex-grow: 1;
padding: 0.6rem 10px 0.6rem 0; }
.edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button {
margin: 0 48px 0.6rem 0; }
@media (min-width: 782px) {
.edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button {
margin-right: 38px; } }
@media (min-width: 600px) {
.edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button {
max-width: 300px; } }
.edit-post-preferences-modal .components-base-control__help {
margin: -8px 42px 8px 0;
font-size: 12px;
font-style: normal;
color: #757575; }
.edit-post-preferences-modal .edit-post-preferences-modal__section-description {
margin: -8px 0 8px 0;
font-size: 12px;
font-style: normal;
color: #757575; }
.components-panel__header.edit-post-sidebar__panel-tabs { .components-panel__header.edit-post-sidebar__panel-tabs {
justify-content: flex-start; justify-content: flex-start;
padding-right: 0; padding-right: 0;
@ -1275,34 +1317,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
margin-left: auto; margin-left: auto;
margin-bottom: 32px; } margin-bottom: 32px; }
.edit-post-options-modal__section {
margin: 0 0 2rem 0; }
.edit-post-options-modal__section-title {
font-size: 0.9rem;
font-weight: 600; }
.edit-post-options-modal__option {
border-top: 1px solid #ddd; }
.edit-post-options-modal__option:last-child {
border-bottom: 1px solid #ddd; }
.edit-post-options-modal__option .components-base-control__field {
align-items: center;
display: flex;
margin: 0; }
.edit-post-options-modal__option .components-checkbox-control__label {
flex-grow: 1;
padding: 0.6rem 10px 0.6rem 0; }
.edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button {
margin: 0 48px 0.6rem 0; }
@media (min-width: 782px) {
.edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button {
margin-right: 38px; } }
@media (min-width: 600px) {
.edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button {
max-width: 300px; } }
.edit-post-welcome-guide { .edit-post-welcome-guide {
width: 312px; } width: 312px; }
.edit-post-welcome-guide__image { .edit-post-welcome-guide__image {

File diff suppressed because one or more lines are too long

View File

@ -175,7 +175,7 @@ html.interface-interface-skeleton__html-container {
.interface-interface-skeleton { .interface-interface-skeleton {
display: flex; display: flex;
flex-direction: column; flex-direction: row;
height: auto; height: auto;
max-height: 100%; max-height: 100%;
position: fixed; position: fixed;
@ -189,6 +189,11 @@ html.interface-interface-skeleton__html-container {
.is-fullscreen-mode .interface-interface-skeleton { .is-fullscreen-mode .interface-interface-skeleton {
top: 0; } } top: 0; } }
.interface-interface-skeleton__editor {
display: flex;
flex-direction: column;
flex-grow: 1; }
.interface-interface-skeleton { .interface-interface-skeleton {
/* Set left position when auto-fold is not on the body element. */ /* Set left position when auto-fold is not on the body element. */
left: 0; } left: 0; }
@ -284,6 +289,11 @@ body.is-fullscreen-mode .interface-interface-skeleton {
flex-shrink: 0; flex-shrink: 0;
border-top: 1px solid #e0e0e0; border-top: 1px solid #e0e0e0;
color: #1e1e1e; color: #1e1e1e;
position: fixed;
bottom: 0;
width: 100%;
background-color: #fff;
z-index: 90;
display: none; } display: none; }
@media (min-width: 782px) { @media (min-width: 782px) {
.interface-interface-skeleton__footer { .interface-interface-skeleton__footer {
@ -336,11 +346,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
.edit-post-header__toolbar { .edit-post-header__toolbar {
display: flex; display: flex;
flex-grow: 1; flex-grow: 1; }
padding-left: 8px; }
@media (min-width: 600px) {
.edit-post-header__toolbar {
padding-left: 24px; } }
.edit-post-header__toolbar .table-of-contents { .edit-post-header__toolbar .table-of-contents {
display: none; } display: none; }
@media (min-width: 600px) { @media (min-width: 600px) {
@ -351,29 +357,26 @@ body.is-fullscreen-mode .interface-interface-skeleton {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
padding-right: 4px; } padding-right: 4px;
/**
* Buttons in the Toolbar
*/ }
@media (min-width: 600px) { @media (min-width: 600px) {
.edit-post-header__settings { .edit-post-header__settings {
padding-right: 16px; } } padding-right: 16px; } }
.edit-post-header__settings .editor-post-saved-state,
/** .edit-post-header__settings .components-button.components-button {
* Buttons in the Toolbar margin-right: 4px; }
*/ @media (min-width: 600px) {
.edit-post-header__settings .editor-post-saved-state, .edit-post-header__settings .editor-post-saved-state,
.edit-post-header__settings .components-button.components-button { .edit-post-header__settings .components-button.components-button {
margin-right: 4px; } margin-right: 12px; } }
@media (min-width: 600px) { .edit-post-header__settings .editor-post-saved-state,
.edit-post-header__settings .editor-post-saved-state, .edit-post-header__settings .components-button.is-tertiary {
.edit-post-header__settings .components-button.components-button { padding: 0 6px; }
margin-right: 12px; } } .edit-post-header__settings .edit-post-more-menu .components-button,
.edit-post-header__settings .interface-pinned-items .components-button {
.edit-post-header__settings .editor-post-saved-state, margin-right: 0; }
.edit-post-header__settings .components-button.is-tertiary {
padding: 0 6px; }
.edit-post-header__settings .edit-post-more-menu .components-button,
.edit-post-header__settings .interface-pinned-items .components-button {
margin-right: 0; }
.edit-post-header-preview__grouping-external { .edit-post-header-preview__grouping-external {
display: flex; display: flex;
@ -534,7 +537,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
.edit-post-fullscreen-mode-close.has-icon { .edit-post-fullscreen-mode-close.has-icon {
display: flex; display: flex;
align-items: center; align-items: center;
align-self: stretch; -ms-grid-row-align: stretch;
align-self: stretch;
border: none; border: none;
background: #23282e; background: #23282e;
color: #fff; color: #fff;
@ -556,35 +560,46 @@ body.is-fullscreen-mode .interface-interface-skeleton {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
border: none; } border: none; }
.edit-post-header-toolbar > .components-button { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button {
display: none; } display: none; }
@media (min-width: 600px) { @media (min-width: 600px) {
.edit-post-header-toolbar > .components-button { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button {
display: inline-flex; } } display: inline-flex; } }
.edit-post-header-toolbar > .edit-post-header-toolbar__inserter-toggle { .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle {
display: inline-flex; } display: inline-flex; }
.edit-post-header-toolbar .block-editor-block-navigation { .edit-post-header-toolbar .block-editor-block-navigation {
display: none; } display: none; }
@media (min-width: 600px) { @media (min-width: 600px) {
.edit-post-header-toolbar .block-editor-block-navigation { .edit-post-header-toolbar .block-editor-block-navigation {
display: flex; } } display: flex; } }
.edit-post-header-toolbar > .components-button.has-icon, .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon,
.edit-post-header-toolbar > .components-dropdown > .components-button.has-icon { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon {
height: 36px; height: 36px;
min-width: 36px; min-width: 36px;
padding: 6px; } padding: 6px; }
.edit-post-header-toolbar > .components-button.has-icon.is-pressed, .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon.is-pressed,
.edit-post-header-toolbar > .components-dropdown > .components-button.has-icon.is-pressed { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon.is-pressed {
background: #1e1e1e; } background: #1e1e1e; }
.edit-post-header-toolbar > .components-button.has-icon:focus:not(:disabled), .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon:focus:not(:disabled),
.edit-post-header-toolbar > .components-dropdown > .components-button.has-icon:focus:not(:disabled) { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon:focus:not(:disabled) {
box-shadow: 0 0 0 1.5px #007cba, inset 0 0 0 1px #fff; box-shadow: 0 0 0 1.5px #007cba, inset 0 0 0 1px #fff;
box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 1px #fff; box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
outline: 1px solid transparent; } outline: 1px solid transparent; }
.edit-post-header-toolbar > .components-button.has-icon::before, .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon::before,
.edit-post-header-toolbar > .components-dropdown > .components-button.has-icon::before { .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon::before {
display: none; } display: none; }
.edit-post-header-toolbar__left {
display: inline-flex;
align-items: center;
padding-left: 8px; }
@media (min-width: 600px) {
.edit-post-header-toolbar__left {
padding-left: 24px; } }
@media (min-width: 1280px) {
.edit-post-header-toolbar__left {
padding-right: 8px; } }
.edit-post-header-toolbar__block-toolbar { .edit-post-header-toolbar__block-toolbar {
position: absolute; position: absolute;
top: 61px; top: 61px;
@ -600,13 +615,14 @@ body.is-fullscreen-mode .interface-interface-skeleton {
border-bottom: none; } border-bottom: none; }
.is-sidebar-opened .edit-post-header-toolbar__block-toolbar { .is-sidebar-opened .edit-post-header-toolbar__block-toolbar {
display: none; } display: none; }
.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper {
display: none; }
@media (min-width: 782px) { @media (min-width: 782px) {
.is-sidebar-opened .edit-post-header-toolbar__block-toolbar { .is-sidebar-opened .edit-post-header-toolbar__block-toolbar {
display: block; display: block;
right: 280px; } } right: 280px; } }
@media (min-width: 1280px) { @media (min-width: 1280px) {
.edit-post-header-toolbar__block-toolbar { .edit-post-header-toolbar__block-toolbar {
padding-left: 8px;
position: static; position: static;
left: auto; left: auto;
right: auto; right: auto;
@ -621,12 +637,14 @@ body.is-fullscreen-mode .interface-interface-skeleton {
height: 60px; height: 60px;
padding: 6px 0; } } padding: 6px 0; } }
.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon { .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon {
margin-right: 8px; margin-right: 8px;
min-width: 32px; min-width: 32px;
width: 32px; width: 32px;
height: 32px; height: 32px;
padding: 0; } padding: 0; }
.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon {
height: 36px; }
@media (min-width: 1280px) { @media (min-width: 1280px) {
.show-icon-labels .edit-post-header-toolbar__block-toolbar { .show-icon-labels .edit-post-header-toolbar__block-toolbar {
@ -642,9 +660,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
height: auto; height: auto;
padding: 0; } } padding: 0; } }
.show-icon-labels .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle {
height: 36px; }
.edit-post-more-menu { .edit-post-more-menu {
margin-left: -4px; } margin-left: -4px; }
.edit-post-more-menu .components-button { .edit-post-more-menu .components-button {
@ -821,22 +836,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
display: flex; display: flex;
justify-content: center; } justify-content: center; }
.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,
.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,
.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,
.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus
.edit-post-layout__toogle-sidebar-panel, .edit-post-layout__toogle-sidebar-panel,
.interface-interface-skeleton__actions:focus-within .interface-interface-skeleton__actions:focus-within
.edit-post-layout__toogle-sidebar-panel,
.interface-interface-skeleton__actions:focus
.edit-post-layout__toogle-sidebar-panel,
.interface-interface-skeleton__actions:focus-within
.edit-post-layout__toogle-sidebar-panel, .interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel, .interface-interface-skeleton__actions:focus
.edit-post-layout__toggle-entities-saved-states-panel, .edit-post-layout__toggle-entities-saved-states-panel,
.interface-interface-skeleton__actions:focus-within .interface-interface-skeleton__actions:focus-within
.edit-post-layout__toggle-entities-saved-states-panel,
.interface-interface-skeleton__actions:focus
.edit-post-layout__toggle-entities-saved-states-panel,
.interface-interface-skeleton__actions:focus-within
.edit-post-layout__toggle-entities-saved-states-panel { .edit-post-layout__toggle-entities-saved-states-panel {
top: auto; top: auto;
bottom: 0; } bottom: 0; }
@ -1038,6 +1043,43 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
.edit-post-meta-boxes-area__clear { .edit-post-meta-boxes-area__clear {
clear: both; } clear: both; }
.edit-post-preferences-modal__section {
margin: 0 0 2.5rem 0; }
.edit-post-preferences-modal__section-title {
font-size: 0.9rem;
font-weight: 600; }
.edit-post-preferences-modal__option .components-base-control__field {
align-items: center;
display: flex;
margin: 0; }
.edit-post-preferences-modal__option .components-checkbox-control__label {
flex-grow: 1;
padding: 0.6rem 0 0.6rem 10px; }
.edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button {
margin: 0 0 0.6rem 48px; }
@media (min-width: 782px) {
.edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button {
margin-left: 38px; } }
@media (min-width: 600px) {
.edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button {
max-width: 300px; } }
.edit-post-preferences-modal .components-base-control__help {
margin: -8px 0 8px 42px;
font-size: 12px;
font-style: normal;
color: #757575; }
.edit-post-preferences-modal .edit-post-preferences-modal__section-description {
margin: -8px 0 8px 0;
font-size: 12px;
font-style: normal;
color: #757575; }
.components-panel__header.edit-post-sidebar__panel-tabs { .components-panel__header.edit-post-sidebar__panel-tabs {
justify-content: flex-start; justify-content: flex-start;
padding-left: 0; padding-left: 0;
@ -1279,34 +1321,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
margin-right: auto; margin-right: auto;
margin-bottom: 32px; } margin-bottom: 32px; }
.edit-post-options-modal__section {
margin: 0 0 2rem 0; }
.edit-post-options-modal__section-title {
font-size: 0.9rem;
font-weight: 600; }
.edit-post-options-modal__option {
border-top: 1px solid #ddd; }
.edit-post-options-modal__option:last-child {
border-bottom: 1px solid #ddd; }
.edit-post-options-modal__option .components-base-control__field {
align-items: center;
display: flex;
margin: 0; }
.edit-post-options-modal__option .components-checkbox-control__label {
flex-grow: 1;
padding: 0.6rem 0 0.6rem 10px; }
.edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button {
margin: 0 0 0.6rem 48px; }
@media (min-width: 782px) {
.edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button {
margin-left: 38px; } }
@media (min-width: 600px) {
.edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button {
max-width: 300px; } }
.edit-post-welcome-guide { .edit-post-welcome-guide {
width: 312px; } width: 312px; }
.edit-post-welcome-guide__image { .edit-post-welcome-guide__image {

File diff suppressed because one or more lines are too long

View File

@ -81,53 +81,39 @@ body {
margin-left: -10px; } margin-left: -10px; }
/* Headings */ /* Headings */
h1 {
font-size: 2.44em; }
h2 {
font-size: 1.95em; }
h3 {
font-size: 1.56em; }
h4 {
font-size: 1.25em; }
h5 {
font-size: 1em; }
h6 {
font-size: 0.8em; }
h1, h1,
h2, h2,
h3 { h3 {
line-height: 1.4; } line-height: 1.4; }
h4 {
line-height: 1.5; }
h1 { h1 {
font-size: 2.44em;
margin-top: 0.67em; margin-top: 0.67em;
margin-bottom: 0.67em; } margin-bottom: 0.67em; }
h2 { h2 {
font-size: 1.95em;
margin-top: 0.83em; margin-top: 0.83em;
margin-bottom: 0.83em; } margin-bottom: 0.83em; }
h3 { h3 {
font-size: 1.56em;
margin-top: 1em; margin-top: 1em;
margin-bottom: 1em; } margin-bottom: 1em; }
h4 { h4 {
font-size: 1.25em;
line-height: 1.5;
margin-top: 1.33em; margin-top: 1.33em;
margin-bottom: 1.33em; } margin-bottom: 1.33em; }
h5 { h5 {
font-size: 1em;
margin-top: 1.67em; margin-top: 1.67em;
margin-bottom: 1.67em; } margin-bottom: 1.67em; }
h6 { h6 {
font-size: 0.8em;
margin-top: 2.33em; margin-top: 2.33em;
margin-bottom: 2.33em; } margin-bottom: 2.33em; }

View File

@ -1 +1 @@
body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-10px;margin-left:-10px}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-right:1.3em;margin-right:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-10px;margin-left:-10px}h1,h2,h3{line-height:1.4}h1{font-size:2.44em;margin-top:.67em;margin-bottom:.67em}h2{font-size:1.95em;margin-top:.83em;margin-bottom:.83em}h3{font-size:1.56em;margin-top:1em;margin-bottom:1em}h4{font-size:1.25em;line-height:1.5;margin-top:1.33em;margin-bottom:1.33em}h5{font-size:1em;margin-top:1.67em;margin-bottom:1.67em}h6{font-size:.8em;margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-right:1.3em;margin-right:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace}

View File

@ -81,53 +81,39 @@ body {
margin-right: -10px; } margin-right: -10px; }
/* Headings */ /* Headings */
h1 {
font-size: 2.44em; }
h2 {
font-size: 1.95em; }
h3 {
font-size: 1.56em; }
h4 {
font-size: 1.25em; }
h5 {
font-size: 1em; }
h6 {
font-size: 0.8em; }
h1, h1,
h2, h2,
h3 { h3 {
line-height: 1.4; } line-height: 1.4; }
h4 {
line-height: 1.5; }
h1 { h1 {
font-size: 2.44em;
margin-top: 0.67em; margin-top: 0.67em;
margin-bottom: 0.67em; } margin-bottom: 0.67em; }
h2 { h2 {
font-size: 1.95em;
margin-top: 0.83em; margin-top: 0.83em;
margin-bottom: 0.83em; } margin-bottom: 0.83em; }
h3 { h3 {
font-size: 1.56em;
margin-top: 1em; margin-top: 1em;
margin-bottom: 1em; } margin-bottom: 1em; }
h4 { h4 {
font-size: 1.25em;
line-height: 1.5;
margin-top: 1.33em; margin-top: 1.33em;
margin-bottom: 1.33em; } margin-bottom: 1.33em; }
h5 { h5 {
font-size: 1em;
margin-top: 1.67em; margin-top: 1.67em;
margin-bottom: 1.67em; } margin-bottom: 1.67em; }
h6 { h6 {
font-size: 0.8em;
margin-top: 2.33em; margin-top: 2.33em;
margin-bottom: 2.33em; } margin-bottom: 2.33em; }

View File

@ -1 +1 @@
body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-10px;margin-right:-10px}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-left:1.3em;margin-left:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-10px;margin-right:-10px}h1,h2,h3{line-height:1.4}h1{font-size:2.44em;margin-top:.67em;margin-bottom:.67em}h2{font-size:1.95em;margin-top:.83em;margin-bottom:.83em}h3{font-size:1.56em;margin-top:1em;margin-bottom:1em}h4{font-size:1.25em;line-height:1.5;margin-top:1.33em;margin-bottom:1.33em}h5{font-size:1em;margin-top:1.67em;margin-bottom:1.67em}h6{font-size:.8em;margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-left:1.3em;margin-left:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace}

View File

@ -189,8 +189,9 @@
width: 100%; } width: 100%; }
@media (min-width: 782px) { @media (min-width: 782px) {
.components-editor-notices__snackbar { .components-editor-notices__snackbar {
width: fit-content; width: -webkit-fit-content;
width: -moz-fit-content; } } width: -moz-fit-content;
width: fit-content; } }
.entities-saved-states__panel { .entities-saved-states__panel {
box-sizing: border-box; box-sizing: border-box;
@ -758,6 +759,13 @@
opacity: 1; } opacity: 1; }
.editor-post-title .editor-post-title__input:-ms-input-placeholder { .editor-post-title .editor-post-title__input:-ms-input-placeholder {
color: rgba(30, 30, 30, 0.62); } color: rgba(30, 30, 30, 0.62); }
.is-dark-theme .editor-post-title .editor-post-title__input::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.65); }
.is-dark-theme .editor-post-title .editor-post-title__input::-moz-placeholder {
opacity: 1;
color: rgba(255, 255, 255, 0.65); }
.is-dark-theme .editor-post-title .editor-post-title__input:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.65); }
.editor-post-title .editor-post-title__input:focus { .editor-post-title .editor-post-title__input:focus {
border: 1px solid transparent; border: 1px solid transparent;
outline: 1px solid transparent; outline: 1px solid transparent;
@ -809,7 +817,7 @@
margin-top: -8px; } margin-top: -8px; }
.table-of-contents__count { .table-of-contents__count {
flex-basis: 25%; flex-basis: 33%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-size: 13px; font-size: 13px;

File diff suppressed because one or more lines are too long

View File

@ -189,8 +189,9 @@
width: 100%; } width: 100%; }
@media (min-width: 782px) { @media (min-width: 782px) {
.components-editor-notices__snackbar { .components-editor-notices__snackbar {
width: fit-content; width: -webkit-fit-content;
width: -moz-fit-content; } } width: -moz-fit-content;
width: fit-content; } }
.entities-saved-states__panel { .entities-saved-states__panel {
box-sizing: border-box; box-sizing: border-box;
@ -758,6 +759,13 @@
opacity: 1; } opacity: 1; }
.editor-post-title .editor-post-title__input:-ms-input-placeholder { .editor-post-title .editor-post-title__input:-ms-input-placeholder {
color: rgba(30, 30, 30, 0.62); } color: rgba(30, 30, 30, 0.62); }
.is-dark-theme .editor-post-title .editor-post-title__input::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.65); }
.is-dark-theme .editor-post-title .editor-post-title__input::-moz-placeholder {
opacity: 1;
color: rgba(255, 255, 255, 0.65); }
.is-dark-theme .editor-post-title .editor-post-title__input:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.65); }
.editor-post-title .editor-post-title__input:focus { .editor-post-title .editor-post-title__input:focus {
border: 1px solid transparent; border: 1px solid transparent;
outline: 1px solid transparent; outline: 1px solid transparent;
@ -809,7 +817,7 @@
margin-top: -8px; } margin-top: -8px; }
.table-of-contents__count { .table-of-contents__count {
flex-basis: 25%; flex-basis: 33%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-size: 13px; font-size: 13px;

File diff suppressed because one or more lines are too long

View File

@ -305,6 +305,7 @@ add_action( 'template_redirect', 'wp_shortlink_header', 11, 0 );
add_action( 'wp_print_footer_scripts', '_wp_footer_scripts' ); add_action( 'wp_print_footer_scripts', '_wp_footer_scripts' );
add_action( 'init', '_register_core_block_patterns_and_categories' ); add_action( 'init', '_register_core_block_patterns_and_categories' );
add_action( 'init', 'check_theme_switched', 99 ); add_action( 'init', 'check_theme_switched', 99 );
add_action( 'init', array( 'WP_Block_Supports', 'init' ), 22 );
add_action( 'after_switch_theme', '_wp_menus_changed' ); add_action( 'after_switch_theme', '_wp_menus_changed' );
add_action( 'after_switch_theme', '_wp_sidebars_changed' ); add_action( 'after_switch_theme', '_wp_sidebars_changed' );
add_action( 'wp_print_styles', 'print_emoji_styles' ); add_action( 'wp_print_styles', 'print_emoji_styles' );

View File

@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] =
/******/ /******/
/******/ /******/
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 473); /******/ return __webpack_require__(__webpack_require__.s = 478);
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ({ /******/ ({
@ -94,14 +94,14 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] =
/***/ }), /***/ }),
/***/ 273: /***/ 275:
/***/ (function(module, exports) { /***/ (function(module, exports) {
(function() { module.exports = this["wp"]["domReady"]; }()); (function() { module.exports = this["wp"]["domReady"]; }());
/***/ }), /***/ }),
/***/ 473: /***/ 478:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -113,7 +113,7 @@ __webpack_require__.d(__webpack_exports__, "setup", function() { return /* bindi
__webpack_require__.d(__webpack_exports__, "speak", function() { return /* binding */ speak; }); __webpack_require__.d(__webpack_exports__, "speak", function() { return /* binding */ speak; });
// EXTERNAL MODULE: external {"this":["wp","domReady"]} // EXTERNAL MODULE: external {"this":["wp","domReady"]}
var external_this_wp_domReady_ = __webpack_require__(273); var external_this_wp_domReady_ = __webpack_require__(275);
var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_); var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_);
// EXTERNAL MODULE: external {"this":["wp","i18n"]} // EXTERNAL MODULE: external {"this":["wp","i18n"]}

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */ /*! This file is auto-generated */
this.wp=this.wp||{},this.wp.a11y=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=473)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},273:function(t,e){!function(){t.exports=this.wp.domReady}()},473:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return d}));var r=n(273),i=n.n(r),o=n(1);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(t),e.className="a11y-speak-region",e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(e),e}var u="";function p(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(o.__)("Notifications"),t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("hidden","hidden");var e=document.body;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function d(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),n=0;n<t.length;n++)t[n].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),u===t&&(t+=" "),u=t,t}(t);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===e?r.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}}); this.wp=this.wp||{},this.wp.a11y=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=478)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},275:function(t,e){!function(){t.exports=this.wp.domReady}()},478:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return d}));var r=n(275),i=n.n(r),o=n(1);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(t),e.className="a11y-speak-region",e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(e),e}var u="";function p(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(o.__)("Notifications"),t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("hidden","hidden");var e=document.body;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function d(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),n=0;n<t.length;n++)t[n].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),u===t&&(t+=" "),u=t,t}(t);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===e?r.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}});

View File

@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] =
/******/ /******/
/******/ /******/
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 462); /******/ return __webpack_require__(__webpack_require__.s = 467);
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ({ /******/ ({
@ -99,7 +99,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] =
"use strict"; "use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); /* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43);
function _objectWithoutProperties(source, excluded) { function _objectWithoutProperties(source, excluded) {
if (source == null) return {}; if (source == null) return {};
@ -122,7 +122,7 @@ function _objectWithoutProperties(source, excluded) {
/***/ }), /***/ }),
/***/ 18: /***/ 17:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -233,7 +233,7 @@ function _iterableToArray(iter) {
/***/ }), /***/ }),
/***/ 41: /***/ 42:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -515,7 +515,7 @@ function isShallowEqual( a, b, fromIndex ) {
/***/ }), /***/ }),
/***/ 42: /***/ 43:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -537,7 +537,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
/***/ }), /***/ }),
/***/ 462: /***/ 467:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -564,7 +564,7 @@ __webpack_require__.d(actions_namespaceObject, "__experimentalRemoveAnnotationsB
var external_this_wp_data_ = __webpack_require__(4); var external_this_wp_data_ = __webpack_require__(4);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(18); var toConsumableArray = __webpack_require__(17);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(5); var defineProperty = __webpack_require__(5);
@ -686,7 +686,7 @@ function reducer_annotations() {
var objectWithoutProperties = __webpack_require__(14); var objectWithoutProperties = __webpack_require__(14);
// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
var rememo = __webpack_require__(41); var rememo = __webpack_require__(42);
// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/selectors.js // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/selectors.js

File diff suppressed because one or more lines are too long

View File

@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] =
/******/ /******/
/******/ /******/
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 465); /******/ return __webpack_require__(__webpack_require__.s = 470);
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ({ /******/ ({
@ -99,7 +99,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] =
"use strict"; "use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); /* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43);
function _objectWithoutProperties(source, excluded) { function _objectWithoutProperties(source, excluded) {
if (source == null) return {}; if (source == null) return {};
@ -122,7 +122,7 @@ function _objectWithoutProperties(source, excluded) {
/***/ }), /***/ }),
/***/ 24: /***/ 20:
/***/ (function(module, exports) { /***/ (function(module, exports) {
(function() { module.exports = this["regeneratorRuntime"]; }()); (function() { module.exports = this["regeneratorRuntime"]; }());
@ -136,7 +136,7 @@ function _objectWithoutProperties(source, excluded) {
/***/ }), /***/ }),
/***/ 42: /***/ 43:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -158,7 +158,50 @@ function _objectWithoutPropertiesLoose(source, excluded) {
/***/ }), /***/ }),
/***/ 465: /***/ 45:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; });
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(undefined);
});
};
}
/***/ }),
/***/ 470:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -350,11 +393,11 @@ function createPreloadingMiddleware(preloadedData) {
/* harmony default export */ var preloading = (createPreloadingMiddleware); /* harmony default export */ var preloading = (createPreloadingMiddleware);
// EXTERNAL MODULE: external {"this":"regeneratorRuntime"} // EXTERNAL MODULE: external {"this":"regeneratorRuntime"}
var external_this_regeneratorRuntime_ = __webpack_require__(24); var external_this_regeneratorRuntime_ = __webpack_require__(20);
var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(47); var asyncToGenerator = __webpack_require__(45);
// EXTERNAL MODULE: external {"this":["wp","url"]} // EXTERNAL MODULE: external {"this":["wp","url"]}
var external_this_wp_url_ = __webpack_require__(31); var external_this_wp_url_ = __webpack_require__(31);
@ -913,49 +956,6 @@ apiFetch.mediaUploadMiddleware = media_upload;
/* harmony default export */ var build_module = __webpack_exports__["default"] = (apiFetch); /* harmony default export */ var build_module = __webpack_exports__["default"] = (apiFetch);
/***/ }),
/***/ 47:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; });
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(undefined);
});
};
}
/***/ }), /***/ }),
/***/ 5: /***/ 5:

File diff suppressed because one or more lines are too long

View File

@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["autop"] =
/******/ /******/
/******/ /******/
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 296); /******/ return __webpack_require__(__webpack_require__.s = 299);
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ({ /******/ ({
@ -159,7 +159,7 @@ function _arrayLikeToArray(arr, len) {
/***/ }), /***/ }),
/***/ 296: /***/ 299:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";

File diff suppressed because one or more lines are too long

View File

@ -82,18 +82,19 @@ this["wp"] = this["wp"] || {}; this["wp"]["blob"] =
/******/ /******/
/******/ /******/
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 297); /******/ return __webpack_require__(__webpack_require__.s = 300);
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ({ /******/ ({
/***/ 297: /***/ 300:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
__webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createBlobURL", function() { return createBlobURL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createBlobURL", function() { return createBlobURL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBlobByURL", function() { return getBlobByURL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBlobByURL", function() { return getBlobByURL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBlobTypeByURL", function() { return getBlobTypeByURL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "revokeBlobURL", function() { return revokeBlobURL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "revokeBlobURL", function() { return revokeBlobURL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBlobURL", function() { return isBlobURL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBlobURL", function() { return isBlobURL; });
/** /**
@ -133,6 +134,21 @@ function createBlobURL(file) {
function getBlobByURL(url) { function getBlobByURL(url) {
return cache[url]; return cache[url];
} }
/**
* Retrieve a blob type based on URL. The file must have been created by
* `createBlobURL` and not removed by `revokeBlobURL`, otherwise it will return
* `undefined`.
*
* @param {string} url The blob URL.
*
* @return {string|undefined} The blob type.
*/
function getBlobTypeByURL(url) {
var _getBlobByURL;
return (_getBlobByURL = getBlobByURL(url)) === null || _getBlobByURL === void 0 ? void 0 : _getBlobByURL.type.split('/')[0]; // 0: media type , 1: file extension eg ( type: 'image/jpeg' ).
}
/** /**
* Remove the resource and file cache from memory. * Remove the resource and file cache from memory.
* *

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */ /*! This file is auto-generated */
this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=297)}({297:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"revokeBlobURL",(function(){return l})),n.d(t,"isBlobURL",(function(){return d}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}}); this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=300)}({300:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"getBlobTypeByURL",(function(){return l})),n.d(t,"revokeBlobURL",(function(){return d})),n.d(t,"isBlobURL",(function(){return a}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){var t;return null===(t=c(e))||void 0===t?void 0:t.type.split("/")[0]}function d(e){i[e]&&u(e),delete i[e]}function a(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}});

View File

@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockDirectory"] =
/******/ /******/
/******/ /******/
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 456); /******/ return __webpack_require__(__webpack_require__.s = 460);
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ({ /******/ ({
@ -108,13 +108,6 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockDirectory"] =
/***/ }), /***/ }),
/***/ 101:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["notices"]; }());
/***/ }),
/***/ 11: /***/ 11:
/***/ (function(module, exports) { /***/ (function(module, exports) {
@ -182,7 +175,7 @@ function _slicedToArray(arr, i) {
"use strict"; "use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); /* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43);
function _objectWithoutProperties(source, excluded) { function _objectWithoutProperties(source, excluded) {
if (source == null) return {}; if (source == null) return {};
@ -205,7 +198,7 @@ function _objectWithoutProperties(source, excluded) {
/***/ }), /***/ }),
/***/ 142: /***/ 141:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -223,9 +216,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
/** /**
* WordPress dependencies * WordPress dependencies
*/ */
// Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly.
/** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ /** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
/** /**
* Return an SVG icon. * Return an SVG icon.
@ -254,7 +246,7 @@ function Icon(_ref) {
/***/ }), /***/ }),
/***/ 18: /***/ 17:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -298,7 +290,14 @@ function _toConsumableArray(arr) {
/***/ }), /***/ }),
/***/ 207: /***/ 20:
/***/ (function(module, exports) {
(function() { module.exports = this["regeneratorRuntime"]; }());
/***/ }),
/***/ 208:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -321,13 +320,6 @@ var blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat
/* harmony default export */ __webpack_exports__["a"] = (blockDefault); /* harmony default export */ __webpack_exports__["a"] = (blockDefault);
/***/ }),
/***/ 24:
/***/ (function(module, exports) {
(function() { module.exports = this["regeneratorRuntime"]; }());
/***/ }), /***/ }),
/***/ 27: /***/ 27:
@ -347,63 +339,11 @@ function _arrayLikeToArray(arr, len) {
/***/ }), /***/ }),
/***/ 274: /***/ 276:
/***/ (function(module, exports) { /***/ (function(module, exports) {
(function() { module.exports = this["wp"]["editPost"]; }()); (function() { module.exports = this["wp"]["editPost"]; }());
/***/ }),
/***/ 298:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
/**
* WordPress dependencies
*/
var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
}));
/* harmony default export */ __webpack_exports__["a"] = (starFilled);
/***/ }),
/***/ 299:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
/**
* WordPress dependencies
*/
var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
fillRule: "evenodd",
d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",
clipRule: "evenodd"
}));
/* harmony default export */ __webpack_exports__["a"] = (starEmpty);
/***/ }), /***/ }),
/***/ 3: /***/ 3:
@ -429,6 +369,58 @@ function _unsupportedIterableToArray(o, minLen) {
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
} }
/***/ }),
/***/ 301:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
/**
* WordPress dependencies
*/
var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
}));
/* harmony default export */ __webpack_exports__["a"] = (starFilled);
/***/ }),
/***/ 302:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
/**
* WordPress dependencies
*/
var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
fillRule: "evenodd",
d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",
clipRule: "evenodd"
}));
/* harmony default export */ __webpack_exports__["a"] = (starEmpty);
/***/ }), /***/ }),
/***/ 32: /***/ 32:
@ -485,7 +477,7 @@ function _nonIterableRest() {
/***/ }), /***/ }),
/***/ 42: /***/ 43:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -508,13 +500,56 @@ function _objectWithoutPropertiesLoose(source, excluded) {
/***/ }), /***/ }),
/***/ 45: /***/ 45:
/***/ (function(module, exports) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
(function() { module.exports = this["wp"]["apiFetch"]; }()); "use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; });
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(undefined);
});
};
}
/***/ }), /***/ }),
/***/ 456: /***/ 46:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["a11y"]; }());
/***/ }),
/***/ 460:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -547,7 +582,7 @@ __webpack_require__.d(actions_namespaceObject, "setErrorNotice", function() { re
__webpack_require__.d(actions_namespaceObject, "clearErrorNotice", function() { return clearErrorNotice; }); __webpack_require__.d(actions_namespaceObject, "clearErrorNotice", function() { return clearErrorNotice; });
// EXTERNAL MODULE: external {"this":["wp","notices"]} // EXTERNAL MODULE: external {"this":["wp","notices"]}
var external_this_wp_notices_ = __webpack_require__(101); var external_this_wp_notices_ = __webpack_require__(92);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(5); var defineProperty = __webpack_require__(5);
@ -559,7 +594,7 @@ var external_this_wp_data_ = __webpack_require__(4);
var external_this_wp_dataControls_ = __webpack_require__(32); var external_this_wp_dataControls_ = __webpack_require__(32);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(18); var toConsumableArray = __webpack_require__(17);
// EXTERNAL MODULE: external {"this":"lodash"} // EXTERNAL MODULE: external {"this":"lodash"}
var external_this_lodash_ = __webpack_require__(2); var external_this_lodash_ = __webpack_require__(2);
@ -838,17 +873,17 @@ function getErrorNoticeForBlock(state, blockId) {
} }
// EXTERNAL MODULE: external {"this":"regeneratorRuntime"} // EXTERNAL MODULE: external {"this":"regeneratorRuntime"}
var external_this_regeneratorRuntime_ = __webpack_require__(24); var external_this_regeneratorRuntime_ = __webpack_require__(20);
var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_);
// EXTERNAL MODULE: external {"this":["wp","i18n"]} // EXTERNAL MODULE: external {"this":["wp","i18n"]}
var external_this_wp_i18n_ = __webpack_require__(1); var external_this_wp_i18n_ = __webpack_require__(1);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(47); var asyncToGenerator = __webpack_require__(45);
// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} // EXTERNAL MODULE: external {"this":["wp","apiFetch"]}
var external_this_wp_apiFetch_ = __webpack_require__(45); var external_this_wp_apiFetch_ = __webpack_require__(47);
var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/controls.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/controls.js
@ -1490,6 +1525,9 @@ var external_this_wp_compose_ = __webpack_require__(10);
// EXTERNAL MODULE: external {"this":["wp","components"]} // EXTERNAL MODULE: external {"this":["wp","components"]}
var external_this_wp_components_ = __webpack_require__(3); var external_this_wp_components_ = __webpack_require__(3);
// EXTERNAL MODULE: external {"this":["wp","a11y"]}
var external_this_wp_a11y_ = __webpack_require__(46);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-author-info/index.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-author-info/index.js
@ -1522,10 +1560,10 @@ function DownloadableBlockAuthorInfo(_ref) {
var external_this_wp_htmlEntities_ = __webpack_require__(69); var external_this_wp_htmlEntities_ = __webpack_require__(69);
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
var build_module_icon = __webpack_require__(142); var build_module_icon = __webpack_require__(141);
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
var star_filled = __webpack_require__(298); var star_filled = __webpack_require__(301);
// EXTERNAL MODULE: external {"this":["wp","primitives"]} // EXTERNAL MODULE: external {"this":["wp","primitives"]}
var external_this_wp_primitives_ = __webpack_require__(7); var external_this_wp_primitives_ = __webpack_require__(7);
@ -1546,7 +1584,7 @@ var starHalf = Object(external_this_wp_element_["createElement"])(external_this_
/* harmony default export */ var star_half = (starHalf); /* harmony default export */ var star_half = (starHalf);
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
var star_empty = __webpack_require__(299); var star_empty = __webpack_require__(302);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/stars.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/stars.js
@ -1973,6 +2011,7 @@ function DownloadableBlocksList(_ref) {
/** /**
* Internal dependencies * Internal dependencies
*/ */
@ -1985,8 +2024,8 @@ function DownloadableBlocksPanel(_ref) {
onHover = _ref.onHover, onHover = _ref.onHover,
hasPermission = _ref.hasPermission, hasPermission = _ref.hasPermission,
isLoading = _ref.isLoading, isLoading = _ref.isLoading,
isWaiting = _ref.isWaiting, isWaiting = _ref.isWaiting;
debouncedSpeak = _ref.debouncedSpeak; var debouncedSpeak = Object(external_this_wp_compose_["useDebounce"])(external_this_wp_a11y_["speak"], 500);
if (false === hasPermission) { if (false === hasPermission) {
debouncedSpeak(Object(external_this_wp_i18n_["__"])('No blocks found in your library.')); debouncedSpeak(Object(external_this_wp_i18n_["__"])('No blocks found in your library.'));
@ -2020,7 +2059,7 @@ function DownloadableBlocksPanel(_ref) {
})); }));
} }
/* harmony default export */ var downloadable_blocks_panel = (Object(external_this_wp_compose_["compose"])([external_this_wp_components_["withSpokenMessages"], Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { /* harmony default export */ var downloadable_blocks_panel = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) {
var filterValue = _ref2.filterValue; var filterValue = _ref2.filterValue;
var _select = select('core/block-directory'), var _select = select('core/block-directory'),
@ -2090,10 +2129,10 @@ function InserterMenuDownloadableBlocksPanel() {
/* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel); /* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
// EXTERNAL MODULE: external {"this":["wp","editPost"]} // EXTERNAL MODULE: external {"this":["wp","editPost"]}
var external_this_wp_editPost_ = __webpack_require__(274); var external_this_wp_editPost_ = __webpack_require__(276);
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
var block_default = __webpack_require__(207); var block_default = __webpack_require__(208);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/compact-list/index.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/compact-list/index.js
@ -2355,45 +2394,9 @@ Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'block-
/***/ }), /***/ }),
/***/ 47: /***/ 47:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, exports) {
"use strict"; (function() { module.exports = this["wp"]["apiFetch"]; }());
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; });
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(undefined);
});
};
}
/***/ }), /***/ }),
@ -2445,6 +2448,13 @@ function _defineProperty(obj, key, value) {
(function() { module.exports = this["wp"]["plugins"]; }()); (function() { module.exports = this["wp"]["plugins"]; }());
/***/ }),
/***/ 92:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["notices"]; }());
/***/ }) /***/ })
/******/ }); /******/ });

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More