@wordpress/block-library 8.31.0 → 8.32.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.
Files changed (157) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/block/edit.js +5 -8
  3. package/build/block/edit.js.map +1 -1
  4. package/build/button/edit.native.js +1 -1
  5. package/build/button/edit.native.js.map +1 -1
  6. package/build/image/edit.js +10 -39
  7. package/build/image/edit.js.map +1 -1
  8. package/build/image/image.js +27 -6
  9. package/build/image/image.js.map +1 -1
  10. package/build/navigation/view.js +12 -2
  11. package/build/navigation/view.js.map +1 -1
  12. package/build/navigation-link/edit.js +41 -18
  13. package/build/navigation-link/edit.js.map +1 -1
  14. package/build/navigation-submenu/edit.js +27 -9
  15. package/build/navigation-submenu/edit.js.map +1 -1
  16. package/build/pattern/edit.js +3 -1
  17. package/build/pattern/edit.js.map +1 -1
  18. package/build/post-featured-image/edit.js +12 -3
  19. package/build/post-featured-image/edit.js.map +1 -1
  20. package/build/post-featured-image/index.js +8 -3
  21. package/build/post-featured-image/index.js.map +1 -1
  22. package/build/post-featured-image/overlay-controls.js +82 -0
  23. package/build/post-featured-image/overlay-controls.js.map +1 -0
  24. package/build/post-featured-image/overlay.js +5 -54
  25. package/build/post-featured-image/overlay.js.map +1 -1
  26. package/build/quote/edit.js +18 -23
  27. package/build/quote/edit.js.map +1 -1
  28. package/build/site-tagline/edit.js +13 -4
  29. package/build/site-tagline/edit.js.map +1 -1
  30. package/build/site-tagline/index.js +4 -0
  31. package/build/site-tagline/index.js.map +1 -1
  32. package/build/template-part/edit/index.js +55 -47
  33. package/build/template-part/edit/index.js.map +1 -1
  34. package/build/template-part/edit/inner-blocks.js +106 -10
  35. package/build/template-part/edit/inner-blocks.js.map +1 -1
  36. package/build/template-part/edit/selection-modal.js +1 -9
  37. package/build/template-part/edit/selection-modal.js.map +1 -1
  38. package/build/utils/caption.js +19 -13
  39. package/build/utils/caption.js.map +1 -1
  40. package/build/utils/hooks.js +1 -0
  41. package/build/utils/hooks.js.map +1 -1
  42. package/build-module/block/edit.js +5 -8
  43. package/build-module/block/edit.js.map +1 -1
  44. package/build-module/button/edit.native.js +1 -1
  45. package/build-module/button/edit.native.js.map +1 -1
  46. package/build-module/image/edit.js +11 -40
  47. package/build-module/image/edit.js.map +1 -1
  48. package/build-module/image/image.js +27 -6
  49. package/build-module/image/image.js.map +1 -1
  50. package/build-module/navigation/view.js +12 -2
  51. package/build-module/navigation/view.js.map +1 -1
  52. package/build-module/navigation-link/edit.js +43 -20
  53. package/build-module/navigation-link/edit.js.map +1 -1
  54. package/build-module/navigation-submenu/edit.js +27 -9
  55. package/build-module/navigation-submenu/edit.js.map +1 -1
  56. package/build-module/pattern/edit.js +3 -1
  57. package/build-module/pattern/edit.js.map +1 -1
  58. package/build-module/post-featured-image/edit.js +12 -3
  59. package/build-module/post-featured-image/edit.js.map +1 -1
  60. package/build-module/post-featured-image/index.js +8 -3
  61. package/build-module/post-featured-image/index.js.map +1 -1
  62. package/build-module/post-featured-image/overlay-controls.js +75 -0
  63. package/build-module/post-featured-image/overlay-controls.js.map +1 -0
  64. package/build-module/post-featured-image/overlay.js +7 -56
  65. package/build-module/post-featured-image/overlay.js.map +1 -1
  66. package/build-module/quote/edit.js +20 -25
  67. package/build-module/quote/edit.js.map +1 -1
  68. package/build-module/site-tagline/edit.js +14 -5
  69. package/build-module/site-tagline/edit.js.map +1 -1
  70. package/build-module/site-tagline/index.js +4 -0
  71. package/build-module/site-tagline/index.js.map +1 -1
  72. package/build-module/template-part/edit/index.js +58 -50
  73. package/build-module/template-part/edit/index.js.map +1 -1
  74. package/build-module/template-part/edit/inner-blocks.js +108 -12
  75. package/build-module/template-part/edit/inner-blocks.js.map +1 -1
  76. package/build-module/template-part/edit/selection-modal.js +2 -10
  77. package/build-module/template-part/edit/selection-modal.js.map +1 -1
  78. package/build-module/utils/caption.js +19 -13
  79. package/build-module/utils/caption.js.map +1 -1
  80. package/build-module/utils/hooks.js +1 -0
  81. package/build-module/utils/hooks.js.map +1 -1
  82. package/build-style/audio/theme-rtl.css +1 -1
  83. package/build-style/audio/theme.css +1 -1
  84. package/build-style/cover/style-rtl.css +5 -2
  85. package/build-style/cover/style.css +5 -2
  86. package/build-style/editor-rtl.css +12 -8
  87. package/build-style/editor.css +12 -8
  88. package/build-style/embed/theme-rtl.css +1 -1
  89. package/build-style/embed/theme.css +1 -1
  90. package/build-style/image/theme-rtl.css +1 -1
  91. package/build-style/image/theme.css +1 -1
  92. package/build-style/pullquote/theme-rtl.css +2 -1
  93. package/build-style/pullquote/theme.css +2 -1
  94. package/build-style/quote/theme-rtl.css +6 -6
  95. package/build-style/quote/theme.css +6 -6
  96. package/build-style/search/style-rtl.css +10 -0
  97. package/build-style/search/style.css +10 -0
  98. package/build-style/social-links/editor-rtl.css +0 -4
  99. package/build-style/social-links/editor.css +0 -4
  100. package/build-style/style-rtl.css +15 -2
  101. package/build-style/style.css +15 -2
  102. package/build-style/table/theme-rtl.css +4 -3
  103. package/build-style/table/theme.css +4 -3
  104. package/build-style/template-part/editor-rtl.css +12 -4
  105. package/build-style/template-part/editor.css +12 -4
  106. package/build-style/template-part/theme-rtl.css +1 -1
  107. package/build-style/template-part/theme.css +1 -1
  108. package/build-style/theme-rtl.css +17 -15
  109. package/build-style/theme.css +17 -15
  110. package/build-style/video/theme-rtl.css +1 -1
  111. package/build-style/video/theme.css +1 -1
  112. package/package.json +34 -34
  113. package/src/audio/theme.scss +1 -1
  114. package/src/block/edit.js +5 -17
  115. package/src/button/edit.native.js +1 -1
  116. package/src/cover/style.scss +6 -2
  117. package/src/embed/theme.scss +1 -1
  118. package/src/gallery/editor.scss +1 -1
  119. package/src/gallery/index.php +1 -1
  120. package/src/image/edit.js +11 -40
  121. package/src/image/editor.scss +2 -2
  122. package/src/image/image.js +25 -7
  123. package/src/image/theme.scss +1 -1
  124. package/src/navigation/index.php +8 -0
  125. package/src/navigation/view.js +11 -2
  126. package/src/navigation-link/edit.js +53 -27
  127. package/src/navigation-submenu/edit.js +30 -10
  128. package/src/pattern/edit.js +4 -0
  129. package/src/post-featured-image/block.json +8 -3
  130. package/src/post-featured-image/edit.js +12 -1
  131. package/src/post-featured-image/editor.scss +1 -1
  132. package/src/post-featured-image/overlay-controls.js +88 -0
  133. package/src/post-featured-image/overlay.js +17 -84
  134. package/src/pullquote/theme.scss +3 -1
  135. package/src/query-no-results/index.php +2 -0
  136. package/src/query-pagination-next/index.php +2 -0
  137. package/src/query-pagination-numbers/index.php +2 -0
  138. package/src/quote/edit.js +27 -43
  139. package/src/quote/test/edit.native.js +4 -6
  140. package/src/quote/theme.scss +1 -2
  141. package/src/search/style.scss +11 -0
  142. package/src/site-logo/editor.scss +2 -2
  143. package/src/site-tagline/block.json +4 -0
  144. package/src/site-tagline/edit.js +16 -3
  145. package/src/site-tagline/index.php +9 -1
  146. package/src/social-links/editor.scss +1 -9
  147. package/src/table/theme.scss +4 -2
  148. package/src/template-part/edit/index.js +87 -79
  149. package/src/template-part/edit/inner-blocks.js +126 -13
  150. package/src/template-part/edit/selection-modal.js +1 -22
  151. package/src/template-part/editor.scss +11 -3
  152. package/src/template-part/index.php +2 -0
  153. package/src/template-part/theme.scss +1 -1
  154. package/src/utils/caption.js +19 -16
  155. package/src/utils/hooks.js +1 -0
  156. package/src/video/editor.scss +2 -2
  157. package/src/video/theme.scss +1 -1
