@wordpress/block-library 8.6.0 → 8.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/buttons/index.js +1 -0
- package/build/buttons/index.js.map +1 -1
- package/build/buttons/transforms.js +1 -0
- package/build/buttons/transforms.js.map +1 -1
- package/build/columns/edit.js +4 -2
- package/build/columns/edit.js.map +1 -1
- package/build/columns/index.js +4 -0
- package/build/columns/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +2 -2
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/gallery/edit.js +8 -5
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/use-image-sizes.js +1 -1
- package/build/gallery/use-image-sizes.js.map +1 -1
- package/build/group/deprecated.js +4 -2
- package/build/group/deprecated.js.map +1 -1
- package/build/group/edit.js +22 -5
- package/build/group/edit.js.map +1 -1
- package/build/group/placeholder.js +11 -1
- package/build/group/placeholder.js.map +1 -1
- package/build/group/variations.js +23 -3
- package/build/group/variations.js.map +1 -1
- package/build/image/edit.js +1 -1
- package/build/image/edit.js.map +1 -1
- package/build/image/edit.native.js +1 -1
- package/build/image/edit.native.js.map +1 -1
- package/build/image/image.js +8 -6
- package/build/image/image.js.map +1 -1
- package/build/image/index.js +7 -2
- package/build/image/index.js.map +1 -1
- package/build/latest-posts/edit.js +1 -0
- package/build/latest-posts/edit.js.map +1 -1
- package/build/media-text/deprecated.js +228 -18
- package/build/media-text/deprecated.js.map +1 -1
- package/build/media-text/edit.js +3 -3
- package/build/media-text/edit.js.map +1 -1
- package/build/media-text/index.js +1 -1
- package/build/navigation/edit/index.js +1 -12
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/inner-blocks.js +1 -4
- package/build/navigation/edit/inner-blocks.js.map +1 -1
- package/build/navigation/index.js +0 -1
- package/build/navigation/index.js.map +1 -1
- package/build/post-date/edit.js +2 -1
- package/build/post-date/edit.js.map +1 -1
- package/build/post-date/index.js +4 -1
- package/build/post-date/index.js.map +1 -1
- package/build/post-date/variations.js +28 -0
- package/build/post-date/variations.js.map +1 -0
- package/build/post-excerpt/edit.js +39 -10
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-featured-image/dimension-controls.js +2 -2
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/post-template/index.js +1 -1
- package/build/post-time-to-read/index.js +17 -1
- package/build/post-time-to-read/index.js.map +1 -1
- package/build/quote/index.js +1 -0
- package/build/quote/index.js.map +1 -1
- package/build/spacer/edit.js +16 -6
- package/build/spacer/edit.js.map +1 -1
- package/build-module/buttons/index.js +1 -0
- package/build-module/buttons/index.js.map +1 -1
- package/build-module/buttons/transforms.js +1 -0
- package/build-module/buttons/transforms.js.map +1 -1
- package/build-module/columns/edit.js +4 -2
- package/build-module/columns/edit.js.map +1 -1
- package/build-module/columns/index.js +4 -0
- package/build-module/columns/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +2 -2
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/gallery/edit.js +8 -5
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/use-image-sizes.js +1 -1
- package/build-module/gallery/use-image-sizes.js.map +1 -1
- package/build-module/group/deprecated.js +4 -2
- package/build-module/group/deprecated.js.map +1 -1
- package/build-module/group/edit.js +21 -5
- package/build-module/group/edit.js.map +1 -1
- package/build-module/group/placeholder.js +11 -1
- package/build-module/group/placeholder.js.map +1 -1
- package/build-module/group/variations.js +24 -1
- package/build-module/group/variations.js.map +1 -1
- package/build-module/image/edit.js +1 -1
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/edit.native.js +1 -1
- package/build-module/image/edit.native.js.map +1 -1
- package/build-module/image/image.js +8 -6
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/index.js +7 -2
- package/build-module/image/index.js.map +1 -1
- package/build-module/latest-posts/edit.js +1 -0
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/media-text/deprecated.js +227 -18
- package/build-module/media-text/deprecated.js.map +1 -1
- package/build-module/media-text/edit.js +3 -3
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/media-text/index.js +1 -1
- package/build-module/navigation/edit/index.js +1 -12
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/inner-blocks.js +1 -4
- package/build-module/navigation/edit/inner-blocks.js.map +1 -1
- package/build-module/navigation/index.js +0 -1
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/post-date/edit.js +2 -1
- package/build-module/post-date/edit.js.map +1 -1
- package/build-module/post-date/index.js +3 -1
- package/build-module/post-date/index.js.map +1 -1
- package/build-module/post-date/variations.js +18 -0
- package/build-module/post-date/variations.js.map +1 -0
- package/build-module/post-excerpt/edit.js +38 -11
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-featured-image/dimension-controls.js +2 -2
- package/build-module/post-featured-image/dimension-controls.js.map +1 -1
- package/build-module/post-template/index.js +1 -1
- package/build-module/post-time-to-read/index.js +17 -1
- package/build-module/post-time-to-read/index.js.map +1 -1
- package/build-module/quote/index.js +1 -0
- package/build-module/quote/index.js.map +1 -1
- package/build-module/spacer/edit.js +16 -6
- package/build-module/spacer/edit.js.map +1 -1
- package/build-style/categories/editor-rtl.css +5 -0
- package/build-style/categories/editor.css +5 -0
- package/build-style/categories/style-rtl.css +4 -0
- package/build-style/categories/style.css +4 -0
- package/build-style/editor-rtl.css +6 -0
- package/build-style/editor.css +6 -0
- package/build-style/navigation/style-rtl.css +2 -0
- package/build-style/navigation/style.css +2 -0
- package/build-style/post-featured-image/editor-rtl.css +1 -0
- package/build-style/post-featured-image/editor.css +1 -0
- package/build-style/post-template/style-rtl.css +1 -1
- package/build-style/post-template/style.css +1 -1
- package/build-style/post-time-to-read/style-rtl.css +91 -0
- package/build-style/post-time-to-read/style.css +91 -0
- package/build-style/search/style-rtl.css +8 -7
- package/build-style/search/style.css +8 -7
- package/build-style/style-rtl.css +19 -8
- package/build-style/style.css +19 -8
- package/package.json +31 -31
- package/src/buttons/block.json +1 -0
- package/src/categories/editor.scss +5 -0
- package/src/categories/style.scss +4 -0
- package/src/columns/block.json +4 -0
- package/src/columns/edit.js +2 -1
- package/src/comments/index.php +1 -0
- package/src/cover/edit/inspector-controls.js +4 -5
- package/src/cover/test/__snapshots__/transforms.native.js.snap +2 -2
- package/src/cover/test/edit.js +324 -0
- package/src/gallery/edit.js +5 -2
- package/src/gallery/use-image-sizes.js +1 -1
- package/src/group/deprecated.js +4 -2
- package/src/group/edit.js +27 -9
- package/src/group/placeholder.js +13 -1
- package/src/group/variations.js +14 -1
- package/src/home-link/index.php +2 -2
- package/src/image/block.json +7 -2
- package/src/image/edit.js +1 -1
- package/src/image/edit.native.js +1 -1
- package/src/image/image.js +15 -7
- package/src/image/index.php +7 -2
- package/src/image/test/__snapshots__/transforms.native.js.snap +1 -1
- package/src/latest-comments/style.scss +1 -1
- package/src/latest-posts/edit.js +3 -0
- package/src/media-text/block.json +1 -1
- package/src/media-text/deprecated.js +235 -3
- package/src/media-text/edit.js +7 -6
- package/src/media-text/test/__snapshots__/transforms.native.js.snap +4 -4
- package/src/navigation/block.json +0 -1
- package/src/navigation/edit/index.js +0 -13
- package/src/navigation/edit/inner-blocks.js +0 -3
- package/src/navigation/style.scss +6 -4
- package/src/navigation-link/index.php +2 -1
- package/src/navigation-submenu/index.php +30 -76
- package/src/post-author/index.php +1 -1
- package/src/post-date/edit.js +4 -1
- package/src/post-date/index.js +2 -0
- package/src/post-date/variations.js +20 -0
- package/src/post-excerpt/edit.js +48 -16
- package/src/post-featured-image/dimension-controls.js +2 -2
- package/src/post-featured-image/editor.scss +1 -0
- package/src/post-template/block.json +1 -1
- package/src/post-template/style.scss +1 -1
- package/src/post-time-to-read/block.json +17 -1
- package/src/post-time-to-read/style.scss +4 -0
- package/src/query-title/index.php +2 -5
- package/src/quote/block.json +1 -0
- package/src/search/style.scss +16 -12
- package/src/spacer/edit.js +18 -5
- package/src/style.scss +1 -0
- package/src/video/test/__snapshots__/transforms.native.js.snap +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/src/cover/test/block-controls.js +0 -62
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a hex value into the rgb equivalent.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
5
|
+
* @return {string} comma separated rgb values
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Colors
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Breakpoints & Media Queries
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* SCSS Variables.
|
|
15
|
+
*
|
|
16
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
17
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
18
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Converts a hex value into the rgb equivalent.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
24
|
+
* @return {string} comma separated rgb values
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Colors
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Fonts & basic variables.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Grid System.
|
|
34
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Dimensions.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Shadows.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Editor widths.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Block & Editor UI.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Block paddings.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* React Native specific.
|
|
53
|
+
* These variables do not appear to be used anywhere else.
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* Converts a hex value into the rgb equivalent.
|
|
57
|
+
*
|
|
58
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
59
|
+
* @return {string} comma separated rgb values
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Long content fade mixin
|
|
63
|
+
*
|
|
64
|
+
* Creates a fading overlay to signify that the content is longer
|
|
65
|
+
* than the space allows.
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Breakpoint mixins
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Focus styles.
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* Applies editor left position to the selector passed as argument
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Styles that are reused verbatim in a few places
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Reset default styles for JavaScript UI based pages.
|
|
84
|
+
* This is a WP-admin agnostic reset
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
|
+
*/
|
|
89
|
+
.wp-block-post-time-to-read {
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a hex value into the rgb equivalent.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
5
|
+
* @return {string} comma separated rgb values
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Colors
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Breakpoints & Media Queries
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* SCSS Variables.
|
|
15
|
+
*
|
|
16
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
17
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
18
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Converts a hex value into the rgb equivalent.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
24
|
+
* @return {string} comma separated rgb values
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Colors
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Fonts & basic variables.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Grid System.
|
|
34
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Dimensions.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Shadows.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Editor widths.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Block & Editor UI.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Block paddings.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* React Native specific.
|
|
53
|
+
* These variables do not appear to be used anywhere else.
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* Converts a hex value into the rgb equivalent.
|
|
57
|
+
*
|
|
58
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
59
|
+
* @return {string} comma separated rgb values
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Long content fade mixin
|
|
63
|
+
*
|
|
64
|
+
* Creates a fading overlay to signify that the content is longer
|
|
65
|
+
* than the space allows.
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Breakpoint mixins
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Focus styles.
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* Applies editor left position to the selector passed as argument
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Styles that are reused verbatim in a few places
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Reset default styles for JavaScript UI based pages.
|
|
84
|
+
* This is a WP-admin agnostic reset
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
|
+
*/
|
|
89
|
+
.wp-block-post-time-to-read {
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
}
|
|
@@ -87,22 +87,22 @@
|
|
|
87
87
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
88
|
*/
|
|
89
89
|
.wp-block-search__button {
|
|
90
|
-
margin-right:
|
|
90
|
+
margin-right: 10px;
|
|
91
91
|
word-break: normal;
|
|
92
92
|
}
|
|
93
93
|
.wp-block-search__button.has-icon {
|
|
94
94
|
line-height: 0;
|
|
95
95
|
}
|
|
96
96
|
.wp-block-search__button svg {
|
|
97
|
-
min-width:
|
|
98
|
-
min-height:
|
|
97
|
+
min-width: 24px;
|
|
98
|
+
min-height: 24px;
|
|
99
99
|
fill: currentColor;
|
|
100
100
|
vertical-align: text-bottom;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
:where(.wp-block-search__button) {
|
|
104
104
|
border: 1px solid #ccc;
|
|
105
|
-
padding:
|
|
105
|
+
padding: 6px 10px;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.wp-block-search__inside-wrapper {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
flex-grow: 1;
|
|
122
122
|
margin-right: 0;
|
|
123
123
|
margin-left: 0;
|
|
124
|
-
min-width:
|
|
124
|
+
min-width: 3rem;
|
|
125
125
|
border: 1px solid #949494;
|
|
126
126
|
text-decoration: unset !important;
|
|
127
127
|
}
|
|
@@ -133,17 +133,18 @@
|
|
|
133
133
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
|
|
134
134
|
padding: 4px;
|
|
135
135
|
border: 1px solid #949494;
|
|
136
|
+
box-sizing: border-box;
|
|
136
137
|
}
|
|
137
138
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
|
|
138
139
|
border-radius: 0;
|
|
139
140
|
border: none;
|
|
140
|
-
padding: 0
|
|
141
|
+
padding: 0 4px;
|
|
141
142
|
}
|
|
142
143
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus {
|
|
143
144
|
outline: none;
|
|
144
145
|
}
|
|
145
146
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button) {
|
|
146
|
-
padding:
|
|
147
|
+
padding: 4px 8px;
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
.wp-block-search.aligncenter .wp-block-search__inside-wrapper {
|
|
@@ -87,22 +87,22 @@
|
|
|
87
87
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
88
|
*/
|
|
89
89
|
.wp-block-search__button {
|
|
90
|
-
margin-left:
|
|
90
|
+
margin-left: 10px;
|
|
91
91
|
word-break: normal;
|
|
92
92
|
}
|
|
93
93
|
.wp-block-search__button.has-icon {
|
|
94
94
|
line-height: 0;
|
|
95
95
|
}
|
|
96
96
|
.wp-block-search__button svg {
|
|
97
|
-
min-width:
|
|
98
|
-
min-height:
|
|
97
|
+
min-width: 24px;
|
|
98
|
+
min-height: 24px;
|
|
99
99
|
fill: currentColor;
|
|
100
100
|
vertical-align: text-bottom;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
:where(.wp-block-search__button) {
|
|
104
104
|
border: 1px solid #ccc;
|
|
105
|
-
padding:
|
|
105
|
+
padding: 6px 10px;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.wp-block-search__inside-wrapper {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
flex-grow: 1;
|
|
122
122
|
margin-left: 0;
|
|
123
123
|
margin-right: 0;
|
|
124
|
-
min-width:
|
|
124
|
+
min-width: 3rem;
|
|
125
125
|
border: 1px solid #949494;
|
|
126
126
|
text-decoration: unset !important;
|
|
127
127
|
}
|
|
@@ -133,17 +133,18 @@
|
|
|
133
133
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
|
|
134
134
|
padding: 4px;
|
|
135
135
|
border: 1px solid #949494;
|
|
136
|
+
box-sizing: border-box;
|
|
136
137
|
}
|
|
137
138
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
|
|
138
139
|
border-radius: 0;
|
|
139
140
|
border: none;
|
|
140
|
-
padding: 0
|
|
141
|
+
padding: 0 4px;
|
|
141
142
|
}
|
|
142
143
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus {
|
|
143
144
|
outline: none;
|
|
144
145
|
}
|
|
145
146
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button) {
|
|
146
|
-
padding:
|
|
147
|
+
padding: 4px 8px;
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
.wp-block-search.aligncenter .wp-block-search__inside-wrapper {
|
|
@@ -329,6 +329,7 @@
|
|
|
329
329
|
|
|
330
330
|
.wp-block-categories {
|
|
331
331
|
box-sizing: border-box;
|
|
332
|
+
/* Only apply the text align on dropdowns, not lists. */
|
|
332
333
|
}
|
|
333
334
|
.wp-block-categories.alignleft {
|
|
334
335
|
margin-right: 2em;
|
|
@@ -336,6 +337,9 @@
|
|
|
336
337
|
.wp-block-categories.alignright {
|
|
337
338
|
margin-left: 2em;
|
|
338
339
|
}
|
|
340
|
+
.wp-block-categories.wp-block-categories-dropdown.aligncenter {
|
|
341
|
+
text-align: center;
|
|
342
|
+
}
|
|
339
343
|
|
|
340
344
|
.wp-block-code {
|
|
341
345
|
box-sizing: border-box;
|
|
@@ -2301,6 +2305,8 @@ button.wp-block-navigation-item__content {
|
|
|
2301
2305
|
|
|
2302
2306
|
.wp-block-navigation__responsive-close {
|
|
2303
2307
|
width: 100%;
|
|
2308
|
+
}
|
|
2309
|
+
.has-modal-open .wp-block-navigation__responsive-close {
|
|
2304
2310
|
max-width: var(--wp--style--global--wide-size, 100%);
|
|
2305
2311
|
margin-right: auto;
|
|
2306
2312
|
margin-left: auto;
|
|
@@ -2594,6 +2600,10 @@ p.has-background {
|
|
|
2594
2600
|
white-space: pre-wrap;
|
|
2595
2601
|
}
|
|
2596
2602
|
|
|
2603
|
+
.wp-block-post-time-to-read {
|
|
2604
|
+
box-sizing: border-box;
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2597
2607
|
.wp-block-post-title {
|
|
2598
2608
|
word-break: break-word;
|
|
2599
2609
|
box-sizing: border-box;
|
|
@@ -2679,7 +2689,7 @@ p.has-background {
|
|
|
2679
2689
|
flex-wrap: wrap;
|
|
2680
2690
|
gap: 1.25em;
|
|
2681
2691
|
}
|
|
2682
|
-
.wp-block-post-template.is-flex-container li {
|
|
2692
|
+
.wp-block-post-template.is-flex-container > li {
|
|
2683
2693
|
margin: 0;
|
|
2684
2694
|
width: 100%;
|
|
2685
2695
|
}
|
|
@@ -2820,22 +2830,22 @@ ul.wp-block-rss.is-grid li {
|
|
|
2820
2830
|
}
|
|
2821
2831
|
|
|
2822
2832
|
.wp-block-search__button {
|
|
2823
|
-
margin-right:
|
|
2833
|
+
margin-right: 10px;
|
|
2824
2834
|
word-break: normal;
|
|
2825
2835
|
}
|
|
2826
2836
|
.wp-block-search__button.has-icon {
|
|
2827
2837
|
line-height: 0;
|
|
2828
2838
|
}
|
|
2829
2839
|
.wp-block-search__button svg {
|
|
2830
|
-
min-width:
|
|
2831
|
-
min-height:
|
|
2840
|
+
min-width: 24px;
|
|
2841
|
+
min-height: 24px;
|
|
2832
2842
|
fill: currentColor;
|
|
2833
2843
|
vertical-align: text-bottom;
|
|
2834
2844
|
}
|
|
2835
2845
|
|
|
2836
2846
|
:where(.wp-block-search__button) {
|
|
2837
2847
|
border: 1px solid #ccc;
|
|
2838
|
-
padding:
|
|
2848
|
+
padding: 6px 10px;
|
|
2839
2849
|
}
|
|
2840
2850
|
|
|
2841
2851
|
.wp-block-search__inside-wrapper {
|
|
@@ -2854,7 +2864,7 @@ ul.wp-block-rss.is-grid li {
|
|
|
2854
2864
|
flex-grow: 1;
|
|
2855
2865
|
margin-right: 0;
|
|
2856
2866
|
margin-left: 0;
|
|
2857
|
-
min-width:
|
|
2867
|
+
min-width: 3rem;
|
|
2858
2868
|
border: 1px solid #949494;
|
|
2859
2869
|
text-decoration: unset !important;
|
|
2860
2870
|
}
|
|
@@ -2866,17 +2876,18 @@ ul.wp-block-rss.is-grid li {
|
|
|
2866
2876
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
|
|
2867
2877
|
padding: 4px;
|
|
2868
2878
|
border: 1px solid #949494;
|
|
2879
|
+
box-sizing: border-box;
|
|
2869
2880
|
}
|
|
2870
2881
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
|
|
2871
2882
|
border-radius: 0;
|
|
2872
2883
|
border: none;
|
|
2873
|
-
padding: 0
|
|
2884
|
+
padding: 0 4px;
|
|
2874
2885
|
}
|
|
2875
2886
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus {
|
|
2876
2887
|
outline: none;
|
|
2877
2888
|
}
|
|
2878
2889
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button) {
|
|
2879
|
-
padding:
|
|
2890
|
+
padding: 4px 8px;
|
|
2880
2891
|
}
|
|
2881
2892
|
|
|
2882
2893
|
.wp-block-search.aligncenter .wp-block-search__inside-wrapper {
|
package/build-style/style.css
CHANGED
|
@@ -330,6 +330,7 @@
|
|
|
330
330
|
|
|
331
331
|
.wp-block-categories {
|
|
332
332
|
box-sizing: border-box;
|
|
333
|
+
/* Only apply the text align on dropdowns, not lists. */
|
|
333
334
|
}
|
|
334
335
|
.wp-block-categories.alignleft {
|
|
335
336
|
/*rtl:ignore*/
|
|
@@ -339,6 +340,9 @@
|
|
|
339
340
|
/*rtl:ignore*/
|
|
340
341
|
margin-left: 2em;
|
|
341
342
|
}
|
|
343
|
+
.wp-block-categories.wp-block-categories-dropdown.aligncenter {
|
|
344
|
+
text-align: center;
|
|
345
|
+
}
|
|
342
346
|
|
|
343
347
|
.wp-block-code {
|
|
344
348
|
box-sizing: border-box;
|
|
@@ -2331,6 +2335,8 @@ button.wp-block-navigation-item__content {
|
|
|
2331
2335
|
|
|
2332
2336
|
.wp-block-navigation__responsive-close {
|
|
2333
2337
|
width: 100%;
|
|
2338
|
+
}
|
|
2339
|
+
.has-modal-open .wp-block-navigation__responsive-close {
|
|
2334
2340
|
max-width: var(--wp--style--global--wide-size, 100%);
|
|
2335
2341
|
margin-left: auto;
|
|
2336
2342
|
margin-right: auto;
|
|
@@ -2624,6 +2630,10 @@ p.has-background {
|
|
|
2624
2630
|
white-space: pre-wrap;
|
|
2625
2631
|
}
|
|
2626
2632
|
|
|
2633
|
+
.wp-block-post-time-to-read {
|
|
2634
|
+
box-sizing: border-box;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2627
2637
|
.wp-block-post-title {
|
|
2628
2638
|
word-break: break-word;
|
|
2629
2639
|
box-sizing: border-box;
|
|
@@ -2709,7 +2719,7 @@ p.has-background {
|
|
|
2709
2719
|
flex-wrap: wrap;
|
|
2710
2720
|
gap: 1.25em;
|
|
2711
2721
|
}
|
|
2712
|
-
.wp-block-post-template.is-flex-container li {
|
|
2722
|
+
.wp-block-post-template.is-flex-container > li {
|
|
2713
2723
|
margin: 0;
|
|
2714
2724
|
width: 100%;
|
|
2715
2725
|
}
|
|
@@ -2854,22 +2864,22 @@ ul.wp-block-rss.is-grid li {
|
|
|
2854
2864
|
}
|
|
2855
2865
|
|
|
2856
2866
|
.wp-block-search__button {
|
|
2857
|
-
margin-left:
|
|
2867
|
+
margin-left: 10px;
|
|
2858
2868
|
word-break: normal;
|
|
2859
2869
|
}
|
|
2860
2870
|
.wp-block-search__button.has-icon {
|
|
2861
2871
|
line-height: 0;
|
|
2862
2872
|
}
|
|
2863
2873
|
.wp-block-search__button svg {
|
|
2864
|
-
min-width:
|
|
2865
|
-
min-height:
|
|
2874
|
+
min-width: 24px;
|
|
2875
|
+
min-height: 24px;
|
|
2866
2876
|
fill: currentColor;
|
|
2867
2877
|
vertical-align: text-bottom;
|
|
2868
2878
|
}
|
|
2869
2879
|
|
|
2870
2880
|
:where(.wp-block-search__button) {
|
|
2871
2881
|
border: 1px solid #ccc;
|
|
2872
|
-
padding:
|
|
2882
|
+
padding: 6px 10px;
|
|
2873
2883
|
}
|
|
2874
2884
|
|
|
2875
2885
|
.wp-block-search__inside-wrapper {
|
|
@@ -2888,7 +2898,7 @@ ul.wp-block-rss.is-grid li {
|
|
|
2888
2898
|
flex-grow: 1;
|
|
2889
2899
|
margin-left: 0;
|
|
2890
2900
|
margin-right: 0;
|
|
2891
|
-
min-width:
|
|
2901
|
+
min-width: 3rem;
|
|
2892
2902
|
border: 1px solid #949494;
|
|
2893
2903
|
text-decoration: unset !important;
|
|
2894
2904
|
}
|
|
@@ -2900,17 +2910,18 @@ ul.wp-block-rss.is-grid li {
|
|
|
2900
2910
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
|
|
2901
2911
|
padding: 4px;
|
|
2902
2912
|
border: 1px solid #949494;
|
|
2913
|
+
box-sizing: border-box;
|
|
2903
2914
|
}
|
|
2904
2915
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
|
|
2905
2916
|
border-radius: 0;
|
|
2906
2917
|
border: none;
|
|
2907
|
-
padding: 0
|
|
2918
|
+
padding: 0 4px;
|
|
2908
2919
|
}
|
|
2909
2920
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus {
|
|
2910
2921
|
outline: none;
|
|
2911
2922
|
}
|
|
2912
2923
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button) {
|
|
2913
|
-
padding:
|
|
2924
|
+
padding: 4px 8px;
|
|
2914
2925
|
}
|
|
2915
2926
|
|
|
2916
2927
|
.wp-block-search.aligncenter .wp-block-search__inside-wrapper {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -31,35 +31,35 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.16.0",
|
|
34
|
-
"@wordpress/a11y": "^3.
|
|
35
|
-
"@wordpress/api-fetch": "^6.
|
|
36
|
-
"@wordpress/autop": "^3.
|
|
37
|
-
"@wordpress/blob": "^3.
|
|
38
|
-
"@wordpress/block-editor": "^11.
|
|
39
|
-
"@wordpress/blocks": "^12.
|
|
40
|
-
"@wordpress/components": "^23.
|
|
41
|
-
"@wordpress/compose": "^6.
|
|
42
|
-
"@wordpress/core-data": "^6.
|
|
43
|
-
"@wordpress/data": "^
|
|
44
|
-
"@wordpress/date": "^4.
|
|
45
|
-
"@wordpress/deprecated": "^3.
|
|
46
|
-
"@wordpress/dom": "^3.
|
|
47
|
-
"@wordpress/element": "^5.
|
|
48
|
-
"@wordpress/escape-html": "^2.
|
|
49
|
-
"@wordpress/hooks": "^3.
|
|
50
|
-
"@wordpress/html-entities": "^3.
|
|
51
|
-
"@wordpress/i18n": "^4.
|
|
52
|
-
"@wordpress/icons": "^9.
|
|
53
|
-
"@wordpress/keycodes": "^3.
|
|
54
|
-
"@wordpress/notices": "^3.
|
|
55
|
-
"@wordpress/primitives": "^3.
|
|
56
|
-
"@wordpress/private-apis": "^0.
|
|
57
|
-
"@wordpress/reusable-blocks": "^4.
|
|
58
|
-
"@wordpress/rich-text": "^6.
|
|
59
|
-
"@wordpress/server-side-render": "^4.
|
|
60
|
-
"@wordpress/url": "^3.
|
|
61
|
-
"@wordpress/viewport": "^5.
|
|
62
|
-
"@wordpress/wordcount": "^3.
|
|
34
|
+
"@wordpress/a11y": "^3.30.0",
|
|
35
|
+
"@wordpress/api-fetch": "^6.27.0",
|
|
36
|
+
"@wordpress/autop": "^3.30.0",
|
|
37
|
+
"@wordpress/blob": "^3.30.0",
|
|
38
|
+
"@wordpress/block-editor": "^11.7.0",
|
|
39
|
+
"@wordpress/blocks": "^12.7.0",
|
|
40
|
+
"@wordpress/components": "^23.7.0",
|
|
41
|
+
"@wordpress/compose": "^6.7.0",
|
|
42
|
+
"@wordpress/core-data": "^6.7.0",
|
|
43
|
+
"@wordpress/data": "^9.0.0",
|
|
44
|
+
"@wordpress/date": "^4.30.0",
|
|
45
|
+
"@wordpress/deprecated": "^3.30.0",
|
|
46
|
+
"@wordpress/dom": "^3.30.0",
|
|
47
|
+
"@wordpress/element": "^5.7.0",
|
|
48
|
+
"@wordpress/escape-html": "^2.30.0",
|
|
49
|
+
"@wordpress/hooks": "^3.30.0",
|
|
50
|
+
"@wordpress/html-entities": "^3.30.0",
|
|
51
|
+
"@wordpress/i18n": "^4.30.0",
|
|
52
|
+
"@wordpress/icons": "^9.21.0",
|
|
53
|
+
"@wordpress/keycodes": "^3.30.0",
|
|
54
|
+
"@wordpress/notices": "^3.30.0",
|
|
55
|
+
"@wordpress/primitives": "^3.28.0",
|
|
56
|
+
"@wordpress/private-apis": "^0.12.0",
|
|
57
|
+
"@wordpress/reusable-blocks": "^4.7.0",
|
|
58
|
+
"@wordpress/rich-text": "^6.7.0",
|
|
59
|
+
"@wordpress/server-side-render": "^4.7.0",
|
|
60
|
+
"@wordpress/url": "^3.31.0",
|
|
61
|
+
"@wordpress/viewport": "^5.7.0",
|
|
62
|
+
"@wordpress/wordcount": "^3.30.0",
|
|
63
63
|
"change-case": "^4.1.2",
|
|
64
64
|
"classnames": "^2.3.1",
|
|
65
65
|
"colord": "^2.7.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "d5c28a67b11e91e3e4b8e90346bfcb90909364d6"
|
|
82
82
|
}
|
package/src/buttons/block.json
CHANGED
package/src/columns/block.json
CHANGED
package/src/columns/edit.js
CHANGED
|
@@ -58,7 +58,7 @@ function ColumnsEditContainer( {
|
|
|
58
58
|
updateColumns,
|
|
59
59
|
clientId,
|
|
60
60
|
} ) {
|
|
61
|
-
const { isStackedOnMobile, verticalAlignment } = attributes;
|
|
61
|
+
const { isStackedOnMobile, verticalAlignment, templateLock } = attributes;
|
|
62
62
|
|
|
63
63
|
const { count, canInsertColumnBlock } = useSelect(
|
|
64
64
|
( select ) => {
|
|
@@ -84,6 +84,7 @@ function ColumnsEditContainer( {
|
|
|
84
84
|
allowedBlocks: ALLOWED_BLOCKS,
|
|
85
85
|
orientation: 'horizontal',
|
|
86
86
|
renderAppender: false,
|
|
87
|
+
templateLock,
|
|
87
88
|
} );
|
|
88
89
|
|
|
89
90
|
return (
|
package/src/comments/index.php
CHANGED
|
@@ -212,6 +212,7 @@ function register_legacy_post_comments_block() {
|
|
|
212
212
|
* like `_wp_multiple_block_styles`, which is required in this case because
|
|
213
213
|
* the block has multiple styles.
|
|
214
214
|
*/
|
|
215
|
+
/** This filter is documented in wp-includes/blocks.php */
|
|
215
216
|
$metadata = apply_filters( 'block_type_metadata', $metadata );
|
|
216
217
|
|
|
217
218
|
register_block_type( 'core/post-comments', $metadata );
|