@wordpress/block-library 9.6.0 → 9.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/build/audio/edit.js +2 -1
- package/build/audio/edit.js.map +1 -1
- package/build/block/edit.js +3 -5
- package/build/block/edit.js.map +1 -1
- package/build/button/edit.js +1 -1
- package/build/button/edit.js.map +1 -1
- package/build/categories/index.js +1 -0
- package/build/categories/index.js.map +1 -1
- package/build/comment-edit-link/index.js +13 -2
- package/build/comment-edit-link/index.js.map +1 -1
- package/build/comment-reply-link/index.js +13 -2
- package/build/comment-reply-link/index.js.map +1 -1
- package/build/comments/edit/comments-legacy.js +4 -1
- package/build/comments/edit/comments-legacy.js.map +1 -1
- package/build/cover/edit/block-controls.js +4 -2
- package/build/cover/edit/block-controls.js.map +1 -1
- package/build/cover/edit/index.js +2 -1
- package/build/cover/edit/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +4 -12
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/details/index.js +3 -1
- package/build/details/index.js.map +1 -1
- package/build/details/transforms.js +24 -0
- package/build/details/transforms.js.map +1 -0
- package/build/embed/embed-placeholder.js +8 -2
- package/build/embed/embed-placeholder.js.map +1 -1
- package/build/file/edit.js +12 -1
- package/build/file/edit.js.map +1 -1
- package/build/freeform/edit.js +4 -4
- package/build/freeform/edit.js.map +1 -1
- package/build/freeform/modal.js +12 -3
- package/build/freeform/modal.js.map +1 -1
- package/build/home-link/edit.js +3 -9
- package/build/home-link/edit.js.map +1 -1
- package/build/image/edit.js +44 -34
- package/build/image/edit.js.map +1 -1
- package/build/image/image.js +22 -10
- package/build/image/image.js.map +1 -1
- package/build/media-text/deprecated.js +144 -3
- package/build/media-text/deprecated.js.map +1 -1
- package/build/media-text/edit.js +5 -5
- package/build/media-text/edit.js.map +1 -1
- package/build/media-text/image-fill.js +12 -0
- package/build/media-text/image-fill.js.map +1 -0
- package/build/media-text/media-container.js +21 -18
- package/build/media-text/media-container.js.map +1 -1
- package/build/media-text/media-container.native.js +0 -7
- package/build/media-text/media-container.native.js.map +1 -1
- package/build/media-text/save.js +5 -6
- package/build/media-text/save.js.map +1 -1
- package/build/missing/edit.js +6 -3
- package/build/missing/edit.js.map +1 -1
- package/build/navigation/edit/deleted-navigation-warning.js +4 -1
- package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
- package/build/navigation/edit/index.js +4 -1
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/navigation-menu-delete-control.js +4 -1
- package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build/navigation/edit/placeholder/index.js +4 -1
- package/build/navigation/edit/placeholder/index.js.map +1 -1
- package/build/navigation/edit/responsive-wrapper.js +8 -2
- package/build/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build/navigation/edit/unsaved-inner-blocks.js +4 -4
- package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build/navigation-link/link-ui.js +5 -2
- package/build/navigation-link/link-ui.js.map +1 -1
- package/build/page-list/convert-to-links-modal.js +8 -2
- package/build/page-list/convert-to-links-modal.js.map +1 -1
- package/build/page-list/edit.js +7 -2
- package/build/page-list/edit.js.map +1 -1
- package/build/post-comments-form/form.js +4 -1
- package/build/post-comments-form/form.js.map +1 -1
- package/build/post-featured-image/dimension-controls.js +6 -8
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/post-featured-image/edit.js +5 -5
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/query/edit/enhanced-pagination-modal.js +4 -1
- package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build/query/edit/query-placeholder.js +8 -2
- package/build/query/edit/query-placeholder.js.map +1 -1
- package/build/site-logo/edit.js +15 -15
- package/build/site-logo/edit.js.map +1 -1
- package/build/social-link/edit.js +4 -1
- package/build/social-link/edit.js.map +1 -1
- package/build/social-links/edit.js +10 -9
- package/build/social-links/edit.js.map +1 -1
- package/build/template-part/edit/advanced-controls.js.map +1 -1
- package/build/template-part/edit/index.js +1 -1
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/placeholder.js +8 -2
- package/build/template-part/edit/placeholder.js.map +1 -1
- package/build/utils/hooks.js +10 -10
- package/build/utils/hooks.js.map +1 -1
- package/build/video/edit.js +22 -14
- package/build/video/edit.js.map +1 -1
- package/build/video/tracks-editor.js +12 -3
- package/build/video/tracks-editor.js.map +1 -1
- package/build-module/audio/edit.js +2 -1
- package/build-module/audio/edit.js.map +1 -1
- package/build-module/block/edit.js +4 -6
- package/build-module/block/edit.js.map +1 -1
- package/build-module/button/edit.js +1 -1
- package/build-module/button/edit.js.map +1 -1
- package/build-module/categories/index.js +1 -0
- package/build-module/categories/index.js.map +1 -1
- package/build-module/comment-edit-link/index.js +13 -2
- package/build-module/comment-edit-link/index.js.map +1 -1
- package/build-module/comment-reply-link/index.js +13 -2
- package/build-module/comment-reply-link/index.js.map +1 -1
- package/build-module/comments/edit/comments-legacy.js +4 -1
- package/build-module/comments/edit/comments-legacy.js.map +1 -1
- package/build-module/cover/edit/block-controls.js +4 -2
- package/build-module/cover/edit/block-controls.js.map +1 -1
- package/build-module/cover/edit/index.js +2 -1
- package/build-module/cover/edit/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +5 -13
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/details/index.js +3 -1
- package/build-module/details/index.js.map +1 -1
- package/build-module/details/transforms.js +18 -0
- package/build-module/details/transforms.js.map +1 -0
- package/build-module/embed/embed-placeholder.js +8 -2
- package/build-module/embed/embed-placeholder.js.map +1 -1
- package/build-module/file/edit.js +12 -1
- package/build-module/file/edit.js.map +1 -1
- package/build-module/freeform/edit.js +4 -4
- package/build-module/freeform/edit.js.map +1 -1
- package/build-module/freeform/modal.js +12 -3
- package/build-module/freeform/modal.js.map +1 -1
- package/build-module/home-link/edit.js +3 -9
- package/build-module/home-link/edit.js.map +1 -1
- package/build-module/image/edit.js +45 -34
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +23 -11
- package/build-module/image/image.js.map +1 -1
- package/build-module/media-text/deprecated.js +144 -3
- package/build-module/media-text/deprecated.js.map +1 -1
- package/build-module/media-text/edit.js +5 -5
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/media-text/image-fill.js +6 -0
- package/build-module/media-text/image-fill.js.map +1 -0
- package/build-module/media-text/media-container.js +21 -17
- package/build-module/media-text/media-container.js.map +1 -1
- package/build-module/media-text/media-container.native.js +0 -1
- package/build-module/media-text/media-container.native.js.map +1 -1
- package/build-module/media-text/save.js +5 -6
- package/build-module/media-text/save.js.map +1 -1
- package/build-module/missing/edit.js +6 -3
- package/build-module/missing/edit.js.map +1 -1
- package/build-module/navigation/edit/deleted-navigation-warning.js +4 -1
- package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
- package/build-module/navigation/edit/index.js +4 -1
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-delete-control.js +4 -1
- package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build-module/navigation/edit/placeholder/index.js +4 -1
- package/build-module/navigation/edit/placeholder/index.js.map +1 -1
- package/build-module/navigation/edit/responsive-wrapper.js +8 -2
- package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build-module/navigation/edit/unsaved-inner-blocks.js +4 -4
- package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build-module/navigation-link/link-ui.js +7 -4
- package/build-module/navigation-link/link-ui.js.map +1 -1
- package/build-module/page-list/convert-to-links-modal.js +8 -2
- package/build-module/page-list/convert-to-links-modal.js.map +1 -1
- package/build-module/page-list/edit.js +7 -2
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/post-comments-form/form.js +4 -1
- package/build-module/post-comments-form/form.js.map +1 -1
- package/build-module/post-featured-image/dimension-controls.js +6 -8
- package/build-module/post-featured-image/dimension-controls.js.map +1 -1
- package/build-module/post-featured-image/edit.js +6 -6
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/query/edit/enhanced-pagination-modal.js +4 -1
- package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build-module/query/edit/query-placeholder.js +8 -2
- package/build-module/query/edit/query-placeholder.js.map +1 -1
- package/build-module/site-logo/edit.js +16 -16
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/social-link/edit.js +4 -1
- package/build-module/social-link/edit.js.map +1 -1
- package/build-module/social-links/edit.js +11 -10
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/template-part/edit/advanced-controls.js.map +1 -1
- package/build-module/template-part/edit/index.js +1 -1
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/placeholder.js +8 -2
- package/build-module/template-part/edit/placeholder.js.map +1 -1
- package/build-module/utils/hooks.js +10 -10
- package/build-module/utils/hooks.js.map +1 -1
- package/build-module/video/edit.js +22 -15
- package/build-module/video/edit.js.map +1 -1
- package/build-module/video/tracks-editor.js +12 -3
- package/build-module/video/tracks-editor.js.map +1 -1
- package/build-style/button/editor-rtl.css +0 -4
- package/build-style/button/editor.css +0 -4
- package/build-style/buttons/editor-rtl.css +0 -3
- package/build-style/buttons/editor.css +0 -3
- package/build-style/comment-edit-link/style-rtl.css +94 -0
- package/build-style/comment-edit-link/style.css +94 -0
- package/build-style/comment-reply-link/style-rtl.css +94 -0
- package/build-style/comment-reply-link/style.css +94 -0
- package/build-style/comments-pagination/editor-rtl.css +2 -2
- package/build-style/comments-pagination/editor.css +2 -2
- package/build-style/cover/editor-rtl.css +0 -6
- package/build-style/cover/editor.css +0 -6
- package/build-style/editor-rtl.css +24 -68
- package/build-style/editor.css +24 -70
- package/build-style/group/editor-rtl.css +0 -1
- package/build-style/group/editor.css +0 -1
- package/build-style/image/editor-rtl.css +0 -1
- package/build-style/image/editor.css +0 -1
- package/build-style/media-text/editor-rtl.css +3 -1
- package/build-style/media-text/editor.css +3 -1
- package/build-style/media-text/style-rtl.css +20 -0
- package/build-style/media-text/style.css +20 -0
- package/build-style/navigation/editor-rtl.css +0 -1
- package/build-style/navigation/editor.css +0 -1
- package/build-style/post-featured-image/style-rtl.css +1 -1
- package/build-style/post-featured-image/style.css +1 -1
- package/build-style/query-pagination/editor-rtl.css +2 -16
- package/build-style/query-pagination/editor.css +2 -18
- package/build-style/query-pagination/style-rtl.css +0 -11
- package/build-style/query-pagination/style.css +0 -13
- package/build-style/site-title/editor-rtl.css +0 -4
- package/build-style/site-title/editor.css +0 -4
- package/build-style/social-links/editor-rtl.css +17 -0
- package/build-style/social-links/editor.css +17 -0
- package/build-style/style-rtl.css +29 -12
- package/build-style/style.css +29 -14
- package/build-style/video/editor-rtl.css +0 -29
- package/build-style/video/editor.css +0 -29
- package/package.json +35 -35
- package/src/audio/edit.js +1 -0
- package/src/block/edit.js +6 -4
- package/src/button/edit.js +1 -1
- package/src/button/editor.scss +0 -5
- package/src/buttons/editor.scss +0 -6
- package/src/categories/block.json +1 -0
- package/src/categories/index.php +13 -2
- package/src/comment-date/index.php +1 -1
- package/src/comment-edit-link/block.json +13 -2
- package/src/comment-edit-link/style.scss +4 -0
- package/src/comment-reply-link/block.json +13 -2
- package/src/comment-reply-link/style.scss +4 -0
- package/src/comments/edit/comments-legacy.js +2 -0
- package/src/comments-pagination/editor.scss +1 -1
- package/src/cover/edit/block-controls.js +2 -0
- package/src/cover/edit/index.js +1 -0
- package/src/cover/edit/inspector-controls.js +3 -15
- package/src/cover/editor.scss +0 -5
- package/src/cover/test/edit.js +30 -26
- package/src/details/index.js +2 -0
- package/src/details/transforms.js +26 -0
- package/src/embed/embed-placeholder.js +12 -2
- package/src/file/edit.js +11 -0
- package/src/form/index.php +2 -2
- package/src/freeform/edit.js +4 -4
- package/src/freeform/editor.scss +1 -1
- package/src/freeform/modal.js +10 -1
- package/src/gallery/editor.scss +1 -1
- package/src/group/editor.scss +0 -1
- package/src/home-link/edit.js +4 -7
- package/src/image/edit.js +42 -30
- package/src/image/editor.scss +0 -3
- package/src/image/image.js +75 -53
- package/src/media-text/deprecated.js +159 -3
- package/src/media-text/edit.js +5 -5
- package/src/media-text/editor.scss +3 -1
- package/src/media-text/image-fill.js +11 -0
- package/src/media-text/index.php +53 -43
- package/src/media-text/media-container.js +25 -25
- package/src/media-text/media-container.native.js +0 -2
- package/src/media-text/save.js +9 -13
- package/src/media-text/style.scss +21 -0
- package/src/media-text/test/image-fill.js +19 -0
- package/src/missing/edit.js +9 -3
- package/src/navigation/edit/deleted-navigation-warning.js +8 -1
- package/src/navigation/edit/index.js +2 -0
- package/src/navigation/edit/navigation-menu-delete-control.js +2 -0
- package/src/navigation/edit/placeholder/index.js +2 -0
- package/src/navigation/edit/responsive-wrapper.js +4 -0
- package/src/navigation/edit/unsaved-inner-blocks.js +4 -4
- package/src/navigation/editor.scss +6 -3
- package/src/navigation-link/link-ui.js +5 -3
- package/src/page-list/convert-to-links-modal.js +8 -1
- package/src/page-list/edit.js +7 -1
- package/src/page-list/index.php +3 -1
- package/src/post-comments-form/form.js +2 -0
- package/src/post-date/index.php +3 -3
- package/src/post-featured-image/dimension-controls.js +4 -4
- package/src/post-featured-image/edit.js +4 -6
- package/src/post-featured-image/style.scss +1 -1
- package/src/query/edit/enhanced-pagination-modal.js +6 -1
- package/src/query/edit/query-placeholder.js +4 -0
- package/src/query-pagination/editor.scss +1 -21
- package/src/query-pagination/style.scss +0 -15
- package/src/site-logo/edit.js +13 -20
- package/src/site-title/editor.scss +0 -4
- package/src/social-link/edit.js +2 -0
- package/src/social-links/edit.js +17 -10
- package/src/social-links/editor.scss +24 -5
- package/src/style.scss +2 -0
- package/src/tag-cloud/index.php +7 -2
- package/src/template-part/edit/advanced-controls.js +0 -1
- package/src/template-part/edit/index.js +12 -10
- package/src/template-part/edit/placeholder.js +8 -1
- package/src/utils/hooks.js +11 -11
- package/src/video/edit.js +26 -21
- package/src/video/editor.scss +0 -45
- package/src/video/tracks-editor.js +6 -0
- package/src/media-text/test/media-container.js +0 -24
|
@@ -134,8 +134,7 @@ const DimensionControls = ( {
|
|
|
134
134
|
panelId={ clientId }
|
|
135
135
|
>
|
|
136
136
|
<SelectControl
|
|
137
|
-
|
|
138
|
-
__next40pxDefaultSize={ false }
|
|
137
|
+
__next40pxDefaultSize
|
|
139
138
|
__nextHasNoMarginBottom
|
|
140
139
|
label={ __( 'Aspect ratio' ) }
|
|
141
140
|
value={ aspectRatio }
|
|
@@ -157,6 +156,7 @@ const DimensionControls = ( {
|
|
|
157
156
|
panelId={ clientId }
|
|
158
157
|
>
|
|
159
158
|
<UnitControl
|
|
159
|
+
__next40pxDefaultSize
|
|
160
160
|
label={ __( 'Height' ) }
|
|
161
161
|
labelPosition="top"
|
|
162
162
|
value={ height || '' }
|
|
@@ -179,6 +179,7 @@ const DimensionControls = ( {
|
|
|
179
179
|
panelId={ clientId }
|
|
180
180
|
>
|
|
181
181
|
<UnitControl
|
|
182
|
+
__next40pxDefaultSize
|
|
182
183
|
label={ __( 'Width' ) }
|
|
183
184
|
labelPosition="top"
|
|
184
185
|
value={ width || '' }
|
|
@@ -235,8 +236,7 @@ const DimensionControls = ( {
|
|
|
235
236
|
panelId={ clientId }
|
|
236
237
|
>
|
|
237
238
|
<SelectControl
|
|
238
|
-
|
|
239
|
-
__next40pxDefaultSize={ false }
|
|
239
|
+
__next40pxDefaultSize
|
|
240
240
|
__nextHasNoMarginBottom
|
|
241
241
|
label={ __( 'Resolution' ) }
|
|
242
242
|
value={ sizeSlug || DEFAULT_SIZE }
|
|
@@ -10,7 +10,6 @@ import { isBlobURL } from '@wordpress/blob';
|
|
|
10
10
|
import { useEntityProp, store as coreStore } from '@wordpress/core-data';
|
|
11
11
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
12
12
|
import {
|
|
13
|
-
MenuItem,
|
|
14
13
|
ToggleControl,
|
|
15
14
|
PanelBody,
|
|
16
15
|
Placeholder,
|
|
@@ -309,6 +308,8 @@ export default function PostFeaturedImageEdit( {
|
|
|
309
308
|
mediaLibraryButton={ ( { open } ) => {
|
|
310
309
|
return (
|
|
311
310
|
<Button
|
|
311
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
312
|
+
__next40pxDefaultSize={ false }
|
|
312
313
|
icon={ upload }
|
|
313
314
|
variant="primary"
|
|
314
315
|
label={ label }
|
|
@@ -366,11 +367,8 @@ export default function PostFeaturedImageEdit( {
|
|
|
366
367
|
accept="image/*"
|
|
367
368
|
onSelect={ onSelectImage }
|
|
368
369
|
onError={ onUploadError }
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
{ __( 'Reset' ) }
|
|
372
|
-
</MenuItem>
|
|
373
|
-
</MediaReplaceFlow>
|
|
370
|
+
onReset={ () => setFeaturedImage( 0 ) }
|
|
371
|
+
/>
|
|
374
372
|
</BlockControls>
|
|
375
373
|
) }
|
|
376
374
|
<figure { ...blockProps }>
|
|
@@ -75,7 +75,12 @@ export default function EnhancedPaginationModal( {
|
|
|
75
75
|
>
|
|
76
76
|
<VStack alignment="right" spacing={ 5 }>
|
|
77
77
|
<span id={ modalDescriptionId }>{ notice }</span>
|
|
78
|
-
<Button
|
|
78
|
+
<Button
|
|
79
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
80
|
+
__next40pxDefaultSize={ false }
|
|
81
|
+
variant="primary"
|
|
82
|
+
onClick={ closeModal }
|
|
83
|
+
>
|
|
79
84
|
{ __( 'OK' ) }
|
|
80
85
|
</Button>
|
|
81
86
|
</VStack>
|
|
@@ -79,6 +79,8 @@ export default function QueryPlaceholder( {
|
|
|
79
79
|
>
|
|
80
80
|
{ !! hasPatterns && (
|
|
81
81
|
<Button
|
|
82
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
83
|
+
__next40pxDefaultSize={ false }
|
|
82
84
|
variant="primary"
|
|
83
85
|
onClick={ openPatternSelectionModal }
|
|
84
86
|
>
|
|
@@ -87,6 +89,8 @@ export default function QueryPlaceholder( {
|
|
|
87
89
|
) }
|
|
88
90
|
|
|
89
91
|
<Button
|
|
92
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
93
|
+
__next40pxDefaultSize={ false }
|
|
90
94
|
variant="secondary"
|
|
91
95
|
onClick={ () => {
|
|
92
96
|
setIsStartingBlank( true );
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
$pagination-margin: 0.5em;
|
|
2
|
-
|
|
3
1
|
// Center flex items. This has an equivalent in style.scss.
|
|
4
2
|
.wp-block[data-align="center"] > .wp-block-query-pagination {
|
|
5
3
|
justify-content: center;
|
|
6
4
|
}
|
|
7
5
|
|
|
8
|
-
.editor-styles-wrapper {
|
|
6
|
+
:where(.editor-styles-wrapper) {
|
|
9
7
|
.wp-block-query-pagination {
|
|
10
8
|
max-width: 100%;
|
|
11
9
|
&.block-editor-block-list__layout {
|
|
@@ -14,21 +12,3 @@ $pagination-margin: 0.5em;
|
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
14
|
|
|
17
|
-
.wp-block-query-pagination {
|
|
18
|
-
> .wp-block-query-pagination-next,
|
|
19
|
-
> .wp-block-query-pagination-previous,
|
|
20
|
-
> .wp-block-query-pagination-numbers {
|
|
21
|
-
// Override editor auto block margins.
|
|
22
|
-
margin-left: 0;
|
|
23
|
-
margin-top: $pagination-margin;
|
|
24
|
-
|
|
25
|
-
/*rtl:ignore*/
|
|
26
|
-
margin-right: $pagination-margin;
|
|
27
|
-
margin-bottom: $pagination-margin;
|
|
28
|
-
|
|
29
|
-
&:last-child {
|
|
30
|
-
/*rtl:ignore*/
|
|
31
|
-
margin-right: 0;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
$pagination-margin: 0.5em;
|
|
2
1
|
.wp-block-query-pagination {
|
|
3
|
-
// Increased specificity to override blocks default margin.
|
|
4
|
-
> .wp-block-query-pagination-next,
|
|
5
|
-
> .wp-block-query-pagination-previous,
|
|
6
|
-
> .wp-block-query-pagination-numbers {
|
|
7
|
-
/*rtl:ignore*/
|
|
8
|
-
margin-right: $pagination-margin;
|
|
9
|
-
margin-bottom: $pagination-margin;
|
|
10
|
-
|
|
11
|
-
&:last-child {
|
|
12
|
-
/*rtl:ignore*/
|
|
13
|
-
margin-right: 0;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
2
|
// This moves the next link to the right side of the container,
|
|
18
3
|
// which is important when it's the only block displayed
|
|
19
4
|
// and the block has a "space-between" justification.
|
package/src/site-logo/edit.js
CHANGED
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
} from '@wordpress/element';
|
|
15
15
|
import { __, isRTL } from '@wordpress/i18n';
|
|
16
16
|
import {
|
|
17
|
-
MenuItem,
|
|
18
17
|
PanelBody,
|
|
19
18
|
RangeControl,
|
|
20
19
|
ResizableBox,
|
|
@@ -356,22 +355,11 @@ function SiteLogoReplaceFlow( {
|
|
|
356
355
|
return (
|
|
357
356
|
<MediaReplaceFlow
|
|
358
357
|
{ ...mediaReplaceProps }
|
|
358
|
+
mediaURL={ mediaURL }
|
|
359
359
|
allowedTypes={ ALLOWED_MEDIA_TYPES }
|
|
360
360
|
accept={ ACCEPT_MEDIA_STRING }
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
mediaURL && (
|
|
364
|
-
<MenuItem
|
|
365
|
-
onClick={ () => {
|
|
366
|
-
onRemoveLogo();
|
|
367
|
-
onClose();
|
|
368
|
-
} }
|
|
369
|
-
>
|
|
370
|
-
{ __( 'Reset' ) }
|
|
371
|
-
</MenuItem>
|
|
372
|
-
)
|
|
373
|
-
}
|
|
374
|
-
</MediaReplaceFlow>
|
|
361
|
+
onReset={ onRemoveLogo }
|
|
362
|
+
/>
|
|
375
363
|
);
|
|
376
364
|
}
|
|
377
365
|
|
|
@@ -435,7 +423,7 @@ export default function LogoEdit( {
|
|
|
435
423
|
context: 'view',
|
|
436
424
|
} );
|
|
437
425
|
const _isRequestingMediaItem =
|
|
438
|
-
_siteLogoId &&
|
|
426
|
+
!! _siteLogoId &&
|
|
439
427
|
! select( coreStore ).hasFinishedResolution( 'getMedia', [
|
|
440
428
|
_siteLogoId,
|
|
441
429
|
{ context: 'view' },
|
|
@@ -639,6 +627,8 @@ export default function LogoEdit( {
|
|
|
639
627
|
render={ ( { open } ) => (
|
|
640
628
|
<div className="block-library-site-logo__inspector-upload-container">
|
|
641
629
|
<Button
|
|
630
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
631
|
+
__next40pxDefaultSize={ false }
|
|
642
632
|
onClick={ open }
|
|
643
633
|
variant="secondary"
|
|
644
634
|
>
|
|
@@ -664,16 +654,17 @@ export default function LogoEdit( {
|
|
|
664
654
|
{ controls }
|
|
665
655
|
{ mediaInspectorPanel }
|
|
666
656
|
{ ( !! logoUrl || !! temporaryURL ) && logoImage }
|
|
667
|
-
{
|
|
668
|
-
|
|
669
|
-
|
|
657
|
+
{ ( isLoading ||
|
|
658
|
+
( ! temporaryURL && ! logoUrl && ! canUserEdit ) ) && (
|
|
659
|
+
<Placeholder className="site-logo_placeholder" withIllustration>
|
|
660
|
+
{ isLoading && (
|
|
670
661
|
<span className="components-placeholder__preview">
|
|
671
662
|
<Spinner />
|
|
672
663
|
</span>
|
|
673
664
|
) }
|
|
674
665
|
</Placeholder>
|
|
675
666
|
) }
|
|
676
|
-
{ ! temporaryURL && ! logoUrl && canUserEdit && (
|
|
667
|
+
{ ! isLoading && ! temporaryURL && ! logoUrl && canUserEdit && (
|
|
677
668
|
<MediaPlaceholder
|
|
678
669
|
onSelect={ onInitialSelectLogo }
|
|
679
670
|
accept={ ACCEPT_MEDIA_STRING }
|
|
@@ -683,6 +674,8 @@ export default function LogoEdit( {
|
|
|
683
674
|
mediaLibraryButton={ ( { open } ) => {
|
|
684
675
|
return (
|
|
685
676
|
<Button
|
|
677
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
678
|
+
__next40pxDefaultSize={ false }
|
|
686
679
|
icon={ upload }
|
|
687
680
|
variant="primary"
|
|
688
681
|
label={ __( 'Choose logo' ) }
|
package/src/social-link/edit.js
CHANGED
package/src/social-links/edit.js
CHANGED
|
@@ -14,8 +14,10 @@ import {
|
|
|
14
14
|
InspectorControls,
|
|
15
15
|
ContrastChecker,
|
|
16
16
|
withColors,
|
|
17
|
+
InnerBlocks,
|
|
17
18
|
__experimentalColorGradientSettingsDropdown as ColorGradientSettingsDropdown,
|
|
18
19
|
__experimentalUseMultipleOriginColorsAndGradients as useMultipleOriginColorsAndGradients,
|
|
20
|
+
store as blockEditorStore,
|
|
19
21
|
} from '@wordpress/block-editor';
|
|
20
22
|
import {
|
|
21
23
|
MenuGroup,
|
|
@@ -26,6 +28,7 @@ import {
|
|
|
26
28
|
} from '@wordpress/components';
|
|
27
29
|
import { __ } from '@wordpress/i18n';
|
|
28
30
|
import { check } from '@wordpress/icons';
|
|
31
|
+
import { useSelect } from '@wordpress/data';
|
|
29
32
|
|
|
30
33
|
const sizeOptions = [
|
|
31
34
|
{ name: __( 'Small' ), value: 'has-small-icon-size' },
|
|
@@ -55,14 +58,22 @@ export function SocialLinksEdit( props ) {
|
|
|
55
58
|
size,
|
|
56
59
|
} = attributes;
|
|
57
60
|
|
|
61
|
+
const hasSelectedChild = useSelect(
|
|
62
|
+
( select ) =>
|
|
63
|
+
select( blockEditorStore ).hasSelectedInnerBlock( clientId ),
|
|
64
|
+
[ clientId ]
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
const hasAnySelected = isSelected || hasSelectedChild;
|
|
68
|
+
|
|
58
69
|
const logosOnly = attributes.className?.includes( 'is-style-logos-only' );
|
|
59
70
|
|
|
60
71
|
// Remove icon background color when logos only style is selected or
|
|
61
72
|
// restore it when any other style is selected.
|
|
62
|
-
const
|
|
73
|
+
const backgroundBackupRef = useRef( {} );
|
|
63
74
|
useEffect( () => {
|
|
64
75
|
if ( logosOnly ) {
|
|
65
|
-
|
|
76
|
+
backgroundBackupRef.current = {
|
|
66
77
|
iconBackgroundColor,
|
|
67
78
|
iconBackgroundColorValue,
|
|
68
79
|
customIconBackgroundColor,
|
|
@@ -73,8 +84,9 @@ export function SocialLinksEdit( props ) {
|
|
|
73
84
|
iconBackgroundColorValue: undefined,
|
|
74
85
|
} );
|
|
75
86
|
} else {
|
|
76
|
-
setAttributes( { ...
|
|
87
|
+
setAttributes( { ...backgroundBackupRef.current } );
|
|
77
88
|
}
|
|
89
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
78
90
|
}, [ logosOnly ] );
|
|
79
91
|
|
|
80
92
|
const SocialPlaceholder = (
|
|
@@ -87,12 +99,6 @@ export function SocialLinksEdit( props ) {
|
|
|
87
99
|
</li>
|
|
88
100
|
);
|
|
89
101
|
|
|
90
|
-
const SelectedSocialPlaceholder = (
|
|
91
|
-
<li className="wp-block-social-links__social-prompt">
|
|
92
|
-
{ __( 'Click plus to add' ) }
|
|
93
|
-
</li>
|
|
94
|
-
);
|
|
95
|
-
|
|
96
102
|
// Fallback color values are used maintain selections in case switching
|
|
97
103
|
// themes and named colors in palette do not match.
|
|
98
104
|
const className = clsx( size, {
|
|
@@ -104,10 +110,11 @@ export function SocialLinksEdit( props ) {
|
|
|
104
110
|
|
|
105
111
|
const blockProps = useBlockProps( { className } );
|
|
106
112
|
const innerBlocksProps = useInnerBlocksProps( blockProps, {
|
|
107
|
-
placeholder: isSelected
|
|
113
|
+
placeholder: ! isSelected && SocialPlaceholder,
|
|
108
114
|
templateLock: false,
|
|
109
115
|
orientation: attributes.layout?.orientation ?? 'horizontal',
|
|
110
116
|
__experimentalAppenderTagName: 'li',
|
|
117
|
+
renderAppender: hasAnySelected && InnerBlocks.ButtonBlockAppender,
|
|
111
118
|
} );
|
|
112
119
|
|
|
113
120
|
const POPOVER_PROPS = {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// Editor specific styles for Social Links.
|
|
2
|
-
.wp-block-social-links {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
margin-left: $grid-unit-10;
|
|
6
|
-
}
|
|
2
|
+
.wp-block-social-links div.block-editor-url-input {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
margin-left: $grid-unit-10;
|
|
7
5
|
}
|
|
8
6
|
|
|
7
|
+
|
|
9
8
|
// Prevent toolbar from jumping when selecting / hovering a link.
|
|
10
9
|
.wp-social-link:hover {
|
|
11
10
|
transform: none;
|
|
@@ -98,3 +97,23 @@
|
|
|
98
97
|
.wp-social-link.wp-social-link__is-incomplete:focus {
|
|
99
98
|
opacity: 1;
|
|
100
99
|
}
|
|
100
|
+
|
|
101
|
+
.wp-block-social-links .block-list-appender {
|
|
102
|
+
position: static; // display inline.
|
|
103
|
+
|
|
104
|
+
.block-editor-button-block-appender.components-button.components-button {
|
|
105
|
+
padding: $grid-unit-10 - 2px;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.wp-block-social-links {
|
|
110
|
+
&.has-small-icon-size .block-editor-button-block-appender.components-button.components-button {
|
|
111
|
+
padding: 0;
|
|
112
|
+
}
|
|
113
|
+
&.has-large-icon-size .block-editor-button-block-appender.components-button.components-button {
|
|
114
|
+
padding: $grid-unit-20 - 2px;
|
|
115
|
+
}
|
|
116
|
+
&.has-huge-icon-size .block-editor-button-block-appender.components-button.components-button {
|
|
117
|
+
padding: $grid-unit-30 - 1px;
|
|
118
|
+
}
|
|
119
|
+
}
|
package/src/style.scss
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
@import "./comment-date/style.scss";
|
|
14
14
|
@import "./comment-content/style.scss";
|
|
15
15
|
@import "./comment-author-name/style.scss";
|
|
16
|
+
@import "./comment-edit-link/style.scss";
|
|
17
|
+
@import "./comment-reply-link/style.scss";
|
|
16
18
|
@import "./cover/style.scss";
|
|
17
19
|
@import "./details/style.scss";
|
|
18
20
|
@import "./embed/style.scss";
|
package/src/tag-cloud/index.php
CHANGED
|
@@ -29,8 +29,13 @@ function render_block_core_tag_cloud( $attributes ) {
|
|
|
29
29
|
);
|
|
30
30
|
$tag_cloud = wp_tag_cloud( $args );
|
|
31
31
|
|
|
32
|
-
if (
|
|
33
|
-
|
|
32
|
+
if ( empty( $tag_cloud ) ) {
|
|
33
|
+
// Display placeholder content when there are no tags only in editor.
|
|
34
|
+
if ( wp_is_serving_rest_request() ) {
|
|
35
|
+
$tag_cloud = __( 'There’s no content to show here yet.' );
|
|
36
|
+
} else {
|
|
37
|
+
return '';
|
|
38
|
+
}
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
$wrapper_attributes = get_block_wrapper_attributes();
|
|
@@ -254,16 +254,18 @@ export default function TemplatePartEdit( {
|
|
|
254
254
|
</ToolbarButton>
|
|
255
255
|
</BlockControls>
|
|
256
256
|
) }
|
|
257
|
-
|
|
258
|
-
<
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
257
|
+
{ canUserEdit && (
|
|
258
|
+
<InspectorControls group="advanced">
|
|
259
|
+
<TemplatePartAdvancedControls
|
|
260
|
+
tagName={ tagName }
|
|
261
|
+
setAttributes={ setAttributes }
|
|
262
|
+
isEntityAvailable={ isEntityAvailable }
|
|
263
|
+
templatePartId={ templatePartId }
|
|
264
|
+
defaultWrapper={ areaObject.tagName }
|
|
265
|
+
hasInnerBlocks={ hasInnerBlocks }
|
|
266
|
+
/>
|
|
267
|
+
</InspectorControls>
|
|
268
|
+
) }
|
|
267
269
|
{ isPlaceholder && (
|
|
268
270
|
<TagName { ...blockProps }>
|
|
269
271
|
<TemplatePartPlaceholder
|
|
@@ -74,13 +74,20 @@ export default function TemplatePartPlaceholder( {
|
|
|
74
74
|
|
|
75
75
|
{ ! isResolving &&
|
|
76
76
|
!! ( templateParts.length || blockPatterns.length ) && (
|
|
77
|
-
<Button
|
|
77
|
+
<Button
|
|
78
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
79
|
+
__next40pxDefaultSize={ false }
|
|
80
|
+
variant="primary"
|
|
81
|
+
onClick={ onOpenSelectionModal }
|
|
82
|
+
>
|
|
78
83
|
{ __( 'Choose' ) }
|
|
79
84
|
</Button>
|
|
80
85
|
) }
|
|
81
86
|
|
|
82
87
|
{ ! isResolving && isBlockBasedTheme && canCreateTemplatePart && (
|
|
83
88
|
<Button
|
|
89
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
90
|
+
__next40pxDefaultSize={ false }
|
|
84
91
|
variant="secondary"
|
|
85
92
|
onClick={ () => {
|
|
86
93
|
setShowTitleModal( true );
|
package/src/utils/hooks.js
CHANGED
|
@@ -37,36 +37,36 @@ export function useCanEditEntity( kind, name, recordId ) {
|
|
|
37
37
|
* @param {Function} args.onError Function called when an error happens.
|
|
38
38
|
*/
|
|
39
39
|
export function useUploadMediaFromBlobURL( args = {} ) {
|
|
40
|
-
const
|
|
41
|
-
const
|
|
40
|
+
const latestArgsRef = useRef( args );
|
|
41
|
+
const hasUploadStartedRef = useRef( false );
|
|
42
42
|
const { getSettings } = useSelect( blockEditorStore );
|
|
43
43
|
|
|
44
44
|
useLayoutEffect( () => {
|
|
45
|
-
|
|
45
|
+
latestArgsRef.current = args;
|
|
46
46
|
} );
|
|
47
47
|
|
|
48
48
|
useEffect( () => {
|
|
49
49
|
// Uploading is a special effect that can't be canceled via the cleanup method.
|
|
50
50
|
// The extra check avoids duplicate uploads in development mode (React.StrictMode).
|
|
51
|
-
if (
|
|
51
|
+
if ( hasUploadStartedRef.current ) {
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
if (
|
|
55
|
-
!
|
|
56
|
-
! isBlobURL(
|
|
55
|
+
! latestArgsRef.current.url ||
|
|
56
|
+
! isBlobURL( latestArgsRef.current.url )
|
|
57
57
|
) {
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
const file = getBlobByURL(
|
|
61
|
+
const file = getBlobByURL( latestArgsRef.current.url );
|
|
62
62
|
if ( ! file ) {
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
const { url, allowedTypes, onChange, onError } =
|
|
66
|
+
const { url, allowedTypes, onChange, onError } = latestArgsRef.current;
|
|
67
67
|
const { mediaUpload } = getSettings();
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
hasUploadStartedRef.current = true;
|
|
70
70
|
|
|
71
71
|
mediaUpload( {
|
|
72
72
|
filesList: [ file ],
|
|
@@ -78,12 +78,12 @@ export function useUploadMediaFromBlobURL( args = {} ) {
|
|
|
78
78
|
|
|
79
79
|
revokeBlobURL( url );
|
|
80
80
|
onChange( media );
|
|
81
|
-
|
|
81
|
+
hasUploadStartedRef.current = false;
|
|
82
82
|
},
|
|
83
83
|
onError: ( message ) => {
|
|
84
84
|
revokeBlobURL( url );
|
|
85
85
|
onError( message );
|
|
86
|
-
|
|
86
|
+
hasUploadStartedRef.current = false;
|
|
87
87
|
},
|
|
88
88
|
} );
|
|
89
89
|
}, [ getSettings ] );
|
package/src/video/edit.js
CHANGED
|
@@ -42,23 +42,6 @@ import TracksEditor from './tracks-editor';
|
|
|
42
42
|
import Tracks from './tracks';
|
|
43
43
|
import { Caption } from '../utils/caption';
|
|
44
44
|
|
|
45
|
-
// Much of this description is duplicated from MediaPlaceholder.
|
|
46
|
-
const placeholder = ( content ) => {
|
|
47
|
-
return (
|
|
48
|
-
<Placeholder
|
|
49
|
-
className="block-editor-media-placeholder"
|
|
50
|
-
withIllustration
|
|
51
|
-
icon={ icon }
|
|
52
|
-
label={ __( 'Video' ) }
|
|
53
|
-
instructions={ __(
|
|
54
|
-
'Upload a video file, pick one from your media library, or add one with a URL.'
|
|
55
|
-
) }
|
|
56
|
-
>
|
|
57
|
-
{ content }
|
|
58
|
-
</Placeholder>
|
|
59
|
-
);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
45
|
const ALLOWED_MEDIA_TYPES = [ 'video' ];
|
|
63
46
|
const VIDEO_POSTER_ALLOWED_MEDIA_TYPES = [ 'image' ];
|
|
64
47
|
|
|
@@ -149,6 +132,23 @@ function VideoEdit( {
|
|
|
149
132
|
createErrorNotice( message, { type: 'snackbar' } );
|
|
150
133
|
}
|
|
151
134
|
|
|
135
|
+
// Much of this description is duplicated from MediaPlaceholder.
|
|
136
|
+
const placeholder = ( content ) => {
|
|
137
|
+
return (
|
|
138
|
+
<Placeholder
|
|
139
|
+
className="block-editor-media-placeholder"
|
|
140
|
+
withIllustration={ ! isSingleSelected }
|
|
141
|
+
icon={ icon }
|
|
142
|
+
label={ __( 'Video' ) }
|
|
143
|
+
instructions={ __(
|
|
144
|
+
'Upload a video file, pick one from your media library, or add one with a URL.'
|
|
145
|
+
) }
|
|
146
|
+
>
|
|
147
|
+
{ content }
|
|
148
|
+
</Placeholder>
|
|
149
|
+
);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
152
|
const classes = clsx( className, {
|
|
153
153
|
'is-transient': !! temporaryURL,
|
|
154
154
|
} );
|
|
@@ -208,6 +208,7 @@ function VideoEdit( {
|
|
|
208
208
|
onSelect={ onSelectVideo }
|
|
209
209
|
onSelectURL={ onSelectURL }
|
|
210
210
|
onError={ onUploadError }
|
|
211
|
+
onReset={ () => onSelectVideo( undefined ) }
|
|
211
212
|
/>
|
|
212
213
|
</BlockControls>
|
|
213
214
|
</>
|
|
@@ -231,6 +232,8 @@ function VideoEdit( {
|
|
|
231
232
|
}
|
|
232
233
|
render={ ( { open } ) => (
|
|
233
234
|
<Button
|
|
235
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
236
|
+
__next40pxDefaultSize={ false }
|
|
234
237
|
variant="primary"
|
|
235
238
|
onClick={ open }
|
|
236
239
|
ref={ posterImageButton }
|
|
@@ -259,6 +262,8 @@ function VideoEdit( {
|
|
|
259
262
|
</p>
|
|
260
263
|
{ !! poster && (
|
|
261
264
|
<Button
|
|
265
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
266
|
+
__next40pxDefaultSize={ false }
|
|
262
267
|
onClick={ onRemovePoster }
|
|
263
268
|
variant="tertiary"
|
|
264
269
|
>
|
|
@@ -271,10 +276,10 @@ function VideoEdit( {
|
|
|
271
276
|
</InspectorControls>
|
|
272
277
|
<figure { ...blockProps }>
|
|
273
278
|
{ /*
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
279
|
+
Disable the video tag if the block is not selected
|
|
280
|
+
so the user clicking on it won't play the
|
|
281
|
+
video when the controls are enabled.
|
|
282
|
+
*/ }
|
|
278
283
|
<Disabled isDisabled={ ! isSingleSelected }>
|
|
279
284
|
<video
|
|
280
285
|
controls={ controls }
|
package/src/video/editor.scss
CHANGED
|
@@ -1,40 +1,3 @@
|
|
|
1
|
-
// Provide special styling for the placeholder.
|
|
2
|
-
// @todo this particular minimal style of placeholder could be componentized further.
|
|
3
|
-
.wp-block-video.wp-block-video {
|
|
4
|
-
// Show Placeholder style on-select.
|
|
5
|
-
&.is-selected .components-placeholder {
|
|
6
|
-
// Block UI appearance.
|
|
7
|
-
color: $gray-900;
|
|
8
|
-
background-color: $white;
|
|
9
|
-
box-shadow: inset 0 0 0 $border-width $gray-900;
|
|
10
|
-
border: none;
|
|
11
|
-
|
|
12
|
-
// @todo this should eventually be overridden by a custom border-radius set in the inspector.
|
|
13
|
-
border-radius: $radius-block-ui;
|
|
14
|
-
|
|
15
|
-
> svg {
|
|
16
|
-
opacity: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.components-placeholder__illustration {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&::before {
|
|
24
|
-
opacity: 0;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Remove the transition while we still have a legacy placeholder style.
|
|
29
|
-
// Otherwise the content jumps between the 1px placeholder border, and any inherited custom
|
|
30
|
-
// parent border that may get applied when you deselect.
|
|
31
|
-
.components-placeholder__label,
|
|
32
|
-
.components-placeholder__instructions,
|
|
33
|
-
.components-button {
|
|
34
|
-
transition: none;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
1
|
.wp-block[data-align="center"] > .wp-block-video {
|
|
39
2
|
text-align: center;
|
|
40
3
|
}
|
|
@@ -85,7 +48,6 @@
|
|
|
85
48
|
|
|
86
49
|
.block-library-video-tracks-editor > .components-popover__content {
|
|
87
50
|
width: 360px;
|
|
88
|
-
padding: 0;
|
|
89
51
|
}
|
|
90
52
|
|
|
91
53
|
.block-library-video-tracks-editor__track-list,
|
|
@@ -94,10 +56,3 @@
|
|
|
94
56
|
padding: 0;
|
|
95
57
|
}
|
|
96
58
|
}
|
|
97
|
-
|
|
98
|
-
.block-library-video-tracks-editor__single-track-editor,
|
|
99
|
-
.block-library-video-tracks-editor__track-list,
|
|
100
|
-
.block-library-video-tracks-editor__add-tracks-container {
|
|
101
|
-
padding: $grid-unit-15;
|
|
102
|
-
}
|
|
103
|
-
|