@@ -86,28 +86,28 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- .wp-block-quote {
89
+ :where(.wp-block-quote) {
90
90
  border-right: 0.25em solid currentColor;
91
91
  margin: 0 0 1.75em 0;
92
92
  padding-right: 1em;
93
93
  }
94
- .wp-block-quote cite,
95
- .wp-block-quote footer {
94
+ :where(.wp-block-quote) cite,
95
+ :where(.wp-block-quote) footer {
96
96
  color: currentColor;
97
97
  font-size: 0.8125em;
98
98
  position: relative;
99
99
  font-style: normal;
100
100
  }
101
- .wp-block-quote.has-text-align-right {
101
+ :where(.wp-block-quote).has-text-align-right {
102
102
  border-right: none;
103
103
  border-left: 0.25em solid currentColor;
104
104
  padding-right: 0;
105
105
  padding-left: 1em;
106
106
  }
107
- .wp-block-quote.has-text-align-center {
107
+ :where(.wp-block-quote).has-text-align-center {
108
108
  border: none;
109
109
  padding-right: 0;
110
110
  }
111
- .wp-block-quote.is-style-plain, .wp-block-quote.is-style-large, .wp-block-quote.is-large {
111
+ :where(.wp-block-quote).is-style-plain, :where(.wp-block-quote).is-style-large, :where(.wp-block-quote).is-large {
112
112
  border: none;
113
113
  }
@@ -86,28 +86,28 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- .wp-block-quote {
89
+ :where(.wp-block-quote) {
90
90
  border-left: 0.25em solid currentColor;
91
91
  margin: 0 0 1.75em 0;
92
92
  padding-left: 1em;
93
93
  }
94
- .wp-block-quote cite,
95
- .wp-block-quote footer {
94
+ :where(.wp-block-quote) cite,
95
+ :where(.wp-block-quote) footer {
96
96
  color: currentColor;
97
97
  font-size: 0.8125em;
98
98
  position: relative;
99
99
  font-style: normal;
100
100
  }
101
- .wp-block-quote.has-text-align-right {
101
+ :where(.wp-block-quote).has-text-align-right {
102
102
  border-left: none;
103
103
  border-right: 0.25em solid currentColor;
104
104
  padding-left: 0;
105
105
  padding-right: 1em;
106
106
  }
107
- .wp-block-quote.has-text-align-center {
107
+ :where(.wp-block-quote).has-text-align-center {
108
108
  border: none;
109
109
  padding-left: 0;
110
110
  }
111
- .wp-block-quote.is-style-plain, .wp-block-quote.is-style-large, .wp-block-quote.is-large {
111
+ :where(.wp-block-quote).is-style-plain, :where(.wp-block-quote).is-style-large, :where(.wp-block-quote).is-large {
112
112
  border: none;
113
113
  }
@@ -164,6 +164,16 @@
164
164
  flex-basis: 0;
165
165
  }
166
166
 
167
+ :where(.wp-block-search__input) {
168
+ font-family: inherit;
169
+ font-weight: inherit;
170
+ font-size: inherit;
171
+ line-height: inherit;
172
+ letter-spacing: inherit;
173
+ text-transform: inherit;
174
+ font-style: inherit;
175
+ }
176
+
167
177
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
168
178
  padding: 4px;
169
179
  border: 1px solid #949494;
@@ -164,6 +164,16 @@
164
164
  flex-basis: 0;
165
165
  }
166
166
 
167
+ :where(.wp-block-search__input) {
168
+ font-family: inherit;
169
+ font-weight: inherit;
170
+ font-size: inherit;
171
+ line-height: inherit;
172
+ letter-spacing: inherit;
173
+ text-transform: inherit;
174
+ font-style: inherit;
175
+ }
176
+
167
177
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
168
178
  padding: 4px;
169
179
  border: 1px solid #949494;
@@ -90,9 +90,6 @@
90
90
  display: inline-block;
91
91
  margin-right: 8px;
92
92
  }
93
- .wp-block-social-links.wp-block-social-links {
94
- background: none;
95
- }
96
93
 
97
94
  .wp-social-link:hover {
98
95
  transform: none;
@@ -142,7 +139,6 @@
142
139
  .wp-block-social-links .wp-block-social-links__social-prompt {
143
140
  min-height: 24px;
144
141
  list-style: none;
145
- order: 2;
146
142
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
147
143
  font-size: 13px;
148
144
  line-height: 24px;
@@ -90,9 +90,6 @@
90
90
  display: inline-block;
91
91
  margin-left: 8px;
92
92
  }
93
- .wp-block-social-links.wp-block-social-links {
94
- background: none;
95
- }
96
93
 
97
94
  .wp-social-link:hover {
98
95
  transform: none;
@@ -142,7 +139,6 @@
142
139
  .wp-block-social-links .wp-block-social-links__social-prompt {
143
140
  min-height: 24px;
144
141
  list-style: none;
145
- order: 2;
146
142
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
147
143
  font-size: 13px;
148
144
  line-height: 24px;
@@ -604,15 +604,18 @@
604
604
  float: left;
605
605
  }
606
606
 
607
+ :where(.wp-block-cover-image, .wp-block-cover) {
608
+ min-height: 430px;
609
+ padding: 1em;
610
+ }
611
+
607
612
  .wp-block-cover-image,
608
613
  .wp-block-cover {
609
614
  position: relative;
610
615
  background-position: center center;
611
- min-height: 430px;
612
616
  display: flex;
613
617
  justify-content: center;
614
618
  align-items: center;
615
- padding: 1em;
616
619
  overflow: hidden;
617
620
  overflow: clip;
618
621
  box-sizing: border-box; direction: ltr;
@@ -3321,6 +3324,16 @@ ul.wp-block-rss.is-grid li {
3321
3324
  flex-basis: 0;
3322
3325
  }
3323
3326
 
3327
+ :where(.wp-block-search__input) {
3328
+ font-family: inherit;
3329
+ font-weight: inherit;
3330
+ font-size: inherit;
3331
+ line-height: inherit;
3332
+ letter-spacing: inherit;
3333
+ text-transform: inherit;
3334
+ font-style: inherit;
3335
+ }
3336
+
3324
3337
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
3325
3338
  padding: 4px;
3326
3339
  border: 1px solid #949494;
@@ -609,15 +609,18 @@
609
609
  float: right;
610
610
  }
611
611
 
612
+ :where(.wp-block-cover-image, .wp-block-cover) {
613
+ min-height: 430px;
614
+ padding: 1em;
615
+ }
616
+
612
617
  .wp-block-cover-image,
613
618
  .wp-block-cover {
614
619
  position: relative;
615
620
  background-position: center center;
616
- min-height: 430px;
617
621
  display: flex;
618
622
  justify-content: center;
619
623
  align-items: center;
620
- padding: 1em;
621
624
  overflow: hidden;
622
625
  overflow: clip;
623
626
  box-sizing: border-box;
@@ -3355,6 +3358,16 @@ ul.wp-block-rss.is-grid li {
3355
3358
  flex-basis: 0;
3356
3359
  }
3357
3360
 
3361
+ :where(.wp-block-search__input) {
3362
+ font-family: inherit;
3363
+ font-weight: inherit;
3364
+ font-size: inherit;
3365
+ line-height: inherit;
3366
+ letter-spacing: inherit;
3367
+ text-transform: inherit;
3368
+ font-style: inherit;
3369
+ }
3370
+
3358
3371
  :where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
3359
3372
  padding: 4px;
3360
3373
  border: 1px solid #949494;
@@ -86,9 +86,6 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- .wp-block-table {
90
- margin: 0 0 1em 0;
91
- }
92
89
  .wp-block-table td,
93
90
  .wp-block-table th {
94
91
  word-break: normal;
@@ -100,4 +97,8 @@
100
97
  }
101
98
  .is-dark-theme .wp-block-table figcaption {
102
99
  color: rgba(255, 255, 255, 0.65);
100
+ }
101
+
102
+ :where(.wp-block-table) {
103
+ margin: 0 0 1em 0;
103
104
  }
@@ -86,9 +86,6 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- .wp-block-table {
90
- margin: 0 0 1em 0;
91
- }
92
89
  .wp-block-table td,
93
90
  .wp-block-table th {
94
91
  word-break: normal;
@@ -100,4 +97,8 @@
100
97
  }
101
98
  .is-dark-theme .wp-block-table figcaption {
102
99
  color: rgba(255, 255, 255, 0.65);
100
+ }
101
+
102
+ :where(.wp-block-table) {
103
+ margin: 0 0 1em 0;
103
104
  }
@@ -110,10 +110,14 @@
110
110
  z-index: 2;
111
111
  }
112
112
 
113
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted, .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected,
114
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,
115
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected {
116
- box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
113
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted::after, .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected::after,
114
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted::after,
115
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected::after {
116
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
117
+ }
118
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered::after,
119
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered::after {
120
+ box-shadow: 0 0 0 1px var(--wp-block-synced-color);
117
121
  }
118
122
  .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus::after,
119
123
  .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus::after {
@@ -122,4 +126,8 @@
122
126
  .is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus::after,
123
127
  .is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus::after {
124
128
  box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff;
129
+ }
130
+
131
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline::after {
132
+ border: none;
125
133
  }
@@ -110,10 +110,14 @@
110
110
  z-index: 2;
111
111
  }
112
112
 
113
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted, .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected,
114
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,
115
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected {
116
- box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
113
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted::after, .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected::after,
114
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted::after,
115
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected::after {
116
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
117
+ }
118
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered::after,
119
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered::after {
120
+ box-shadow: 0 0 0 1px var(--wp-block-synced-color);
117
121
  }
118
122
  .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus::after,
119
123
  .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus::after {
@@ -122,4 +126,8 @@
122
126
  .is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus::after,
123
127
  .is-dark-theme .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus::after {
124
128
  box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff;
129
+ }
130
+
131
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline::after {
132
+ border: none;
125
133
  }
@@ -86,7 +86,7 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- .wp-block-template-part.has-background {
89
+ :where(.wp-block-template-part).has-background {
90
90
  padding: 1.25em 2.375em;
91
91
  margin-top: 0;
92
92
  margin-bottom: 0;
@@ -86,7 +86,7 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- .wp-block-template-part.has-background {
89
+ :where(.wp-block-template-part).has-background {
90
90
  padding: 1.25em 2.375em;
91
91
  margin-top: 0;
92
92
  margin-bottom: 0;
@@ -95,7 +95,7 @@
95
95
  color: rgba(255, 255, 255, 0.65);
96
96
  }
97
97
 
98
- .wp-block-audio {
98
+ :where(.wp-block-audio) {
99
99
  margin: 0 0 1em 0;
100
100
  }
101
101
 
@@ -115,7 +115,7 @@
115
115
  color: rgba(255, 255, 255, 0.65);
116
116
  }
117
117
 
118
- .wp-block-embed {
118
+ :where(.wp-block-embed) {
119
119
  margin: 0 0 1em 0;
120
120
  }
121
121
 
@@ -137,16 +137,17 @@
137
137
  color: rgba(255, 255, 255, 0.65);
138
138
  }
139
139
 
140
- .wp-block-image {
140
+ :where(.wp-block-image) {
141
141
  margin: 0 0 1em 0;
142
142
  }
143
143
 
144
- .wp-block-pullquote {
144
+ :where(.wp-block-pullquote) {
145
145
  border-top: 4px solid currentColor;
146
146
  border-bottom: 4px solid currentColor;
147
147
  margin-bottom: 1.75em;
148
148
  color: currentColor;
149
149
  }
150
+
150
151
  .wp-block-pullquote cite,
151
152
  .wp-block-pullquote footer, .wp-block-pullquote__citation {
152
153
  color: currentColor;
@@ -155,29 +156,29 @@
155
156
  font-style: normal;
156
157
  }
157
158
 
158
- .wp-block-quote {
159
+ :where(.wp-block-quote) {
159
160
  border-right: 0.25em solid currentColor;
160
161
  margin: 0 0 1.75em 0;
161
162
  padding-right: 1em;
162
163
  }
163
- .wp-block-quote cite,
164
- .wp-block-quote footer {
164
+ :where(.wp-block-quote) cite,
165
+ :where(.wp-block-quote) footer {
165
166
  color: currentColor;
166
167
  font-size: 0.8125em;
167
168
  position: relative;
168
169
  font-style: normal;
169
170
  }
170
- .wp-block-quote.has-text-align-right {
171
+ :where(.wp-block-quote).has-text-align-right {
171
172
  border-right: none;
172
173
  border-left: 0.25em solid currentColor;
173
174
  padding-right: 0;
174
175
  padding-left: 1em;
175
176
  }
176
- .wp-block-quote.has-text-align-center {
177
+ :where(.wp-block-quote).has-text-align-center {
177
178
  border: none;
178
179
  padding-right: 0;
179
180
  }
180
- .wp-block-quote.is-style-plain, .wp-block-quote.is-style-large, .wp-block-quote.is-large {
181
+ :where(.wp-block-quote).is-style-plain, :where(.wp-block-quote).is-style-large, :where(.wp-block-quote).is-large {
181
182
  border: none;
182
183
  }
183
184
 
@@ -218,9 +219,6 @@
218
219
  height: 2px;
219
220
  }
220
221
 
221
- .wp-block-table {
222
- margin: 0 0 1em 0;
223
- }
224
222
  .wp-block-table td,
225
223
  .wp-block-table th {
226
224
  word-break: normal;
@@ -234,6 +232,10 @@
234
232
  color: rgba(255, 255, 255, 0.65);
235
233
  }
236
234
 
235
+ :where(.wp-block-table) {
236
+ margin: 0 0 1em 0;
237
+ }
238
+
237
239
  .wp-block-video figcaption {
238
240
  color: #555;
239
241
  font-size: 13px;
@@ -243,11 +245,11 @@
243
245
  color: rgba(255, 255, 255, 0.65);
244
246
  }
245
247
 
246
- .wp-block-video {
248
+ :where(.wp-block-video) {
247
249
  margin: 0 0 1em 0;
248
250
  }
249
251
 
250
- .wp-block-template-part.has-background {
252
+ :where(.wp-block-template-part).has-background {
251
253
  padding: 1.25em 2.375em;
252
254
  margin-top: 0;
253
255
  margin-bottom: 0;
@@ -95,7 +95,7 @@
95
95
  color: rgba(255, 255, 255, 0.65);
96
96
  }
97
97
 
98
- .wp-block-audio {
98
+ :where(.wp-block-audio) {
99
99
  margin: 0 0 1em 0;
100
100
  }
101
101
 
@@ -115,7 +115,7 @@
115
115
  color: rgba(255, 255, 255, 0.65);
116
116
  }
117
117
 
118
- .wp-block-embed {
118
+ :where(.wp-block-embed) {
119
119
  margin: 0 0 1em 0;
120
120
  }
121
121
 
@@ -137,16 +137,17 @@
137
137
  color: rgba(255, 255, 255, 0.65);
138
138
  }
139
139
 
140
- .wp-block-image {
140
+ :where(.wp-block-image) {
141
141
  margin: 0 0 1em 0;
142
142
  }
143
143
 
144
- .wp-block-pullquote {
144
+ :where(.wp-block-pullquote) {
145
145
  border-top: 4px solid currentColor;
146
146
  border-bottom: 4px solid currentColor;
147
147
  margin-bottom: 1.75em;
148
148
  color: currentColor;
149
149
  }
150
+
150
151
  .wp-block-pullquote cite,
151
152
  .wp-block-pullquote footer, .wp-block-pullquote__citation {
152
153
  color: currentColor;
@@ -155,29 +156,29 @@
155
156
  font-style: normal;
156
157
  }
157
158
 
158
- .wp-block-quote {
159
+ :where(.wp-block-quote) {
159
160
  border-left: 0.25em solid currentColor;
160
161
  margin: 0 0 1.75em 0;
161
162
  padding-left: 1em;
162
163
  }
163
- .wp-block-quote cite,
164
- .wp-block-quote footer {
164
+ :where(.wp-block-quote) cite,
165
+ :where(.wp-block-quote) footer {
165
166
  color: currentColor;
166
167
  font-size: 0.8125em;
167
168
  position: relative;
168
169
  font-style: normal;
169
170
  }
170
- .wp-block-quote.has-text-align-right {
171
+ :where(.wp-block-quote).has-text-align-right {
171
172
  border-left: none;
172
173
  border-right: 0.25em solid currentColor;
173
174
  padding-left: 0;
174
175
  padding-right: 1em;
175
176
  }
176
- .wp-block-quote.has-text-align-center {
177
+ :where(.wp-block-quote).has-text-align-center {
177
178
  border: none;
178
179
  padding-left: 0;
179
180
  }
180
- .wp-block-quote.is-style-plain, .wp-block-quote.is-style-large, .wp-block-quote.is-large {
181
+ :where(.wp-block-quote).is-style-plain, :where(.wp-block-quote).is-style-large, :where(.wp-block-quote).is-large {
181
182
  border: none;
182
183
  }
183
184
 
@@ -218,9 +219,6 @@
218
219
  height: 2px;
219
220
  }
220
221
 
221
- .wp-block-table {
222
- margin: 0 0 1em 0;
223
- }
224
222
  .wp-block-table td,
225
223
  .wp-block-table th {
226
224
  word-break: normal;
@@ -234,6 +232,10 @@
234
232
  color: rgba(255, 255, 255, 0.65);
235
233
  }
236
234
 
235
+ :where(.wp-block-table) {
236
+ margin: 0 0 1em 0;
237
+ }
238
+
237
239
  .wp-block-video figcaption {
238
240
  color: #555;
239
241
  font-size: 13px;
@@ -243,11 +245,11 @@
243
245
  color: rgba(255, 255, 255, 0.65);
244
246
  }
245
247
 
246
- .wp-block-video {
248
+ :where(.wp-block-video) {
247
249
  margin: 0 0 1em 0;
248
250
  }
249
251
 
250
- .wp-block-template-part.has-background {
252
+ :where(.wp-block-template-part).has-background {
251
253
  padding: 1.25em 2.375em;
252
254
  margin-top: 0;
253
255
  margin-bottom: 0;
@@ -95,6 +95,6 @@
95
95
  color: rgba(255, 255, 255, 0.65);
96
96
  }
97
97
 
98
- .wp-block-video {
98
+ :where(.wp-block-video) {
99
99
  margin: 0 0 1em 0;
100
100
  }
@@ -95,6 +95,6 @@
95
95
  color: rgba(255, 255, 255, 0.65);
96
96
  }
97
97
 
98
- .wp-block-video {
98
+ :where(.wp-block-video) {
99
99
  margin: 0 0 1em 0;
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "8.31.0",
3
+ "version": "8.32.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,38 +31,38 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.16.0",
34
- "@wordpress/a11y": "^3.54.0",
35
- "@wordpress/api-fetch": "^6.51.0",
36
- "@wordpress/autop": "^3.54.0",
37
- "@wordpress/blob": "^3.54.0",
38
- "@wordpress/block-editor": "^12.22.0",
39
- "@wordpress/blocks": "^12.31.0",
40
- "@wordpress/components": "^27.2.0",
41
- "@wordpress/compose": "^6.31.0",
42
- "@wordpress/core-data": "^6.31.0",
43
- "@wordpress/data": "^9.24.0",
44
- "@wordpress/date": "^4.54.0",
45
- "@wordpress/deprecated": "^3.54.0",
46
- "@wordpress/dom": "^3.54.0",
47
- "@wordpress/element": "^5.31.0",
48
- "@wordpress/escape-html": "^2.54.0",
49
- "@wordpress/hooks": "^3.54.0",
50
- "@wordpress/html-entities": "^3.54.0",
51
- "@wordpress/i18n": "^4.54.0",
52
- "@wordpress/icons": "^9.45.0",
53
- "@wordpress/interactivity": "^5.3.0",
54
- "@wordpress/interactivity-router": "^1.4.0",
55
- "@wordpress/keycodes": "^3.54.0",
56
- "@wordpress/notices": "^4.22.0",
57
- "@wordpress/patterns": "^1.15.0",
58
- "@wordpress/primitives": "^3.52.0",
59
- "@wordpress/private-apis": "^0.36.0",
60
- "@wordpress/reusable-blocks": "^4.31.0",
61
- "@wordpress/rich-text": "^6.31.0",
62
- "@wordpress/server-side-render": "^4.31.0",
63
- "@wordpress/url": "^3.55.0",
64
- "@wordpress/viewport": "^5.31.0",
65
- "@wordpress/wordcount": "^3.54.0",
34
+ "@wordpress/a11y": "^3.55.0",
35
+ "@wordpress/api-fetch": "^6.52.0",
36
+ "@wordpress/autop": "^3.55.0",
37
+ "@wordpress/blob": "^3.55.0",
38
+ "@wordpress/block-editor": "^12.23.0",
39
+ "@wordpress/blocks": "^12.32.0",
40
+ "@wordpress/components": "^27.3.0",
41
+ "@wordpress/compose": "^6.32.0",
42
+ "@wordpress/core-data": "^6.32.0",
43
+ "@wordpress/data": "^9.25.0",
44
+ "@wordpress/date": "^4.55.0",
45
+ "@wordpress/deprecated": "^3.55.0",
46
+ "@wordpress/dom": "^3.55.0",
47
+ "@wordpress/element": "^5.32.0",
48
+ "@wordpress/escape-html": "^2.55.0",
49
+ "@wordpress/hooks": "^3.55.0",
50
+ "@wordpress/html-entities": "^3.55.0",
51
+ "@wordpress/i18n": "^4.55.0",
52
+ "@wordpress/icons": "^9.46.0",
53
+ "@wordpress/interactivity": "^5.4.0",
54
+ "@wordpress/interactivity-router": "^1.5.0",
55
+ "@wordpress/keycodes": "^3.55.0",
56
+ "@wordpress/notices": "^4.23.0",
57
+ "@wordpress/patterns": "^1.16.0",
58
+ "@wordpress/primitives": "^3.53.0",
59
+ "@wordpress/private-apis": "^0.37.0",
60
+ "@wordpress/reusable-blocks": "^4.32.0",
61
+ "@wordpress/rich-text": "^6.32.0",
62
+ "@wordpress/server-side-render": "^4.32.0",
63
+ "@wordpress/url": "^3.56.0",
64
+ "@wordpress/viewport": "^5.32.0",
65
+ "@wordpress/wordcount": "^3.55.0",
66
66
  "change-case": "^4.1.2",
67
67
  "classnames": "^2.3.1",
68
68
  "colord": "^2.7.0",
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "ffc07735d0abfb3f69e91d48f25b7fe8d1ef92d2"
83
+ "gitHead": "ac2b13783c28f959770cf029a797a712f59e1958"
84
84
  }
@@ -2,6 +2,6 @@
2
2
  @include caption-style-theme();
3
3
  }
4
4
 
5
- .wp-block-audio {
5
+ :where(.wp-block-audio) {
6
6
  margin: 0 0 1em 0;
7
7
  }