@wordpress/block-library 9.6.0 → 9.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/audio/edit.js +2 -1
  3. package/build/audio/edit.js.map +1 -1
  4. package/build/block/edit.js +3 -5
  5. package/build/block/edit.js.map +1 -1
  6. package/build/button/edit.js +1 -1
  7. package/build/button/edit.js.map +1 -1
  8. package/build/categories/index.js +1 -0
  9. package/build/categories/index.js.map +1 -1
  10. package/build/comment-edit-link/index.js +13 -2
  11. package/build/comment-edit-link/index.js.map +1 -1
  12. package/build/comment-reply-link/index.js +13 -2
  13. package/build/comment-reply-link/index.js.map +1 -1
  14. package/build/comments/edit/comments-legacy.js +4 -1
  15. package/build/comments/edit/comments-legacy.js.map +1 -1
  16. package/build/cover/edit/block-controls.js +4 -2
  17. package/build/cover/edit/block-controls.js.map +1 -1
  18. package/build/cover/edit/index.js +2 -1
  19. package/build/cover/edit/index.js.map +1 -1
  20. package/build/cover/edit/inspector-controls.js +4 -12
  21. package/build/cover/edit/inspector-controls.js.map +1 -1
  22. package/build/details/index.js +3 -1
  23. package/build/details/index.js.map +1 -1
  24. package/build/details/transforms.js +24 -0
  25. package/build/details/transforms.js.map +1 -0
  26. package/build/embed/embed-placeholder.js +8 -2
  27. package/build/embed/embed-placeholder.js.map +1 -1
  28. package/build/file/edit.js +12 -1
  29. package/build/file/edit.js.map +1 -1
  30. package/build/freeform/edit.js +4 -4
  31. package/build/freeform/edit.js.map +1 -1
  32. package/build/freeform/modal.js +12 -3
  33. package/build/freeform/modal.js.map +1 -1
  34. package/build/home-link/edit.js +3 -9
  35. package/build/home-link/edit.js.map +1 -1
  36. package/build/image/edit.js +44 -34
  37. package/build/image/edit.js.map +1 -1
  38. package/build/image/image.js +22 -10
  39. package/build/image/image.js.map +1 -1
  40. package/build/media-text/deprecated.js +144 -3
  41. package/build/media-text/deprecated.js.map +1 -1
  42. package/build/media-text/edit.js +5 -5
  43. package/build/media-text/edit.js.map +1 -1
  44. package/build/media-text/image-fill.js +12 -0
  45. package/build/media-text/image-fill.js.map +1 -0
  46. package/build/media-text/media-container.js +21 -18
  47. package/build/media-text/media-container.js.map +1 -1
  48. package/build/media-text/media-container.native.js +0 -7
  49. package/build/media-text/media-container.native.js.map +1 -1
  50. package/build/media-text/save.js +5 -6
  51. package/build/media-text/save.js.map +1 -1
  52. package/build/missing/edit.js +6 -3
  53. package/build/missing/edit.js.map +1 -1
  54. package/build/navigation/edit/deleted-navigation-warning.js +4 -1
  55. package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
  56. package/build/navigation/edit/index.js +4 -1
  57. package/build/navigation/edit/index.js.map +1 -1
  58. package/build/navigation/edit/navigation-menu-delete-control.js +4 -1
  59. package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  60. package/build/navigation/edit/placeholder/index.js +4 -1
  61. package/build/navigation/edit/placeholder/index.js.map +1 -1
  62. package/build/navigation/edit/responsive-wrapper.js +8 -2
  63. package/build/navigation/edit/responsive-wrapper.js.map +1 -1
  64. package/build/navigation/edit/unsaved-inner-blocks.js +4 -4
  65. package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  66. package/build/navigation-link/link-ui.js +5 -2
  67. package/build/navigation-link/link-ui.js.map +1 -1
  68. package/build/page-list/convert-to-links-modal.js +8 -2
  69. package/build/page-list/convert-to-links-modal.js.map +1 -1
  70. package/build/page-list/edit.js +7 -2
  71. package/build/page-list/edit.js.map +1 -1
  72. package/build/post-comments-form/form.js +4 -1
  73. package/build/post-comments-form/form.js.map +1 -1
  74. package/build/post-featured-image/dimension-controls.js +6 -8
  75. package/build/post-featured-image/dimension-controls.js.map +1 -1
  76. package/build/post-featured-image/edit.js +5 -5
  77. package/build/post-featured-image/edit.js.map +1 -1
  78. package/build/query/edit/enhanced-pagination-modal.js +4 -1
  79. package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
  80. package/build/query/edit/query-placeholder.js +8 -2
  81. package/build/query/edit/query-placeholder.js.map +1 -1
  82. package/build/site-logo/edit.js +15 -15
  83. package/build/site-logo/edit.js.map +1 -1
  84. package/build/social-link/edit.js +4 -1
  85. package/build/social-link/edit.js.map +1 -1
  86. package/build/social-links/edit.js +10 -9
  87. package/build/social-links/edit.js.map +1 -1
  88. package/build/template-part/edit/advanced-controls.js.map +1 -1
  89. package/build/template-part/edit/index.js +1 -1
  90. package/build/template-part/edit/index.js.map +1 -1
  91. package/build/template-part/edit/placeholder.js +8 -2
  92. package/build/template-part/edit/placeholder.js.map +1 -1
  93. package/build/utils/hooks.js +10 -10
  94. package/build/utils/hooks.js.map +1 -1
  95. package/build/video/edit.js +22 -14
  96. package/build/video/edit.js.map +1 -1
  97. package/build/video/tracks-editor.js +12 -3
  98. package/build/video/tracks-editor.js.map +1 -1
  99. package/build-module/audio/edit.js +2 -1
  100. package/build-module/audio/edit.js.map +1 -1
  101. package/build-module/block/edit.js +4 -6
  102. package/build-module/block/edit.js.map +1 -1
  103. package/build-module/button/edit.js +1 -1
  104. package/build-module/button/edit.js.map +1 -1
  105. package/build-module/categories/index.js +1 -0
  106. package/build-module/categories/index.js.map +1 -1
  107. package/build-module/comment-edit-link/index.js +13 -2
  108. package/build-module/comment-edit-link/index.js.map +1 -1
  109. package/build-module/comment-reply-link/index.js +13 -2
  110. package/build-module/comment-reply-link/index.js.map +1 -1
  111. package/build-module/comments/edit/comments-legacy.js +4 -1
  112. package/build-module/comments/edit/comments-legacy.js.map +1 -1
  113. package/build-module/cover/edit/block-controls.js +4 -2
  114. package/build-module/cover/edit/block-controls.js.map +1 -1
  115. package/build-module/cover/edit/index.js +2 -1
  116. package/build-module/cover/edit/index.js.map +1 -1
  117. package/build-module/cover/edit/inspector-controls.js +5 -13
  118. package/build-module/cover/edit/inspector-controls.js.map +1 -1
  119. package/build-module/details/index.js +3 -1
  120. package/build-module/details/index.js.map +1 -1
  121. package/build-module/details/transforms.js +18 -0
  122. package/build-module/details/transforms.js.map +1 -0
  123. package/build-module/embed/embed-placeholder.js +8 -2
  124. package/build-module/embed/embed-placeholder.js.map +1 -1
  125. package/build-module/file/edit.js +12 -1
  126. package/build-module/file/edit.js.map +1 -1
  127. package/build-module/freeform/edit.js +4 -4
  128. package/build-module/freeform/edit.js.map +1 -1
  129. package/build-module/freeform/modal.js +12 -3
  130. package/build-module/freeform/modal.js.map +1 -1
  131. package/build-module/home-link/edit.js +3 -9
  132. package/build-module/home-link/edit.js.map +1 -1
  133. package/build-module/image/edit.js +45 -34
  134. package/build-module/image/edit.js.map +1 -1
  135. package/build-module/image/image.js +23 -11
  136. package/build-module/image/image.js.map +1 -1
  137. package/build-module/media-text/deprecated.js +144 -3
  138. package/build-module/media-text/deprecated.js.map +1 -1
  139. package/build-module/media-text/edit.js +5 -5
  140. package/build-module/media-text/edit.js.map +1 -1
  141. package/build-module/media-text/image-fill.js +6 -0
  142. package/build-module/media-text/image-fill.js.map +1 -0
  143. package/build-module/media-text/media-container.js +21 -17
  144. package/build-module/media-text/media-container.js.map +1 -1
  145. package/build-module/media-text/media-container.native.js +0 -1
  146. package/build-module/media-text/media-container.native.js.map +1 -1
  147. package/build-module/media-text/save.js +5 -6
  148. package/build-module/media-text/save.js.map +1 -1
  149. package/build-module/missing/edit.js +6 -3
  150. package/build-module/missing/edit.js.map +1 -1
  151. package/build-module/navigation/edit/deleted-navigation-warning.js +4 -1
  152. package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
  153. package/build-module/navigation/edit/index.js +4 -1
  154. package/build-module/navigation/edit/index.js.map +1 -1
  155. package/build-module/navigation/edit/navigation-menu-delete-control.js +4 -1
  156. package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  157. package/build-module/navigation/edit/placeholder/index.js +4 -1
  158. package/build-module/navigation/edit/placeholder/index.js.map +1 -1
  159. package/build-module/navigation/edit/responsive-wrapper.js +8 -2
  160. package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
  161. package/build-module/navigation/edit/unsaved-inner-blocks.js +4 -4
  162. package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  163. package/build-module/navigation-link/link-ui.js +7 -4
  164. package/build-module/navigation-link/link-ui.js.map +1 -1
  165. package/build-module/page-list/convert-to-links-modal.js +8 -2
  166. package/build-module/page-list/convert-to-links-modal.js.map +1 -1
  167. package/build-module/page-list/edit.js +7 -2
  168. package/build-module/page-list/edit.js.map +1 -1
  169. package/build-module/post-comments-form/form.js +4 -1
  170. package/build-module/post-comments-form/form.js.map +1 -1
  171. package/build-module/post-featured-image/dimension-controls.js +6 -8
  172. package/build-module/post-featured-image/dimension-controls.js.map +1 -1
  173. package/build-module/post-featured-image/edit.js +6 -6
  174. package/build-module/post-featured-image/edit.js.map +1 -1
  175. package/build-module/query/edit/enhanced-pagination-modal.js +4 -1
  176. package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
  177. package/build-module/query/edit/query-placeholder.js +8 -2
  178. package/build-module/query/edit/query-placeholder.js.map +1 -1
  179. package/build-module/site-logo/edit.js +16 -16
  180. package/build-module/site-logo/edit.js.map +1 -1
  181. package/build-module/social-link/edit.js +4 -1
  182. package/build-module/social-link/edit.js.map +1 -1
  183. package/build-module/social-links/edit.js +11 -10
  184. package/build-module/social-links/edit.js.map +1 -1
  185. package/build-module/template-part/edit/advanced-controls.js.map +1 -1
  186. package/build-module/template-part/edit/index.js +1 -1
  187. package/build-module/template-part/edit/index.js.map +1 -1
  188. package/build-module/template-part/edit/placeholder.js +8 -2
  189. package/build-module/template-part/edit/placeholder.js.map +1 -1
  190. package/build-module/utils/hooks.js +10 -10
  191. package/build-module/utils/hooks.js.map +1 -1
  192. package/build-module/video/edit.js +22 -15
  193. package/build-module/video/edit.js.map +1 -1
  194. package/build-module/video/tracks-editor.js +12 -3
  195. package/build-module/video/tracks-editor.js.map +1 -1
  196. package/build-style/button/editor-rtl.css +0 -4
  197. package/build-style/button/editor.css +0 -4
  198. package/build-style/buttons/editor-rtl.css +0 -3
  199. package/build-style/buttons/editor.css +0 -3
  200. package/build-style/comment-edit-link/style-rtl.css +94 -0
  201. package/build-style/comment-edit-link/style.css +94 -0
  202. package/build-style/comment-reply-link/style-rtl.css +94 -0
  203. package/build-style/comment-reply-link/style.css +94 -0
  204. package/build-style/comments-pagination/editor-rtl.css +2 -2
  205. package/build-style/comments-pagination/editor.css +2 -2
  206. package/build-style/cover/editor-rtl.css +0 -6
  207. package/build-style/cover/editor.css +0 -6
  208. package/build-style/editor-rtl.css +24 -68
  209. package/build-style/editor.css +24 -70
  210. package/build-style/group/editor-rtl.css +0 -1
  211. package/build-style/group/editor.css +0 -1
  212. package/build-style/image/editor-rtl.css +0 -1
  213. package/build-style/image/editor.css +0 -1
  214. package/build-style/media-text/editor-rtl.css +3 -1
  215. package/build-style/media-text/editor.css +3 -1
  216. package/build-style/media-text/style-rtl.css +20 -0
  217. package/build-style/media-text/style.css +20 -0
  218. package/build-style/navigation/editor-rtl.css +0 -1
  219. package/build-style/navigation/editor.css +0 -1
  220. package/build-style/post-featured-image/style-rtl.css +1 -1
  221. package/build-style/post-featured-image/style.css +1 -1
  222. package/build-style/query-pagination/editor-rtl.css +2 -16
  223. package/build-style/query-pagination/editor.css +2 -18
  224. package/build-style/query-pagination/style-rtl.css +0 -11
  225. package/build-style/query-pagination/style.css +0 -13
  226. package/build-style/site-title/editor-rtl.css +0 -4
  227. package/build-style/site-title/editor.css +0 -4
  228. package/build-style/social-links/editor-rtl.css +17 -0
  229. package/build-style/social-links/editor.css +17 -0
  230. package/build-style/style-rtl.css +29 -12
  231. package/build-style/style.css +29 -14
  232. package/build-style/video/editor-rtl.css +0 -29
  233. package/build-style/video/editor.css +0 -29
  234. package/package.json +35 -35
  235. package/src/audio/edit.js +1 -0
  236. package/src/block/edit.js +6 -4
  237. package/src/button/edit.js +1 -1
  238. package/src/button/editor.scss +0 -5
  239. package/src/buttons/editor.scss +0 -6
  240. package/src/categories/block.json +1 -0
  241. package/src/categories/index.php +13 -2
  242. package/src/comment-date/index.php +1 -1
  243. package/src/comment-edit-link/block.json +13 -2
  244. package/src/comment-edit-link/style.scss +4 -0
  245. package/src/comment-reply-link/block.json +13 -2
  246. package/src/comment-reply-link/style.scss +4 -0
  247. package/src/comments/edit/comments-legacy.js +2 -0
  248. package/src/comments-pagination/editor.scss +1 -1
  249. package/src/cover/edit/block-controls.js +2 -0
  250. package/src/cover/edit/index.js +1 -0
  251. package/src/cover/edit/inspector-controls.js +3 -15
  252. package/src/cover/editor.scss +0 -5
  253. package/src/cover/test/edit.js +30 -26
  254. package/src/details/index.js +2 -0
  255. package/src/details/transforms.js +26 -0
  256. package/src/embed/embed-placeholder.js +12 -2
  257. package/src/file/edit.js +11 -0
  258. package/src/form/index.php +2 -2
  259. package/src/freeform/edit.js +4 -4
  260. package/src/freeform/editor.scss +1 -1
  261. package/src/freeform/modal.js +10 -1
  262. package/src/gallery/editor.scss +1 -1
  263. package/src/group/editor.scss +0 -1
  264. package/src/home-link/edit.js +4 -7
  265. package/src/image/edit.js +42 -30
  266. package/src/image/editor.scss +0 -3
  267. package/src/image/image.js +75 -53
  268. package/src/media-text/deprecated.js +159 -3
  269. package/src/media-text/edit.js +5 -5
  270. package/src/media-text/editor.scss +3 -1
  271. package/src/media-text/image-fill.js +11 -0
  272. package/src/media-text/index.php +53 -43
  273. package/src/media-text/media-container.js +25 -25
  274. package/src/media-text/media-container.native.js +0 -2
  275. package/src/media-text/save.js +9 -13
  276. package/src/media-text/style.scss +21 -0
  277. package/src/media-text/test/image-fill.js +19 -0
  278. package/src/missing/edit.js +9 -3
  279. package/src/navigation/edit/deleted-navigation-warning.js +8 -1
  280. package/src/navigation/edit/index.js +2 -0
  281. package/src/navigation/edit/navigation-menu-delete-control.js +2 -0
  282. package/src/navigation/edit/placeholder/index.js +2 -0
  283. package/src/navigation/edit/responsive-wrapper.js +4 -0
  284. package/src/navigation/edit/unsaved-inner-blocks.js +4 -4
  285. package/src/navigation/editor.scss +6 -3
  286. package/src/navigation-link/link-ui.js +5 -3
  287. package/src/page-list/convert-to-links-modal.js +8 -1
  288. package/src/page-list/edit.js +7 -1
  289. package/src/page-list/index.php +3 -1
  290. package/src/post-comments-form/form.js +2 -0
  291. package/src/post-date/index.php +3 -3
  292. package/src/post-featured-image/dimension-controls.js +4 -4
  293. package/src/post-featured-image/edit.js +4 -6
  294. package/src/post-featured-image/style.scss +1 -1
  295. package/src/query/edit/enhanced-pagination-modal.js +6 -1
  296. package/src/query/edit/query-placeholder.js +4 -0
  297. package/src/query-pagination/editor.scss +1 -21
  298. package/src/query-pagination/style.scss +0 -15
  299. package/src/site-logo/edit.js +13 -20
  300. package/src/site-title/editor.scss +0 -4
  301. package/src/social-link/edit.js +2 -0
  302. package/src/social-links/edit.js +17 -10
  303. package/src/social-links/editor.scss +24 -5
  304. package/src/style.scss +2 -0
  305. package/src/tag-cloud/index.php +7 -2
  306. package/src/template-part/edit/advanced-controls.js +0 -1
  307. package/src/template-part/edit/index.js +12 -10
  308. package/src/template-part/edit/placeholder.js +8 -1
  309. package/src/utils/hooks.js +11 -11
  310. package/src/video/edit.js +26 -21
  311. package/src/video/editor.scss +0 -45
  312. package/src/video/tracks-editor.js +6 -0
  313. package/src/media-text/test/media-container.js +0 -24
