@wordpress/block-library 9.7.0 → 9.7.1-next.1f6eadc42.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 (256) hide show
  1. package/build/archives/edit.js +1 -1
  2. package/build/archives/edit.js.map +1 -1
  3. package/build/block/edit.js +2 -3
  4. package/build/block/edit.js.map +1 -1
  5. package/build/buttons/index.js +1 -1
  6. package/build/comments/edit/comments-legacy.js +2 -4
  7. package/build/comments/edit/comments-legacy.js.map +1 -1
  8. package/build/cover/deprecated.js +1 -1
  9. package/build/cover/deprecated.js.map +1 -1
  10. package/build/cover/edit/index.js +4 -2
  11. package/build/cover/edit/index.js.map +1 -1
  12. package/build/embed/edit.js +5 -11
  13. package/build/embed/edit.js.map +1 -1
  14. package/build/embed/embed-placeholder.js +4 -8
  15. package/build/embed/embed-placeholder.js.map +1 -1
  16. package/build/embed/embed-preview.js +16 -4
  17. package/build/embed/embed-preview.js.map +1 -1
  18. package/build/file/transforms.js +18 -4
  19. package/build/file/transforms.js.map +1 -1
  20. package/build/form-input/deprecated.js +113 -1
  21. package/build/form-input/deprecated.js.map +1 -1
  22. package/build/form-input/edit.js +16 -12
  23. package/build/form-input/edit.js.map +1 -1
  24. package/build/form-input/save.js +9 -1
  25. package/build/form-input/save.js.map +1 -1
  26. package/build/freeform/modal.js +6 -12
  27. package/build/freeform/modal.js.map +1 -1
  28. package/build/image/edit.js +55 -15
  29. package/build/image/edit.js.map +1 -1
  30. package/build/image/image.js +23 -20
  31. package/build/image/image.js.map +1 -1
  32. package/build/image/transforms.js +0 -13
  33. package/build/image/transforms.js.map +1 -1
  34. package/build/image/use-max-width-observer.js +35 -0
  35. package/build/image/use-max-width-observer.js.map +1 -0
  36. package/build/image/utils.js +11 -0
  37. package/build/image/utils.js.map +1 -1
  38. package/build/latest-posts/edit.js +1 -1
  39. package/build/latest-posts/edit.js.map +1 -1
  40. package/build/missing/edit.js +2 -4
  41. package/build/missing/edit.js.map +1 -1
  42. package/build/navigation/edit/deleted-navigation-warning.js +14 -10
  43. package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
  44. package/build/navigation/edit/index.js +2 -4
  45. package/build/navigation/edit/index.js.map +1 -1
  46. package/build/navigation/edit/menu-inspector-controls.js +2 -1
  47. package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
  48. package/build/navigation/edit/navigation-menu-delete-control.js +2 -4
  49. package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  50. package/build/navigation/edit/placeholder/index.js +2 -4
  51. package/build/navigation/edit/placeholder/index.js.map +1 -1
  52. package/build/navigation/edit/responsive-wrapper.js +4 -8
  53. package/build/navigation/edit/responsive-wrapper.js.map +1 -1
  54. package/build/navigation-link/link-ui.js +2 -4
  55. package/build/navigation-link/link-ui.js.map +1 -1
  56. package/build/page-list/convert-to-links-modal.js +4 -8
  57. package/build/page-list/convert-to-links-modal.js.map +1 -1
  58. package/build/page-list/edit.js +2 -4
  59. package/build/page-list/edit.js.map +1 -1
  60. package/build/post-comments-form/form.js +2 -4
  61. package/build/post-comments-form/form.js.map +1 -1
  62. package/build/post-featured-image/edit.js +2 -4
  63. package/build/post-featured-image/edit.js.map +1 -1
  64. package/build/post-title/index.js +4 -1
  65. package/build/post-title/index.js.map +1 -1
  66. package/build/query/edit/enhanced-pagination-modal.js +4 -6
  67. package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
  68. package/build/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  69. package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  70. package/build/query/edit/inspector-controls/index.js +2 -10
  71. package/build/query/edit/inspector-controls/index.js.map +1 -1
  72. package/build/query/edit/query-content.js +9 -3
  73. package/build/query/edit/query-content.js.map +1 -1
  74. package/build/query/edit/query-placeholder.js +4 -8
  75. package/build/query/edit/query-placeholder.js.map +1 -1
  76. package/build/site-logo/edit.js +4 -8
  77. package/build/site-logo/edit.js.map +1 -1
  78. package/build/site-title/index.js +4 -1
  79. package/build/site-title/index.js.map +1 -1
  80. package/build/social-link/edit.js +1 -1
  81. package/build/social-link/edit.js.map +1 -1
  82. package/build/template-part/edit/inner-blocks.js +10 -1
  83. package/build/template-part/edit/inner-blocks.js.map +1 -1
  84. package/build/template-part/edit/placeholder.js +4 -8
  85. package/build/template-part/edit/placeholder.js.map +1 -1
  86. package/build/video/edit.js +4 -8
  87. package/build/video/edit.js.map +1 -1
  88. package/build/video/tracks-editor.js +6 -12
  89. package/build/video/tracks-editor.js.map +1 -1
  90. package/build-module/archives/edit.js +1 -1
  91. package/build-module/archives/edit.js.map +1 -1
  92. package/build-module/block/edit.js +2 -3
  93. package/build-module/block/edit.js.map +1 -1
  94. package/build-module/buttons/index.js +1 -1
  95. package/build-module/comments/edit/comments-legacy.js +2 -4
  96. package/build-module/comments/edit/comments-legacy.js.map +1 -1
  97. package/build-module/cover/deprecated.js +1 -1
  98. package/build-module/cover/deprecated.js.map +1 -1
  99. package/build-module/cover/edit/index.js +4 -2
  100. package/build-module/cover/edit/index.js.map +1 -1
  101. package/build-module/embed/edit.js +6 -12
  102. package/build-module/embed/edit.js.map +1 -1
  103. package/build-module/embed/embed-placeholder.js +4 -8
  104. package/build-module/embed/embed-placeholder.js.map +1 -1
  105. package/build-module/embed/embed-preview.js +16 -4
  106. package/build-module/embed/embed-preview.js.map +1 -1
  107. package/build-module/file/transforms.js +18 -4
  108. package/build-module/file/transforms.js.map +1 -1
  109. package/build-module/form-input/deprecated.js +114 -2
  110. package/build-module/form-input/deprecated.js.map +1 -1
  111. package/build-module/form-input/edit.js +16 -12
  112. package/build-module/form-input/edit.js.map +1 -1
  113. package/build-module/form-input/save.js +9 -1
  114. package/build-module/form-input/save.js.map +1 -1
  115. package/build-module/freeform/modal.js +6 -12
  116. package/build-module/freeform/modal.js.map +1 -1
  117. package/build-module/image/edit.js +58 -18
  118. package/build-module/image/edit.js.map +1 -1
  119. package/build-module/image/image.js +23 -20
  120. package/build-module/image/image.js.map +1 -1
  121. package/build-module/image/transforms.js +0 -13
  122. package/build-module/image/transforms.js.map +1 -1
  123. package/build-module/image/use-max-width-observer.js +29 -0
  124. package/build-module/image/use-max-width-observer.js.map +1 -0
  125. package/build-module/image/utils.js +11 -1
  126. package/build-module/image/utils.js.map +1 -1
  127. package/build-module/latest-posts/edit.js +1 -1
  128. package/build-module/latest-posts/edit.js.map +1 -1
  129. package/build-module/missing/edit.js +2 -4
  130. package/build-module/missing/edit.js.map +1 -1
  131. package/build-module/navigation/edit/deleted-navigation-warning.js +15 -11
  132. package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
  133. package/build-module/navigation/edit/index.js +2 -4
  134. package/build-module/navigation/edit/index.js.map +1 -1
  135. package/build-module/navigation/edit/menu-inspector-controls.js +2 -1
  136. package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
  137. package/build-module/navigation/edit/navigation-menu-delete-control.js +2 -4
  138. package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  139. package/build-module/navigation/edit/placeholder/index.js +2 -4
  140. package/build-module/navigation/edit/placeholder/index.js.map +1 -1
  141. package/build-module/navigation/edit/responsive-wrapper.js +4 -8
  142. package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
  143. package/build-module/navigation-link/link-ui.js +2 -4
  144. package/build-module/navigation-link/link-ui.js.map +1 -1
  145. package/build-module/page-list/convert-to-links-modal.js +4 -8
  146. package/build-module/page-list/convert-to-links-modal.js.map +1 -1
  147. package/build-module/page-list/edit.js +2 -4
  148. package/build-module/page-list/edit.js.map +1 -1
  149. package/build-module/post-comments-form/form.js +2 -4
  150. package/build-module/post-comments-form/form.js.map +1 -1
  151. package/build-module/post-featured-image/edit.js +2 -4
  152. package/build-module/post-featured-image/edit.js.map +1 -1
  153. package/build-module/post-title/index.js +4 -1
  154. package/build-module/post-title/index.js.map +1 -1
  155. package/build-module/query/edit/enhanced-pagination-modal.js +4 -6
  156. package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
  157. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  158. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  159. package/build-module/query/edit/inspector-controls/index.js +2 -10
  160. package/build-module/query/edit/inspector-controls/index.js.map +1 -1
  161. package/build-module/query/edit/query-content.js +10 -4
  162. package/build-module/query/edit/query-content.js.map +1 -1
  163. package/build-module/query/edit/query-placeholder.js +4 -8
  164. package/build-module/query/edit/query-placeholder.js.map +1 -1
  165. package/build-module/site-logo/edit.js +4 -8
  166. package/build-module/site-logo/edit.js.map +1 -1
  167. package/build-module/site-title/index.js +4 -1
  168. package/build-module/site-title/index.js.map +1 -1
  169. package/build-module/social-link/edit.js +1 -1
  170. package/build-module/social-link/edit.js.map +1 -1
  171. package/build-module/template-part/edit/inner-blocks.js +10 -1
  172. package/build-module/template-part/edit/inner-blocks.js.map +1 -1
  173. package/build-module/template-part/edit/placeholder.js +4 -8
  174. package/build-module/template-part/edit/placeholder.js.map +1 -1
  175. package/build-module/video/edit.js +4 -8
  176. package/build-module/video/edit.js.map +1 -1
  177. package/build-module/video/tracks-editor.js +6 -12
  178. package/build-module/video/tracks-editor.js.map +1 -1
  179. package/build-style/buttons/editor-rtl.css +2 -2
  180. package/build-style/buttons/editor.css +2 -2
  181. package/build-style/buttons/style-rtl.css +2 -2
  182. package/build-style/buttons/style.css +2 -2
  183. package/build-style/common-rtl.css +2 -2
  184. package/build-style/common.css +2 -2
  185. package/build-style/editor-rtl.css +11 -31
  186. package/build-style/editor.css +11 -31
  187. package/build-style/form-input/style-rtl.css +7 -8
  188. package/build-style/form-input/style.css +7 -8
  189. package/build-style/image/editor-rtl.css +6 -26
  190. package/build-style/image/editor.css +6 -26
  191. package/build-style/navigation/editor-rtl.css +1 -1
  192. package/build-style/navigation/editor.css +1 -1
  193. package/build-style/post-title/style-rtl.css +21 -0
  194. package/build-style/post-title/style.css +21 -0
  195. package/build-style/site-title/style-rtl.css +21 -0
  196. package/build-style/site-title/style.css +21 -0
  197. package/build-style/style-rtl.css +53 -12
  198. package/build-style/style.css +53 -12
  199. package/package.json +42 -35
  200. package/src/archives/edit.js +1 -1
  201. package/src/block/edit.js +3 -7
  202. package/src/buttons/block.json +1 -1
  203. package/src/buttons/editor.scss +2 -2
  204. package/src/buttons/style.scss +2 -2
  205. package/src/comments/edit/comments-legacy.js +1 -2
  206. package/src/cover/deprecated.js +3 -2
  207. package/src/cover/edit/index.js +5 -1
  208. package/src/embed/edit.js +0 -7
  209. package/src/embed/embed-placeholder.js +2 -4
  210. package/src/embed/embed-preview.js +22 -2
  211. package/src/file/index.php +1 -1
  212. package/src/file/transforms.js +26 -6
  213. package/src/form-input/deprecated.js +114 -1
  214. package/src/form-input/edit.js +17 -11
  215. package/src/form-input/save.js +13 -3
  216. package/src/form-input/style.scss +9 -8
  217. package/src/freeform/modal.js +3 -6
  218. package/src/image/edit.js +91 -20
  219. package/src/image/editor.scss +7 -38
  220. package/src/image/image.js +31 -20
  221. package/src/image/index.php +1 -1
  222. package/src/image/transforms.js +0 -23
  223. package/src/image/use-max-width-observer.js +32 -0
  224. package/src/image/utils.js +13 -1
  225. package/src/latest-posts/edit.js +1 -1
  226. package/src/missing/edit.js +1 -2
  227. package/src/navigation/edit/deleted-navigation-warning.js +23 -20
  228. package/src/navigation/edit/index.js +1 -2
  229. package/src/navigation/edit/menu-inspector-controls.js +3 -1
  230. package/src/navigation/edit/navigation-menu-delete-control.js +1 -2
  231. package/src/navigation/edit/placeholder/index.js +1 -2
  232. package/src/navigation/edit/responsive-wrapper.js +2 -4
  233. package/src/navigation/editor.scss +5 -1
  234. package/src/navigation/index.php +1 -1
  235. package/src/navigation-link/link-ui.js +1 -2
  236. package/src/page-list/convert-to-links-modal.js +2 -4
  237. package/src/page-list/edit.js +1 -2
  238. package/src/post-comments-form/form.js +1 -2
  239. package/src/post-featured-image/edit.js +1 -2
  240. package/src/post-title/block.json +4 -1
  241. package/src/post-title/style.scss +24 -0
  242. package/src/query/edit/enhanced-pagination-modal.js +3 -4
  243. package/src/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  244. package/src/query/edit/inspector-controls/index.js +2 -9
  245. package/src/query/edit/query-content.js +7 -0
  246. package/src/query/edit/query-placeholder.js +2 -4
  247. package/src/query/index.php +1 -1
  248. package/src/search/index.php +1 -1
  249. package/src/site-logo/edit.js +2 -4
  250. package/src/site-title/block.json +4 -1
  251. package/src/site-title/style.scss +24 -0
  252. package/src/social-link/edit.js +1 -1
  253. package/src/template-part/edit/inner-blocks.js +20 -1
  254. package/src/template-part/edit/placeholder.js +2 -4
  255. package/src/video/edit.js +2 -4
  256. package/src/video/tracks-editor.js +3 -6