@@ -0,0 +1,94 @@
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
+ * Radius scale.
38
+ */
39
+ /**
40
+ * Elevation scale.
41
+ */
42
+ /**
43
+ * Dimensions.
44
+ */
45
+ /**
46
+ * Editor widths.
47
+ */
48
+ /**
49
+ * Block & Editor UI.
50
+ */
51
+ /**
52
+ * Block paddings.
53
+ */
54
+ /**
55
+ * React Native specific.
56
+ * These variables do not appear to be used anywhere else.
57
+ */
58
+ /**
59
+ * Converts a hex value into the rgb equivalent.
60
+ *
61
+ * @param {string} hex - the hexadecimal value to convert
62
+ * @return {string} comma separated rgb values
63
+ */
64
+ /**
65
+ * Long content fade mixin
66
+ *
67
+ * Creates a fading overlay to signify that the content is longer
68
+ * than the space allows.
69
+ */
70
+ /**
71
+ * Breakpoint mixins
72
+ */
73
+ /**
74
+ * Focus styles.
75
+ */
76
+ /**
77
+ * Applies editor left position to the selector passed as argument
78
+ */
79
+ /**
80
+ * Styles that are reused verbatim in a few places
81
+ */
82
+ /**
83
+ * Allows users to opt-out of animations via OS-level preferences.
84
+ */
85
+ /**
86
+ * Reset default styles for JavaScript UI based pages.
87
+ * This is a WP-admin agnostic reset
88
+ */
89
+ /**
90
+ * Reset the WP Admin page styles for Gutenberg-like pages.
91
+ */
92
+ .wp-block-comment-edit-link {
93
+ box-sizing: border-box;
94
+ }
@@ -0,0 +1,94 @@
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
+ * Radius scale.
38
+ */
39
+ /**
40
+ * Elevation scale.
41
+ */
42
+ /**
43
+ * Dimensions.
44
+ */
45
+ /**
46
+ * Editor widths.
47
+ */
48
+ /**
49
+ * Block & Editor UI.
50
+ */
51
+ /**
52
+ * Block paddings.
53
+ */
54
+ /**
55
+ * React Native specific.
56
+ * These variables do not appear to be used anywhere else.
57
+ */
58
+ /**
59
+ * Converts a hex value into the rgb equivalent.
60
+ *
61
+ * @param {string} hex - the hexadecimal value to convert
62
+ * @return {string} comma separated rgb values
63
+ */
64
+ /**
65
+ * Long content fade mixin
66
+ *
67
+ * Creates a fading overlay to signify that the content is longer
68
+ * than the space allows.
69
+ */
70
+ /**
71
+ * Breakpoint mixins
72
+ */
73
+ /**
74
+ * Focus styles.
75
+ */
76
+ /**
77
+ * Applies editor left position to the selector passed as argument
78
+ */
79
+ /**
80
+ * Styles that are reused verbatim in a few places
81
+ */
82
+ /**
83
+ * Allows users to opt-out of animations via OS-level preferences.
84
+ */
85
+ /**
86
+ * Reset default styles for JavaScript UI based pages.
87
+ * This is a WP-admin agnostic reset
88
+ */
89
+ /**
90
+ * Reset the WP Admin page styles for Gutenberg-like pages.
91
+ */
92
+ .wp-block-comment-reply-link {
93
+ box-sizing: border-box;
94
+ }
@@ -0,0 +1,94 @@
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
+ * Radius scale.
38
+ */
39
+ /**
40
+ * Elevation scale.
41
+ */
42
+ /**
43
+ * Dimensions.
44
+ */
45
+ /**
46
+ * Editor widths.
47
+ */
48
+ /**
49
+ * Block & Editor UI.
50
+ */
51
+ /**
52
+ * Block paddings.
53
+ */
54
+ /**
55
+ * React Native specific.
56
+ * These variables do not appear to be used anywhere else.
57
+ */
58
+ /**
59
+ * Converts a hex value into the rgb equivalent.
60
+ *
61
+ * @param {string} hex - the hexadecimal value to convert
62
+ * @return {string} comma separated rgb values
63
+ */
64
+ /**
65
+ * Long content fade mixin
66
+ *
67
+ * Creates a fading overlay to signify that the content is longer
68
+ * than the space allows.
69
+ */
70
+ /**
71
+ * Breakpoint mixins
72
+ */
73
+ /**
74
+ * Focus styles.
75
+ */
76
+ /**
77
+ * Applies editor left position to the selector passed as argument
78
+ */
79
+ /**
80
+ * Styles that are reused verbatim in a few places
81
+ */
82
+ /**
83
+ * Allows users to opt-out of animations via OS-level preferences.
84
+ */
85
+ /**
86
+ * Reset default styles for JavaScript UI based pages.
87
+ * This is a WP-admin agnostic reset
88
+ */
89
+ /**
90
+ * Reset the WP Admin page styles for Gutenberg-like pages.
91
+ */
92
+ .wp-block-comment-reply-link {
93
+ box-sizing: border-box;
94
+ }
@@ -93,10 +93,10 @@
93
93
  justify-content: center;
94
94
  }
95
95
 
96
- .editor-styles-wrapper .wp-block-comments-pagination {
96
+ :where(.editor-styles-wrapper) .wp-block-comments-pagination {
97
97
  max-width: 100%;
98
98
  }
99
- .editor-styles-wrapper .wp-block-comments-pagination.block-editor-block-list__layout {
99
+ :where(.editor-styles-wrapper) .wp-block-comments-pagination.block-editor-block-list__layout {
100
100
  margin: 0;
101
101
  }
102
102
 
@@ -93,10 +93,10 @@
93
93
  justify-content: center;
94
94
  }
95
95
 
96
- .editor-styles-wrapper .wp-block-comments-pagination {
96
+ :where(.editor-styles-wrapper) .wp-block-comments-pagination {
97
97
  max-width: 100%;
98
98
  }
99
- .editor-styles-wrapper .wp-block-comments-pagination.block-editor-block-list__layout {
99
+ :where(.editor-styles-wrapper) .wp-block-comments-pagination.block-editor-block-list__layout {
100
100
  margin: 0;
101
101
  }
102
102
 
@@ -89,12 +89,6 @@
89
89
  /**
90
90
  * Reset the WP Admin page styles for Gutenberg-like pages.
91
91
  */
92
- .wp-block-cover {
93
- /* Extra specificity needed because the reset.css applied in the editor context is overriding this rule. */
94
- }
95
- .editor-styles-wrapper .wp-block-cover {
96
- box-sizing: border-box;
97
- }
98
92
  .wp-block-cover.is-placeholder {
99
93
  padding: 0 !important;
100
94
  display: flex;
@@ -89,12 +89,6 @@
89
89
  /**
90
90
  * Reset the WP Admin page styles for Gutenberg-like pages.
91
91
  */
92
- .wp-block-cover {
93
- /* Extra specificity needed because the reset.css applied in the editor context is overriding this rule. */
94
- }
95
- .editor-styles-wrapper .wp-block-cover {
96
- box-sizing: border-box;
97
- }
98
92
  .wp-block-cover.is-placeholder {
99
93
  padding: 0 !important;
100
94
  display: flex;
@@ -144,10 +144,6 @@ div[data-type="core/button"] {
144
144
  display: table;
145
145
  }
146
146
 
147
- .editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link {
148
- text-decoration: inherit;
149
- }
150
-
151
147
  .wp-block-buttons {
152
148
  /* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
153
149
  }
@@ -183,9 +179,6 @@ div[data-type="core/button"] {
183
179
  .is-content-justification-center) .wp-block[data-align=center] .wp-block-button {
184
180
  margin-bottom: 0;
185
181
  }
186
- .editor-styles-wrapper .wp-block-buttons.has-custom-font-size .wp-block-button__link {
187
- font-size: inherit;
188
- }
189
182
 
190
183
  .wp-block[data-align=center] > .wp-block-buttons {
191
184
  align-items: center;
@@ -366,10 +359,10 @@ html :where(.wp-block-column) {
366
359
  justify-content: center;
367
360
  }
368
361
 
369
- .editor-styles-wrapper .wp-block-comments-pagination {
362
+ :where(.editor-styles-wrapper) .wp-block-comments-pagination {
370
363
  max-width: 100%;
371
364
  }
372
- .editor-styles-wrapper .wp-block-comments-pagination.block-editor-block-list__layout {
365
+ :where(.editor-styles-wrapper) .wp-block-comments-pagination.block-editor-block-list__layout {
373
366
  margin: 0;
374
367
  }
375
368
 
@@ -401,12 +394,6 @@ html :where(.wp-block-column) {
401
394
  padding: inherit;
402
395
  }
403
396
 
404
- .wp-block-cover {
405
- /* Extra specificity needed because the reset.css applied in the editor context is overriding this rule. */
406
- }
407
- .editor-styles-wrapper .wp-block-cover {
408
- box-sizing: border-box;
409
- }
410
397
  .wp-block-cover.is-placeholder {
411
398
  padding: 0 !important;
412
399
  display: flex;
@@ -1181,7 +1168,6 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
1181
1168
  pointer-events: none;
1182
1169
  min-height: 46px;
1183
1170
  border: 1px dashed currentColor;
1184
- border-radius: 2px;
1185
1171
  }
1186
1172
  .wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-inserter,
1187
1173
  .wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-button-block-appender {
@@ -1225,7 +1211,6 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
1225
1211
  box-shadow: inset 0 0 0 1px #1e1e1e;
1226
1212
  border: none;
1227
1213
  filter: none !important;
1228
- border-radius: 2px;
1229
1214
  }
1230
1215
  .wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder > svg {
1231
1216
  opacity: 0;
@@ -1421,7 +1406,9 @@ figure.wp-block-image:not(.wp-block) {
1421
1406
  }
1422
1407
 
1423
1408
  .wp-block-media-text.is-image-fill .editor-media-container__resizer,
1424
- .wp-block-media-text.is-image-fill .components-placeholder.has-illustration {
1409
+ .wp-block-media-text.is-image-fill .components-placeholder.has-illustration,
1410
+ .wp-block-media-text.is-image-fill-element .editor-media-container__resizer,
1411
+ .wp-block-media-text.is-image-fill-element .components-placeholder.has-illustration {
1425
1412
  height: 100% !important;
1426
1413
  }
1427
1414
 
@@ -1542,7 +1529,6 @@ figure.wp-block-image:not(.wp-block) {
1542
1529
  background: #1e1e1e;
1543
1530
  padding: 0;
1544
1531
  width: 24px;
1545
- border-radius: 2px;
1546
1532
  margin-left: 0;
1547
1533
  margin-right: auto;
1548
1534
  }
@@ -2408,10 +2394,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2408
2394
  border: 1px dashed;
2409
2395
  }
2410
2396
 
2411
- .editor-styles-wrapper :where(.wp-block-site-title a) {
2412
- color: inherit;
2413
- }
2414
-
2415
2397
  .wp-block-social-links .wp-social-link {
2416
2398
  line-height: 0;
2417
2399
  }
@@ -2531,6 +2513,23 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2531
2513
  opacity: 1;
2532
2514
  }
2533
2515
 
2516
+ .wp-block-social-links .block-list-appender {
2517
+ position: static;
2518
+ }
2519
+ .wp-block-social-links .block-list-appender .block-editor-button-block-appender.components-button.components-button {
2520
+ padding: 6px;
2521
+ }
2522
+
2523
+ .wp-block-social-links.has-small-icon-size .block-editor-button-block-appender.components-button.components-button {
2524
+ padding: 0;
2525
+ }
2526
+ .wp-block-social-links.has-large-icon-size .block-editor-button-block-appender.components-button.components-button {
2527
+ padding: 14px;
2528
+ }
2529
+ .wp-block-social-links.has-huge-icon-size .block-editor-button-block-appender.components-button.components-button {
2530
+ padding: 23px;
2531
+ }
2532
+
2534
2533
  .block-editor-block-list__block[data-type="core/spacer"]::before {
2535
2534
  content: "";
2536
2535
  display: block;
@@ -2677,28 +2676,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2677
2676
  outline: 1px solid #ddd;
2678
2677
  }
2679
2678
 
2680
- .wp-block-video.wp-block-video.is-selected .components-placeholder {
2681
- color: #1e1e1e;
2682
- background-color: #fff;
2683
- box-shadow: inset 0 0 0 1px #1e1e1e;
2684
- border: none;
2685
- border-radius: 2px;
2686
- }
2687
- .wp-block-video.wp-block-video.is-selected .components-placeholder > svg {
2688
- opacity: 0;
2689
- }
2690
- .wp-block-video.wp-block-video.is-selected .components-placeholder .components-placeholder__illustration {
2691
- display: none;
2692
- }
2693
- .wp-block-video.wp-block-video.is-selected .components-placeholder::before {
2694
- opacity: 0;
2695
- }
2696
- .wp-block-video.wp-block-video .components-placeholder__label,
2697
- .wp-block-video.wp-block-video .components-placeholder__instructions,
2698
- .wp-block-video.wp-block-video .components-button {
2699
- transition: none;
2700
- }
2701
-
2702
2679
  .wp-block[data-align=center] > .wp-block-video {
2703
2680
  text-align: center;
2704
2681
  }
@@ -2744,7 +2721,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2744
2721
 
2745
2722
  .block-library-video-tracks-editor > .components-popover__content {
2746
2723
  width: 360px;
2747
- padding: 0;
2748
2724
  }
2749
2725
 
2750
2726
  .block-library-video-tracks-editor__track-list .components-menu-group__label,
@@ -2752,12 +2728,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2752
2728
  padding: 0;
2753
2729
  }
2754
2730
 
2755
- .block-library-video-tracks-editor__single-track-editor,
2756
- .block-library-video-tracks-editor__track-list,
2757
- .block-library-video-tracks-editor__add-tracks-container {
2758
- padding: 12px;
2759
- }
2760
-
2761
2731
  .editor-styles-wrapper ul.wp-block-post-template {
2762
2732
  padding-right: 0;
2763
2733
  margin-right: 0;
@@ -2823,27 +2793,13 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2823
2793
  justify-content: center;
2824
2794
  }
2825
2795
 
2826
- .editor-styles-wrapper .wp-block-query-pagination {
2796
+ :where(.editor-styles-wrapper) .wp-block-query-pagination {
2827
2797
  max-width: 100%;
2828
2798
  }
2829
- .editor-styles-wrapper .wp-block-query-pagination.block-editor-block-list__layout {
2799
+ :where(.editor-styles-wrapper) .wp-block-query-pagination.block-editor-block-list__layout {
2830
2800
  margin: 0;
2831
2801
  }
2832
2802
 
2833
- .wp-block-query-pagination > .wp-block-query-pagination-next,
2834
- .wp-block-query-pagination > .wp-block-query-pagination-previous,
2835
- .wp-block-query-pagination > .wp-block-query-pagination-numbers {
2836
- margin-right: 0;
2837
- margin-top: 0.5em;
2838
- margin-right: 0.5em;
2839
- margin-bottom: 0.5em;
2840
- }
2841
- .wp-block-query-pagination > .wp-block-query-pagination-next:last-child,
2842
- .wp-block-query-pagination > .wp-block-query-pagination-previous:last-child,
2843
- .wp-block-query-pagination > .wp-block-query-pagination-numbers:last-child {
2844
- margin-right: 0;
2845
- }
2846
-
2847
2803
  .wp-block-query-pagination-numbers a {
2848
2804
  text-decoration: underline;
2849
2805
  }