@@ -145,7 +145,7 @@ div[data-type="core/button"] {
145
145
  }
146
146
 
147
147
  .wp-block-buttons {
148
- /* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
148
+ /* stylelint-disable @stylistic/indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
149
149
  }
150
150
  .wp-block-buttons > .wp-block {
151
151
  margin: 0;
@@ -167,7 +167,7 @@ div[data-type="core/button"] {
167
167
  .is-content-justification-right,
168
168
  .is-content-justification-left,
169
169
  .is-content-justification-center) .wp-block[data-align=center] {
170
- /* stylelint-enable indentation */
170
+ /* stylelint-enable @stylistic/indentation */
171
171
  margin-right: auto;
172
172
  margin-left: auto;
173
173
  margin-top: 0;
@@ -1205,32 +1205,8 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
1205
1205
  outline: 2px solid transparent !important;
1206
1206
  }
1207
1207
 
1208
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder {
1209
- color: #1e1e1e;
1210
- background-color: #fff;
1211
- box-shadow: inset 0 0 0 1px #1e1e1e;
1212
- border: none;
1213
- filter: none !important;
1214
- }
1215
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder > svg {
1216
- opacity: 0;
1217
- }
1218
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder .components-placeholder__illustration {
1219
- display: none;
1220
- }
1221
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder::before {
1222
- opacity: 0;
1223
- }
1224
- .wp-block-image.wp-block-image .block-bindings-media-placeholder-message {
1225
- opacity: 0;
1226
- }
1227
- .wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message {
1228
- opacity: 1;
1229
- }
1230
- .wp-block-image.wp-block-image .components-placeholder__label,
1231
- .wp-block-image.wp-block-image .components-placeholder__instructions,
1232
- .wp-block-image.wp-block-image .components-button {
1233
- transition: none;
1208
+ .wp-block-image.wp-block-image .block-editor-media-placeholder.is-small {
1209
+ min-height: 60px;
1234
1210
  }
1235
1211
 
1236
1212
  figure.wp-block-image:not(.wp-block) {
@@ -1324,6 +1300,10 @@ figure.wp-block-image:not(.wp-block) {
1324
1300
  text-align: center;
1325
1301
  }
1326
1302
 
1303
+ .wp-block[data-align]:has(> .wp-block-image) {
1304
+ position: relative;
1305
+ }
1306
+
1327
1307
  .wp-block-image__crop-area {
1328
1308
  position: relative;
1329
1309
  max-width: 100%;
@@ -1867,7 +1847,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
1867
1847
  width: 100%;
1868
1848
  background-color: #f0f0f0;
1869
1849
  padding: 0 24px;
1870
- height: 64px;
1850
+ height: 64px !important;
1871
1851
  margin-bottom: 12px;
1872
1852
  }
1873
1853
  .wp-block-navigation__overlay-menu-preview.open {
@@ -2954,8 +2934,8 @@ div[data-type="core/post-featured-image"] img {
2954
2934
  }
2955
2935
 
2956
2936
  :root .editor-styles-wrapper {
2957
- /* stylelint-disable function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
2958
- /* stylelint-enable function-comma-space-after */
2937
+ /* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
2938
+ /* stylelint-enable @stylistic/function-comma-space-after */
2959
2939
  }
2960
2940
  :root .editor-styles-wrapper .has-very-light-gray-background-color {
2961
2941
  background-color: #eee;
@@ -146,7 +146,7 @@ div[data-type="core/button"] {
146
146
  }
147
147
 
148
148
  .wp-block-buttons {
149
- /* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
149
+ /* stylelint-disable @stylistic/indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
150
150
  }
151
151
  .wp-block-buttons > .wp-block {
152
152
  margin: 0;
@@ -168,7 +168,7 @@ div[data-type="core/button"] {
168
168
  .is-content-justification-right,
169
169
  .is-content-justification-left,
170
170
  .is-content-justification-center) .wp-block[data-align=center] {
171
- /* stylelint-enable indentation */
171
+ /* stylelint-enable @stylistic/indentation */
172
172
  margin-left: auto;
173
173
  margin-right: auto;
174
174
  margin-top: 0;
@@ -1214,32 +1214,8 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
1214
1214
  outline: 2px solid transparent !important;
1215
1215
  }
1216
1216
 
1217
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder {
1218
- color: #1e1e1e;
1219
- background-color: #fff;
1220
- box-shadow: inset 0 0 0 1px #1e1e1e;
1221
- border: none;
1222
- filter: none !important;
1223
- }
1224
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder > svg {
1225
- opacity: 0;
1226
- }
1227
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder .components-placeholder__illustration {
1228
- display: none;
1229
- }
1230
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder::before {
1231
- opacity: 0;
1232
- }
1233
- .wp-block-image.wp-block-image .block-bindings-media-placeholder-message {
1234
- opacity: 0;
1235
- }
1236
- .wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message {
1237
- opacity: 1;
1238
- }
1239
- .wp-block-image.wp-block-image .components-placeholder__label,
1240
- .wp-block-image.wp-block-image .components-placeholder__instructions,
1241
- .wp-block-image.wp-block-image .components-button {
1242
- transition: none;
1217
+ .wp-block-image.wp-block-image .block-editor-media-placeholder.is-small {
1218
+ min-height: 60px;
1243
1219
  }
1244
1220
 
1245
1221
  figure.wp-block-image:not(.wp-block) {
@@ -1333,6 +1309,10 @@ figure.wp-block-image:not(.wp-block) {
1333
1309
  text-align: center;
1334
1310
  }
1335
1311
 
1312
+ .wp-block[data-align]:has(> .wp-block-image) {
1313
+ position: relative;
1314
+ }
1315
+
1336
1316
  .wp-block-image__crop-area {
1337
1317
  position: relative;
1338
1318
  max-width: 100%;
@@ -1876,7 +1856,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
1876
1856
  width: 100%;
1877
1857
  background-color: #f0f0f0;
1878
1858
  padding: 0 24px;
1879
- height: 64px;
1859
+ height: 64px !important;
1880
1860
  margin-bottom: 12px;
1881
1861
  }
1882
1862
  .wp-block-navigation__overlay-menu-preview.open {
@@ -2964,8 +2944,8 @@ div[data-type="core/post-featured-image"] img {
2964
2944
  }
2965
2945
 
2966
2946
  :root .editor-styles-wrapper {
2967
- /* stylelint-disable function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
2968
- /* stylelint-enable function-comma-space-after */
2947
+ /* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
2948
+ /* stylelint-enable @stylistic/function-comma-space-after */
2969
2949
  }
2970
2950
  :root .editor-styles-wrapper .has-very-light-gray-background-color {
2971
2951
  background-color: #eee;
@@ -95,13 +95,6 @@
95
95
  flex-direction: column;
96
96
  gap: 0.25em;
97
97
  margin-bottom: 0.5em;
98
- /*
99
- Small tweak to left-align the checkbox.
100
- Even though `:has` is not currently supported in Firefox, this is a small tweak
101
- and does not affect the functionality of the block or the user's experience.
102
- There will be a minor inconsistency between browsers. However, it's more important to provide
103
- a better experience for 80+% of users, until Firefox catches up and supports `:has`.
104
- */
105
98
  }
106
99
  .wp-block-form-input__label.is-label-inline {
107
100
  flex-direction: row;
@@ -112,9 +105,15 @@
112
105
  margin-bottom: 0.5em;
113
106
  }
114
107
  .wp-block-form-input__label:has(input[type=checkbox]) {
108
+ flex-direction: row;
115
109
  width: -moz-fit-content;
116
110
  width: fit-content;
117
- /* stylelint-disable-next-line declaration-property-value-allowed-list -- This should be refactored to not use the row-reverse value. */
111
+ }
112
+ .wp-block-form-input__label:has(input[type=checkbox]) .wp-block-form-input__label-content {
113
+ margin: 0;
114
+ }
115
+ .wp-block-form-input__label:has(.wp-block-form-input__label-content + input[type=checkbox]) {
116
+ /* stylelint-disable-next-line declaration-property-value-allowed-list -- This style is required for old markup. */
118
117
  flex-direction: row-reverse;
119
118
  }
120
119
 
@@ -95,13 +95,6 @@
95
95
  flex-direction: column;
96
96
  gap: 0.25em;
97
97
  margin-bottom: 0.5em;
98
- /*
99
- Small tweak to left-align the checkbox.
100
- Even though `:has` is not currently supported in Firefox, this is a small tweak
101
- and does not affect the functionality of the block or the user's experience.
102
- There will be a minor inconsistency between browsers. However, it's more important to provide
103
- a better experience for 80+% of users, until Firefox catches up and supports `:has`.
104
- */
105
98
  }
106
99
  .wp-block-form-input__label.is-label-inline {
107
100
  flex-direction: row;
@@ -112,9 +105,15 @@
112
105
  margin-bottom: 0.5em;
113
106
  }
114
107
  .wp-block-form-input__label:has(input[type=checkbox]) {
108
+ flex-direction: row;
115
109
  width: -moz-fit-content;
116
110
  width: fit-content;
117
- /* stylelint-disable-next-line declaration-property-value-allowed-list -- This should be refactored to not use the row-reverse value. */
111
+ }
112
+ .wp-block-form-input__label:has(input[type=checkbox]) .wp-block-form-input__label-content {
113
+ margin: 0;
114
+ }
115
+ .wp-block-form-input__label:has(.wp-block-form-input__label-content + input[type=checkbox]) {
116
+ /* stylelint-disable-next-line declaration-property-value-allowed-list -- This style is required for old markup. */
118
117
  flex-direction: row-reverse;
119
118
  }
120
119
 
@@ -89,32 +89,8 @@
89
89
  /**
90
90
  * Reset the WP Admin page styles for Gutenberg-like pages.
91
91
  */
92
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder {
93
- color: #1e1e1e;
94
- background-color: #fff;
95
- box-shadow: inset 0 0 0 1px #1e1e1e;
96
- border: none;
97
- filter: none !important;
98
- }
99
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder > svg {
100
- opacity: 0;
101
- }
102
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder .components-placeholder__illustration {
103
- display: none;
104
- }
105
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder::before {
106
- opacity: 0;
107
- }
108
- .wp-block-image.wp-block-image .block-bindings-media-placeholder-message {
109
- opacity: 0;
110
- }
111
- .wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message {
112
- opacity: 1;
113
- }
114
- .wp-block-image.wp-block-image .components-placeholder__label,
115
- .wp-block-image.wp-block-image .components-placeholder__instructions,
116
- .wp-block-image.wp-block-image .components-button {
117
- transition: none;
92
+ .wp-block-image.wp-block-image .block-editor-media-placeholder.is-small {
93
+ min-height: 60px;
118
94
  }
119
95
 
120
96
  figure.wp-block-image:not(.wp-block) {
@@ -208,6 +184,10 @@ figure.wp-block-image:not(.wp-block) {
208
184
  text-align: center;
209
185
  }
210
186
 
187
+ .wp-block[data-align]:has(> .wp-block-image) {
188
+ position: relative;
189
+ }
190
+
211
191
  .wp-block-image__crop-area {
212
192
  position: relative;
213
193
  max-width: 100%;
@@ -89,32 +89,8 @@
89
89
  /**
90
90
  * Reset the WP Admin page styles for Gutenberg-like pages.
91
91
  */
92
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder {
93
- color: #1e1e1e;
94
- background-color: #fff;
95
- box-shadow: inset 0 0 0 1px #1e1e1e;
96
- border: none;
97
- filter: none !important;
98
- }
99
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder > svg {
100
- opacity: 0;
101
- }
102
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder .components-placeholder__illustration {
103
- display: none;
104
- }
105
- .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder::before {
106
- opacity: 0;
107
- }
108
- .wp-block-image.wp-block-image .block-bindings-media-placeholder-message {
109
- opacity: 0;
110
- }
111
- .wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message {
112
- opacity: 1;
113
- }
114
- .wp-block-image.wp-block-image .components-placeholder__label,
115
- .wp-block-image.wp-block-image .components-placeholder__instructions,
116
- .wp-block-image.wp-block-image .components-button {
117
- transition: none;
92
+ .wp-block-image.wp-block-image .block-editor-media-placeholder.is-small {
93
+ min-height: 60px;
118
94
  }
119
95
 
120
96
  figure.wp-block-image:not(.wp-block) {
@@ -208,6 +184,10 @@ figure.wp-block-image:not(.wp-block) {
208
184
  text-align: center;
209
185
  }
210
186
 
187
+ .wp-block[data-align]:has(> .wp-block-image) {
188
+ position: relative;
189
+ }
190
+
211
191
  .wp-block-image__crop-area {
212
192
  position: relative;
213
193
  max-width: 100%;
@@ -493,7 +493,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
493
493
  width: 100%;
494
494
  background-color: #f0f0f0;
495
495
  padding: 0 24px;
496
- height: 64px;
496
+ height: 64px !important;
497
497
  margin-bottom: 12px;
498
498
  }
499
499
  .wp-block-navigation__overlay-menu-preview.open {
@@ -493,7 +493,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
493
493
  width: 100%;
494
494
  background-color: #f0f0f0;
495
495
  padding: 0 24px;
496
- height: 64px;
496
+ height: 64px !important;
497
497
  margin-bottom: 12px;
498
498
  }
499
499
  .wp-block-navigation__overlay-menu-preview.open {
@@ -93,6 +93,27 @@
93
93
  word-break: break-word;
94
94
  box-sizing: border-box;
95
95
  }
96
+ .wp-block-post-title[style*=font-weight] :where(a) {
97
+ font-weight: inherit;
98
+ }
99
+ .wp-block-post-title[class*=-font-family] :where(a), .wp-block-post-title[style*=font-family] :where(a) {
100
+ font-family: inherit;
101
+ }
102
+ .wp-block-post-title[class*=-font-size] :where(a), .wp-block-post-title[style*=font-size] :where(a) {
103
+ font-size: inherit;
104
+ }
105
+ .wp-block-post-title[style*=line-height] :where(a) {
106
+ line-height: inherit;
107
+ }
108
+ .wp-block-post-title[style*=font-style] :where(a) {
109
+ font-style: inherit;
110
+ }
111
+ .wp-block-post-title[style*=letter-spacing] :where(a) {
112
+ letter-spacing: inherit;
113
+ }
114
+ .wp-block-post-title[style*=text-decoration] :where(a) {
115
+ text-decoration: inherit;
116
+ }
96
117
  .wp-block-post-title a {
97
118
  display: inline-block;
98
119
  }
@@ -93,6 +93,27 @@
93
93
  word-break: break-word;
94
94
  box-sizing: border-box;
95
95
  }
96
+ .wp-block-post-title[style*=font-weight] :where(a) {
97
+ font-weight: inherit;
98
+ }
99
+ .wp-block-post-title[class*=-font-family] :where(a), .wp-block-post-title[style*=font-family] :where(a) {
100
+ font-family: inherit;
101
+ }
102
+ .wp-block-post-title[class*=-font-size] :where(a), .wp-block-post-title[style*=font-size] :where(a) {
103
+ font-size: inherit;
104
+ }
105
+ .wp-block-post-title[style*=line-height] :where(a) {
106
+ line-height: inherit;
107
+ }
108
+ .wp-block-post-title[style*=font-style] :where(a) {
109
+ font-style: inherit;
110
+ }
111
+ .wp-block-post-title[style*=letter-spacing] :where(a) {
112
+ letter-spacing: inherit;
113
+ }
114
+ .wp-block-post-title[style*=text-decoration] :where(a) {
115
+ text-decoration: inherit;
116
+ }
96
117
  .wp-block-post-title a {
97
118
  display: inline-block;
98
119
  }
@@ -92,6 +92,27 @@
92
92
  .wp-block-site-title {
93
93
  box-sizing: border-box;
94
94
  }
95
+ .wp-block-site-title[style*=font-weight] :where(a) {
96
+ font-weight: inherit;
97
+ }
98
+ .wp-block-site-title[class*=-font-family] :where(a), .wp-block-site-title[style*=font-family] :where(a) {
99
+ font-family: inherit;
100
+ }
101
+ .wp-block-site-title[class*=-font-size] :where(a), .wp-block-site-title[style*=font-size] :where(a) {
102
+ font-size: inherit;
103
+ }
104
+ .wp-block-site-title[style*=line-height] :where(a) {
105
+ line-height: inherit;
106
+ }
107
+ .wp-block-site-title[style*=font-style] :where(a) {
108
+ font-style: inherit;
109
+ }
110
+ .wp-block-site-title[style*=letter-spacing] :where(a) {
111
+ letter-spacing: inherit;
112
+ }
113
+ .wp-block-site-title[style*=text-decoration] :where(a) {
114
+ text-decoration: inherit;
115
+ }
95
116
  .wp-block-site-title :where(a) {
96
117
  color: inherit;
97
118
  }
@@ -92,6 +92,27 @@
92
92
  .wp-block-site-title {
93
93
  box-sizing: border-box;
94
94
  }
95
+ .wp-block-site-title[style*=font-weight] :where(a) {
96
+ font-weight: inherit;
97
+ }
98
+ .wp-block-site-title[class*=-font-family] :where(a), .wp-block-site-title[style*=font-family] :where(a) {
99
+ font-family: inherit;
100
+ }
101
+ .wp-block-site-title[class*=-font-size] :where(a), .wp-block-site-title[style*=font-size] :where(a) {
102
+ font-size: inherit;
103
+ }
104
+ .wp-block-site-title[style*=line-height] :where(a) {
105
+ line-height: inherit;
106
+ }
107
+ .wp-block-site-title[style*=font-style] :where(a) {
108
+ font-style: inherit;
109
+ }
110
+ .wp-block-site-title[style*=letter-spacing] :where(a) {
111
+ letter-spacing: inherit;
112
+ }
113
+ .wp-block-site-title[style*=text-decoration] :where(a) {
114
+ text-decoration: inherit;
115
+ }
95
116
  .wp-block-site-title :where(a) {
96
117
  color: inherit;
97
118
  }
@@ -205,7 +205,7 @@
205
205
  }
206
206
 
207
207
  .wp-block-buttons {
208
- /* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
208
+ /* stylelint-disable @stylistic/indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
209
209
  }
210
210
  .wp-block-buttons.is-vertical {
211
211
  flex-direction: column;
@@ -245,7 +245,7 @@
245
245
  .is-content-justification-right,
246
246
  .is-content-justification-left,
247
247
  .is-content-justification-center) .wp-block-button.aligncenter {
248
- /* stylelint-enable indentation */
248
+ /* stylelint-enable @stylistic/indentation */
249
249
  margin-right: auto;
250
250
  margin-left: auto;
251
251
  width: 100%;
@@ -1134,13 +1134,6 @@ section.wp-block-cover-image > h2,
1134
1134
  flex-direction: column;
1135
1135
  gap: 0.25em;
1136
1136
  margin-bottom: 0.5em;
1137
- /*
1138
- Small tweak to left-align the checkbox.
1139
- Even though `:has` is not currently supported in Firefox, this is a small tweak
1140
- and does not affect the functionality of the block or the user's experience.
1141
- There will be a minor inconsistency between browsers. However, it's more important to provide
1142
- a better experience for 80+% of users, until Firefox catches up and supports `:has`.
1143
- */
1144
1137
  }
1145
1138
  .wp-block-form-input__label.is-label-inline {
1146
1139
  flex-direction: row;
@@ -1151,9 +1144,15 @@ section.wp-block-cover-image > h2,
1151
1144
  margin-bottom: 0.5em;
1152
1145
  }
1153
1146
  .wp-block-form-input__label:has(input[type=checkbox]) {
1147
+ flex-direction: row;
1154
1148
  width: -moz-fit-content;
1155
1149
  width: fit-content;
1156
- /* stylelint-disable-next-line declaration-property-value-allowed-list -- This should be refactored to not use the row-reverse value. */
1150
+ }
1151
+ .wp-block-form-input__label:has(input[type=checkbox]) .wp-block-form-input__label-content {
1152
+ margin: 0;
1153
+ }
1154
+ .wp-block-form-input__label:has(.wp-block-form-input__label-content + input[type=checkbox]) {
1155
+ /* stylelint-disable-next-line declaration-property-value-allowed-list -- This style is required for old markup. */
1157
1156
  flex-direction: row-reverse;
1158
1157
  }
1159
1158
 
@@ -3014,6 +3013,27 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
3014
3013
  word-break: break-word;
3015
3014
  box-sizing: border-box;
3016
3015
  }
3016
+ .wp-block-post-title[style*=font-weight] :where(a) {
3017
+ font-weight: inherit;
3018
+ }
3019
+ .wp-block-post-title[class*=-font-family] :where(a), .wp-block-post-title[style*=font-family] :where(a) {
3020
+ font-family: inherit;
3021
+ }
3022
+ .wp-block-post-title[class*=-font-size] :where(a), .wp-block-post-title[style*=font-size] :where(a) {
3023
+ font-size: inherit;
3024
+ }
3025
+ .wp-block-post-title[style*=line-height] :where(a) {
3026
+ line-height: inherit;
3027
+ }
3028
+ .wp-block-post-title[style*=font-style] :where(a) {
3029
+ font-style: inherit;
3030
+ }
3031
+ .wp-block-post-title[style*=letter-spacing] :where(a) {
3032
+ letter-spacing: inherit;
3033
+ }
3034
+ .wp-block-post-title[style*=text-decoration] :where(a) {
3035
+ text-decoration: inherit;
3036
+ }
3017
3037
  .wp-block-post-title a {
3018
3038
  display: inline-block;
3019
3039
  }
@@ -3438,6 +3458,27 @@ ul.wp-block-rss.is-grid li {
3438
3458
  .wp-block-site-title {
3439
3459
  box-sizing: border-box;
3440
3460
  }
3461
+ .wp-block-site-title[style*=font-weight] :where(a) {
3462
+ font-weight: inherit;
3463
+ }
3464
+ .wp-block-site-title[class*=-font-family] :where(a), .wp-block-site-title[style*=font-family] :where(a) {
3465
+ font-family: inherit;
3466
+ }
3467
+ .wp-block-site-title[class*=-font-size] :where(a), .wp-block-site-title[style*=font-size] :where(a) {
3468
+ font-size: inherit;
3469
+ }
3470
+ .wp-block-site-title[style*=line-height] :where(a) {
3471
+ line-height: inherit;
3472
+ }
3473
+ .wp-block-site-title[style*=font-style] :where(a) {
3474
+ font-style: inherit;
3475
+ }
3476
+ .wp-block-site-title[style*=letter-spacing] :where(a) {
3477
+ letter-spacing: inherit;
3478
+ }
3479
+ .wp-block-site-title[style*=text-decoration] :where(a) {
3480
+ text-decoration: inherit;
3481
+ }
3441
3482
  .wp-block-site-title :where(a) {
3442
3483
  color: inherit;
3443
3484
  }
@@ -4130,8 +4171,8 @@ a[data-fn].fn::after {
4130
4171
  }
4131
4172
 
4132
4173
  :root {
4133
- /* stylelint-disable function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4134
- /* stylelint-enable function-comma-space-after */
4174
+ /* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4175
+ /* stylelint-enable @stylistic/function-comma-space-after */
4135
4176
  --wp--preset--font-size--normal: 16px;
4136
4177
  --wp--preset--font-size--huge: 42px;
4137
4178
  }
@@ -206,7 +206,7 @@
206
206
  }
207
207
 
208
208
  .wp-block-buttons {
209
- /* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
209
+ /* stylelint-disable @stylistic/indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
210
210
  }
211
211
  .wp-block-buttons.is-vertical {
212
212
  flex-direction: column;
@@ -246,7 +246,7 @@
246
246
  .is-content-justification-right,
247
247
  .is-content-justification-left,
248
248
  .is-content-justification-center) .wp-block-button.aligncenter {
249
- /* stylelint-enable indentation */
249
+ /* stylelint-enable @stylistic/indentation */
250
250
  margin-left: auto;
251
251
  margin-right: auto;
252
252
  width: 100%;
@@ -1142,13 +1142,6 @@ section.wp-block-cover-image > h2,
1142
1142
  flex-direction: column;
1143
1143
  gap: 0.25em;
1144
1144
  margin-bottom: 0.5em;
1145
- /*
1146
- Small tweak to left-align the checkbox.
1147
- Even though `:has` is not currently supported in Firefox, this is a small tweak
1148
- and does not affect the functionality of the block or the user's experience.
1149
- There will be a minor inconsistency between browsers. However, it's more important to provide
1150
- a better experience for 80+% of users, until Firefox catches up and supports `:has`.
1151
- */
1152
1145
  }
1153
1146
  .wp-block-form-input__label.is-label-inline {
1154
1147
  flex-direction: row;
@@ -1159,9 +1152,15 @@ section.wp-block-cover-image > h2,
1159
1152
  margin-bottom: 0.5em;
1160
1153
  }
1161
1154
  .wp-block-form-input__label:has(input[type=checkbox]) {
1155
+ flex-direction: row;
1162
1156
  width: -moz-fit-content;
1163
1157
  width: fit-content;
1164
- /* stylelint-disable-next-line declaration-property-value-allowed-list -- This should be refactored to not use the row-reverse value. */
1158
+ }
1159
+ .wp-block-form-input__label:has(input[type=checkbox]) .wp-block-form-input__label-content {
1160
+ margin: 0;
1161
+ }
1162
+ .wp-block-form-input__label:has(.wp-block-form-input__label-content + input[type=checkbox]) {
1163
+ /* stylelint-disable-next-line declaration-property-value-allowed-list -- This style is required for old markup. */
1165
1164
  flex-direction: row-reverse;
1166
1165
  }
1167
1166
 
@@ -3044,6 +3043,27 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
3044
3043
  word-break: break-word;
3045
3044
  box-sizing: border-box;
3046
3045
  }
3046
+ .wp-block-post-title[style*=font-weight] :where(a) {
3047
+ font-weight: inherit;
3048
+ }
3049
+ .wp-block-post-title[class*=-font-family] :where(a), .wp-block-post-title[style*=font-family] :where(a) {
3050
+ font-family: inherit;
3051
+ }
3052
+ .wp-block-post-title[class*=-font-size] :where(a), .wp-block-post-title[style*=font-size] :where(a) {
3053
+ font-size: inherit;
3054
+ }
3055
+ .wp-block-post-title[style*=line-height] :where(a) {
3056
+ line-height: inherit;
3057
+ }
3058
+ .wp-block-post-title[style*=font-style] :where(a) {
3059
+ font-style: inherit;
3060
+ }
3061
+ .wp-block-post-title[style*=letter-spacing] :where(a) {
3062
+ letter-spacing: inherit;
3063
+ }
3064
+ .wp-block-post-title[style*=text-decoration] :where(a) {
3065
+ text-decoration: inherit;
3066
+ }
3047
3067
  .wp-block-post-title a {
3048
3068
  display: inline-block;
3049
3069
  }
@@ -3471,6 +3491,27 @@ ul.wp-block-rss.is-grid li {
3471
3491
  .wp-block-site-title {
3472
3492
  box-sizing: border-box;
3473
3493
  }
3494
+ .wp-block-site-title[style*=font-weight] :where(a) {
3495
+ font-weight: inherit;
3496
+ }
3497
+ .wp-block-site-title[class*=-font-family] :where(a), .wp-block-site-title[style*=font-family] :where(a) {
3498
+ font-family: inherit;
3499
+ }
3500
+ .wp-block-site-title[class*=-font-size] :where(a), .wp-block-site-title[style*=font-size] :where(a) {
3501
+ font-size: inherit;
3502
+ }
3503
+ .wp-block-site-title[style*=line-height] :where(a) {
3504
+ line-height: inherit;
3505
+ }
3506
+ .wp-block-site-title[style*=font-style] :where(a) {
3507
+ font-style: inherit;
3508
+ }
3509
+ .wp-block-site-title[style*=letter-spacing] :where(a) {
3510
+ letter-spacing: inherit;
3511
+ }
3512
+ .wp-block-site-title[style*=text-decoration] :where(a) {
3513
+ text-decoration: inherit;
3514
+ }
3474
3515
  .wp-block-site-title :where(a) {
3475
3516
  color: inherit;
3476
3517
  }
@@ -4163,8 +4204,8 @@ a[data-fn].fn::after {
4163
4204
  }
4164
4205
 
4165
4206
  :root {
4166
- /* stylelint-disable function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4167
- /* stylelint-enable function-comma-space-after */
4207
+ /* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4208
+ /* stylelint-enable @stylistic/function-comma-space-after */
4168
4209
  --wp--preset--font-size--normal: 16px;
4169
4210
  --wp--preset--font-size--huge: 42px;
4170
4211
  }