@wordpress/block-library 6.0.7 → 6.0.11

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 (193) hide show
  1. package/build/cover/edit.js +8 -3
  2. package/build/cover/edit.js.map +1 -1
  3. package/build/cover/transforms.js +2 -0
  4. package/build/cover/transforms.js.map +1 -1
  5. package/build/gallery/edit.js +1 -1
  6. package/build/gallery/edit.js.map +1 -1
  7. package/build/gallery/v1/update-gallery-modal.js +1 -1
  8. package/build/gallery/v1/update-gallery-modal.js.map +1 -1
  9. package/build/index.js +4 -3
  10. package/build/index.js.map +1 -1
  11. package/build/navigation/deprecated.js +127 -19
  12. package/build/navigation/deprecated.js.map +1 -1
  13. package/build/navigation/edit/index.js +59 -33
  14. package/build/navigation/edit/index.js.map +1 -1
  15. package/build/navigation/edit/inner-blocks.js +1 -1
  16. package/build/navigation/edit/inner-blocks.js.map +1 -1
  17. package/build/navigation/edit/navigation-menu-selector.js +2 -2
  18. package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
  19. package/build/navigation/edit/placeholder/index.js +16 -48
  20. package/build/navigation/edit/placeholder/index.js.map +1 -1
  21. package/build/navigation/edit/responsive-wrapper.js +5 -2
  22. package/build/navigation/edit/responsive-wrapper.js.map +1 -1
  23. package/build/navigation/edit/unsaved-inner-blocks.js +4 -35
  24. package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  25. package/build/navigation/edit/use-create-navigation-menu.js +50 -0
  26. package/build/navigation/edit/use-create-navigation-menu.js.map +1 -0
  27. package/build/navigation/edit/use-generate-default-navigation-title.js +73 -0
  28. package/build/navigation/edit/use-generate-default-navigation-title.js.map +1 -0
  29. package/build/navigation/index.js +1 -1
  30. package/build/navigation/save.js +2 -2
  31. package/build/navigation/save.js.map +1 -1
  32. package/build/navigation/use-navigation-menu.js +19 -8
  33. package/build/navigation/use-navigation-menu.js.map +1 -1
  34. package/build/navigation-area/edit.js +5 -0
  35. package/build/navigation-area/edit.js.map +1 -1
  36. package/build/page-list/edit.js +40 -42
  37. package/build/page-list/edit.js.map +1 -1
  38. package/build/pattern/index.js +1 -1
  39. package/build/post-featured-image/edit.js +53 -23
  40. package/build/post-featured-image/edit.js.map +1 -1
  41. package/build/post-terms/index.js +1 -1
  42. package/build/post-title/edit.js +2 -2
  43. package/build/post-title/edit.js.map +1 -1
  44. package/build/query-pagination-next/index.js +1 -1
  45. package/build/query-pagination-previous/index.js +1 -1
  46. package/build/query-title/index.js +1 -1
  47. package/build/site-logo/index.js +1 -1
  48. package/build/site-tagline/index.js +1 -1
  49. package/build/site-title/index.js +1 -1
  50. package/build/template-part/edit/placeholder/index.js +1 -1
  51. package/build/template-part/edit/placeholder/index.js.map +1 -1
  52. package/build/template-part/index.js +2 -1
  53. package/build/template-part/index.js.map +1 -1
  54. package/build-module/cover/edit.js +8 -3
  55. package/build-module/cover/edit.js.map +1 -1
  56. package/build-module/cover/transforms.js +2 -0
  57. package/build-module/cover/transforms.js.map +1 -1
  58. package/build-module/gallery/edit.js +1 -1
  59. package/build-module/gallery/edit.js.map +1 -1
  60. package/build-module/gallery/v1/update-gallery-modal.js +1 -1
  61. package/build-module/gallery/v1/update-gallery-modal.js.map +1 -1
  62. package/build-module/index.js +4 -3
  63. package/build-module/index.js.map +1 -1
  64. package/build-module/navigation/deprecated.js +127 -19
  65. package/build-module/navigation/deprecated.js.map +1 -1
  66. package/build-module/navigation/edit/index.js +60 -33
  67. package/build-module/navigation/edit/index.js.map +1 -1
  68. package/build-module/navigation/edit/inner-blocks.js +1 -1
  69. package/build-module/navigation/edit/inner-blocks.js.map +1 -1
  70. package/build-module/navigation/edit/navigation-menu-selector.js +2 -2
  71. package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
  72. package/build-module/navigation/edit/placeholder/index.js +15 -45
  73. package/build-module/navigation/edit/placeholder/index.js.map +1 -1
  74. package/build-module/navigation/edit/responsive-wrapper.js +5 -2
  75. package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
  76. package/build-module/navigation/edit/unsaved-inner-blocks.js +6 -35
  77. package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  78. package/build-module/navigation/edit/use-create-navigation-menu.js +36 -0
  79. package/build-module/navigation/edit/use-create-navigation-menu.js.map +1 -0
  80. package/build-module/navigation/edit/use-generate-default-navigation-title.js +57 -0
  81. package/build-module/navigation/edit/use-generate-default-navigation-title.js.map +1 -0
  82. package/build-module/navigation/index.js +1 -1
  83. package/build-module/navigation/save.js +2 -2
  84. package/build-module/navigation/save.js.map +1 -1
  85. package/build-module/navigation/use-navigation-menu.js +19 -8
  86. package/build-module/navigation/use-navigation-menu.js.map +1 -1
  87. package/build-module/navigation-area/edit.js +4 -0
  88. package/build-module/navigation-area/edit.js.map +1 -1
  89. package/build-module/page-list/edit.js +41 -43
  90. package/build-module/page-list/edit.js.map +1 -1
  91. package/build-module/pattern/index.js +1 -1
  92. package/build-module/post-featured-image/edit.js +55 -26
  93. package/build-module/post-featured-image/edit.js.map +1 -1
  94. package/build-module/post-terms/index.js +1 -1
  95. package/build-module/post-title/edit.js +2 -2
  96. package/build-module/post-title/edit.js.map +1 -1
  97. package/build-module/query-pagination-next/index.js +1 -1
  98. package/build-module/query-pagination-previous/index.js +1 -1
  99. package/build-module/query-title/index.js +1 -1
  100. package/build-module/site-logo/index.js +1 -1
  101. package/build-module/site-tagline/index.js +1 -1
  102. package/build-module/site-title/index.js +1 -1
  103. package/build-module/template-part/edit/placeholder/index.js +2 -2
  104. package/build-module/template-part/edit/placeholder/index.js.map +1 -1
  105. package/build-module/template-part/index.js +2 -1
  106. package/build-module/template-part/index.js.map +1 -1
  107. package/build-style/code/theme-rtl.css +1 -1
  108. package/build-style/code/theme.css +1 -1
  109. package/build-style/cover/style-rtl.css +8 -2
  110. package/build-style/cover/style.css +8 -2
  111. package/build-style/editor-rtl.css +104 -53
  112. package/build-style/editor.css +104 -53
  113. package/build-style/gallery/editor-rtl.css +1 -0
  114. package/build-style/gallery/editor.css +1 -0
  115. package/build-style/navigation/style-rtl.css +41 -3
  116. package/build-style/navigation/style.css +41 -3
  117. package/build-style/post-comments-form/style-rtl.css +18 -0
  118. package/build-style/post-comments-form/style.css +18 -0
  119. package/build-style/post-featured-image/editor-rtl.css +100 -16
  120. package/build-style/post-featured-image/editor.css +100 -16
  121. package/build-style/site-logo/editor-rtl.css +2 -2
  122. package/build-style/site-logo/editor.css +2 -2
  123. package/build-style/social-links/editor-rtl.css +1 -35
  124. package/build-style/social-links/editor.css +1 -35
  125. package/build-style/style-rtl.css +67 -27
  126. package/build-style/style.css +67 -27
  127. package/build-style/theme-rtl.css +1 -1
  128. package/build-style/theme.css +1 -1
  129. package/package.json +8 -8
  130. package/src/calendar/index.php +3 -3
  131. package/src/code/theme.scss +1 -1
  132. package/src/cover/edit.js +8 -1
  133. package/src/cover/style.scss +9 -2
  134. package/src/cover/transforms.js +2 -0
  135. package/src/gallery/edit.js +1 -1
  136. package/src/gallery/editor.scss +1 -0
  137. package/src/gallery/index.php +1 -1
  138. package/src/gallery/v1/update-gallery-modal.js +1 -1
  139. package/src/home-link/index.php +1 -1
  140. package/src/image/index.php +1 -1
  141. package/src/index.js +28 -26
  142. package/src/navigation/block.json +1 -1
  143. package/src/navigation/deprecated.js +115 -13
  144. package/src/navigation/edit/index.js +68 -36
  145. package/src/navigation/edit/inner-blocks.js +2 -1
  146. package/src/navigation/edit/navigation-menu-selector.js +2 -2
  147. package/src/navigation/edit/placeholder/index.js +16 -62
  148. package/src/navigation/edit/responsive-wrapper.js +8 -1
  149. package/src/navigation/edit/unsaved-inner-blocks.js +6 -57
  150. package/src/navigation/edit/use-create-navigation-menu.js +39 -0
  151. package/src/navigation/edit/use-generate-default-navigation-title.js +79 -0
  152. package/src/navigation/index.php +171 -25
  153. package/src/navigation/save.js +2 -2
  154. package/src/navigation/style.scss +57 -5
  155. package/src/navigation/use-navigation-menu.js +20 -9
  156. package/src/navigation-area/edit.js +5 -0
  157. package/src/navigation-area/index.php +2 -1
  158. package/src/navigation-link/index.php +1 -1
  159. package/src/navigation-submenu/index.php +2 -8
  160. package/src/page-list/edit.js +35 -44
  161. package/src/page-list/index.php +10 -5
  162. package/src/pattern/block.json +1 -1
  163. package/src/post-comments-form/style.scss +20 -1
  164. package/src/post-featured-image/edit.js +58 -26
  165. package/src/post-featured-image/editor.scss +124 -20
  166. package/src/post-terms/block.json +1 -1
  167. package/src/post-title/edit.js +2 -2
  168. package/src/query-pagination-next/block.json +1 -1
  169. package/src/query-pagination-previous/block.json +1 -1
  170. package/src/query-title/block.json +1 -1
  171. package/src/site-logo/block.json +1 -1
  172. package/src/site-logo/editor.scss +3 -2
  173. package/src/site-tagline/block.json +1 -1
  174. package/src/site-title/block.json +1 -1
  175. package/src/social-links/editor.scss +1 -47
  176. package/src/style.scss +0 -1
  177. package/src/table-of-contents/index.php +1 -1
  178. package/src/template-part/block.json +2 -1
  179. package/src/template-part/edit/placeholder/index.js +2 -2
  180. package/src/template-part/index.php +2 -1
  181. package/build/navigation/edit/navigation-menu-name-modal.js +0 -55
  182. package/build/navigation/edit/navigation-menu-name-modal.js.map +0 -1
  183. package/build/navigation/edit/navigation-menu-publish-button.js +0 -53
  184. package/build/navigation/edit/navigation-menu-publish-button.js.map +0 -1
  185. package/build-module/navigation/edit/navigation-menu-name-modal.js +0 -47
  186. package/build-module/navigation/edit/navigation-menu-name-modal.js.map +0 -1
  187. package/build-module/navigation/edit/navigation-menu-publish-button.js +0 -40
  188. package/build-module/navigation/edit/navigation-menu-publish-button.js.map +0 -1
  189. package/build-style/navigation-submenu/style-rtl.css +0 -97
  190. package/build-style/navigation-submenu/style.css +0 -97
  191. package/src/navigation/edit/navigation-menu-name-modal.js +0 -69
  192. package/src/navigation/edit/navigation-menu-publish-button.js +0 -57
  193. package/src/navigation-submenu/style.scss +0 -25
@@ -45,7 +45,8 @@ const metadata = {
45
45
  spacing: {
46
46
  padding: true
47
47
  },
48
- __experimentalLayout: true
48
+ __experimentalLayout: true,
49
+ reusable: false
49
50
  },
50
51
  editorStyle: "wp-block-template-part-editor"
51
52
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/block-library/src/template-part/index.js"],"names":["startCase","store","coreDataStore","select","symbolFilled","addFilter","edit","enhanceTemplatePartVariations","name","metadata","settings","icon","__experimentalLabel","slug","theme","entity","getEntityRecord","title","rendered"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,QAA1B;AAEA;AACA;AACA;;AACA,SAASC,KAAK,IAAIC,aAAlB,QAAuC,sBAAvC;AACA,SAASC,MAAT,QAAuB,iBAAvB;AACA,SAASC,YAAT,QAA6B,kBAA7B;AACA,SAASC,SAAT,QAA0B,kBAA1B;AAEA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAOC,IAAP,MAAiB,QAAjB;AACA,SAASC,6BAAT,QAA8C,cAA9C;AAEA,MAAM;AAAEC,EAAAA;AAAF,IAAWC,QAAjB;AACA,SAASA,QAAT,EAAmBD,IAAnB;AAEA,OAAO,MAAME,QAAQ,GAAG;AACvBC,EAAAA,IAAI,EAAEP,YADiB;AAEvBQ,EAAAA,mBAAmB,EAAE,QAAuB;AAAA;;AAAA,QAArB;AAAEC,MAAAA,IAAF;AAAQC,MAAAA;AAAR,KAAqB;;AAC3C;AACA;AACA,QAAK,CAAED,IAAP,EAAc;AACb;AACA;;AAED,UAAME,MAAM,GAAGZ,MAAM,CAAED,aAAF,CAAN,CAAwBc,eAAxB,CACd,UADc,EAEd,kBAFc,EAGdF,KAAK,GAAG,IAAR,GAAeD,IAHD,CAAf;;AAKA,QAAK,CAAEE,MAAP,EAAgB;AACf;AACA;;AAED,WAAOf,SAAS,CAAE,kBAAAe,MAAM,CAACE,KAAP,gEAAcC,QAAd,KAA0BH,MAAM,CAACF,IAAnC,CAAhB;AACA,GAnBsB;AAoBvBP,EAAAA;AApBuB,CAAjB,C,CAuBP;;AACAD,SAAS,CACR,0BADQ,EAER,oBAFQ,EAGRE,6BAHQ,CAAT","sourcesContent":["/**\n * External dependencies\n */\nimport { startCase } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { store as coreDataStore } from '@wordpress/core-data';\nimport { select } from '@wordpress/data';\nimport { symbolFilled } from '@wordpress/icons';\nimport { addFilter } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport metadata from './block.json';\nimport edit from './edit';\nimport { enhanceTemplatePartVariations } from './variations';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon: symbolFilled,\n\t__experimentalLabel: ( { slug, theme } ) => {\n\t\t// Attempt to find entity title if block is a template part.\n\t\t// Require slug to request, otherwise entity is uncreated and will throw 404.\n\t\tif ( ! slug ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst entity = select( coreDataStore ).getEntityRecord(\n\t\t\t'postType',\n\t\t\t'wp_template_part',\n\t\t\ttheme + '//' + slug\n\t\t);\n\t\tif ( ! entity ) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn startCase( entity.title?.rendered || entity.slug );\n\t},\n\tedit,\n};\n\n// Importing this file includes side effects. This is whitelisted in block-library/package.json under sideEffects\naddFilter(\n\t'blocks.registerBlockType',\n\t'core/template-part',\n\tenhanceTemplatePartVariations\n);\n"]}
1
+ {"version":3,"sources":["@wordpress/block-library/src/template-part/index.js"],"names":["startCase","store","coreDataStore","select","symbolFilled","addFilter","edit","enhanceTemplatePartVariations","name","metadata","settings","icon","__experimentalLabel","slug","theme","entity","getEntityRecord","title","rendered"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,QAA1B;AAEA;AACA;AACA;;AACA,SAASC,KAAK,IAAIC,aAAlB,QAAuC,sBAAvC;AACA,SAASC,MAAT,QAAuB,iBAAvB;AACA,SAASC,YAAT,QAA6B,kBAA7B;AACA,SAASC,SAAT,QAA0B,kBAA1B;AAEA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAOC,IAAP,MAAiB,QAAjB;AACA,SAASC,6BAAT,QAA8C,cAA9C;AAEA,MAAM;AAAEC,EAAAA;AAAF,IAAWC,QAAjB;AACA,SAASA,QAAT,EAAmBD,IAAnB;AAEA,OAAO,MAAME,QAAQ,GAAG;AACvBC,EAAAA,IAAI,EAAEP,YADiB;AAEvBQ,EAAAA,mBAAmB,EAAE,QAAuB;AAAA;;AAAA,QAArB;AAAEC,MAAAA,IAAF;AAAQC,MAAAA;AAAR,KAAqB;;AAC3C;AACA;AACA,QAAK,CAAED,IAAP,EAAc;AACb;AACA;;AAED,UAAME,MAAM,GAAGZ,MAAM,CAAED,aAAF,CAAN,CAAwBc,eAAxB,CACd,UADc,EAEd,kBAFc,EAGdF,KAAK,GAAG,IAAR,GAAeD,IAHD,CAAf;;AAKA,QAAK,CAAEE,MAAP,EAAgB;AACf;AACA;;AAED,WAAOf,SAAS,CAAE,kBAAAe,MAAM,CAACE,KAAP,gEAAcC,QAAd,KAA0BH,MAAM,CAACF,IAAnC,CAAhB;AACA,GAnBsB;AAoBvBP,EAAAA;AApBuB,CAAjB,C,CAuBP;;AACAD,SAAS,CACR,0BADQ,EAER,oBAFQ,EAGRE,6BAHQ,CAAT","sourcesContent":["/**\n * External dependencies\n */\nimport { startCase } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { store as coreDataStore } from '@wordpress/core-data';\nimport { select } from '@wordpress/data';\nimport { symbolFilled } from '@wordpress/icons';\nimport { addFilter } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport metadata from './block.json';\nimport edit from './edit';\nimport { enhanceTemplatePartVariations } from './variations';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon: symbolFilled,\n\t__experimentalLabel: ( { slug, theme } ) => {\n\t\t// Attempt to find entity title if block is a template part.\n\t\t// Require slug to request, otherwise entity is uncreated and will throw 404.\n\t\tif ( ! slug ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst entity = select( coreDataStore ).getEntityRecord(\n\t\t\t'postType',\n\t\t\t'wp_template_part',\n\t\t\ttheme + '//' + slug\n\t\t);\n\t\tif ( ! entity ) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn startCase( entity.title?.rendered || entity.slug );\n\t},\n\tedit,\n};\n\n// Importing this file includes side effects. This is whitelisted in block-library/package.json under sideEffects\naddFilter(\n\t'blocks.registerBlockType',\n\t'core/template-part',\n\tenhanceTemplatePartVariations\n);\n"]}
@@ -74,7 +74,7 @@
74
74
  /**
75
75
  * Reset the WP Admin page styles for Gutenberg-like pages.
76
76
  */
77
- .wp-block-code {
77
+ .wp-block-code > code {
78
78
  font-family: Menlo, Consolas, monaco, monospace;
79
79
  color: #1e1e1e;
80
80
  padding: 0.8em 1em;
@@ -74,7 +74,7 @@
74
74
  /**
75
75
  * Reset the WP Admin page styles for Gutenberg-like pages.
76
76
  */
77
- .wp-block-code {
77
+ .wp-block-code > code {
78
78
  font-family: Menlo, Consolas, monaco, monospace;
79
79
  color: #1e1e1e;
80
80
  padding: 0.8em 1em;
@@ -119,17 +119,23 @@
119
119
  background-size: auto;
120
120
  }
121
121
  .wp-block-cover-image.has-background-dim:not([class*=-background-color]),
122
- .wp-block-cover.has-background-dim:not([class*=-background-color]) {
122
+ .wp-block-cover-image .has-background-dim:not([class*=-background-color]),
123
+ .wp-block-cover.has-background-dim:not([class*=-background-color]),
124
+ .wp-block-cover .has-background-dim:not([class*=-background-color]) {
123
125
  background-color: #000;
124
126
  }
125
127
  .wp-block-cover-image.has-background-dim::before,
126
- .wp-block-cover.has-background-dim::before {
128
+ .wp-block-cover-image .has-background-dim::before,
129
+ .wp-block-cover.has-background-dim::before,
130
+ .wp-block-cover .has-background-dim::before {
127
131
  content: "";
128
132
  background-color: inherit;
129
133
  }
130
134
  .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,
135
+ .wp-block-cover-image .has-background-dim:not(.has-background-gradient)::before,
131
136
  .wp-block-cover-image .wp-block-cover__gradient-background,
132
137
  .wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
138
+ .wp-block-cover .has-background-dim:not(.has-background-gradient)::before,
133
139
  .wp-block-cover .wp-block-cover__gradient-background {
134
140
  position: absolute;
135
141
  top: 0;
@@ -119,17 +119,23 @@
119
119
  background-size: auto;
120
120
  }
121
121
  .wp-block-cover-image.has-background-dim:not([class*=-background-color]),
122
- .wp-block-cover.has-background-dim:not([class*=-background-color]) {
122
+ .wp-block-cover-image .has-background-dim:not([class*=-background-color]),
123
+ .wp-block-cover.has-background-dim:not([class*=-background-color]),
124
+ .wp-block-cover .has-background-dim:not([class*=-background-color]) {
123
125
  background-color: #000;
124
126
  }
125
127
  .wp-block-cover-image.has-background-dim::before,
126
- .wp-block-cover.has-background-dim::before {
128
+ .wp-block-cover-image .has-background-dim::before,
129
+ .wp-block-cover.has-background-dim::before,
130
+ .wp-block-cover .has-background-dim::before {
127
131
  content: "";
128
132
  background-color: inherit;
129
133
  }
130
134
  .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,
135
+ .wp-block-cover-image .has-background-dim:not(.has-background-gradient)::before,
131
136
  .wp-block-cover-image .wp-block-cover__gradient-background,
132
137
  .wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
138
+ .wp-block-cover .has-background-dim:not(.has-background-gradient)::before,
133
139
  .wp-block-cover .wp-block-cover__gradient-background {
134
140
  position: absolute;
135
141
  top: 0;
@@ -820,6 +820,7 @@ figure.wp-block-gallery .components-spinner {
820
820
  bottom: 0;
821
821
  right: 0;
822
822
  z-index: 1;
823
+ pointer-events: none;
823
824
  }
824
825
  .blocks-gallery-item figure.is-transient img {
825
826
  opacity: 0.3;
@@ -1975,7 +1976,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
1975
1976
  bottom: 0;
1976
1977
  right: 0;
1977
1978
  border: 1px dashed currentColor;
1978
- opacity: 0.3;
1979
+ opacity: 0.4;
1979
1980
  pointer-events: none;
1980
1981
  border-radius: inherit;
1981
1982
  }
@@ -2015,7 +2016,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2015
2016
  height: 100%;
2016
2017
  stroke: currentColor;
2017
2018
  stroke-dasharray: 3;
2018
- opacity: 0.3;
2019
+ opacity: 0.4;
2019
2020
  }
2020
2021
  .wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button {
2021
2022
  background: var(--wp-admin-theme-color);
@@ -2085,16 +2086,13 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2085
2086
  .wp-block-social-links__social-placeholder > .wp-block-social-links__social-placeholder-icons {
2086
2087
  display: flex;
2087
2088
  }
2088
- .wp-block-social-links__social-placeholder + .block-list-appender,
2089
2089
  .wp-block-social-links__social-placeholder .wp-social-link {
2090
2090
  padding: 0.25em;
2091
2091
  }
2092
- .is-style-pill-shape .wp-block-social-links__social-placeholder + .block-list-appender,
2093
2092
  .is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link {
2094
2093
  padding-right: calc((2/3) * 1em);
2095
2094
  padding-left: calc((2/3) * 1em);
2096
2095
  }
2097
- .is-style-logos-only .wp-block-social-links__social-placeholder + .block-list-appender,
2098
2096
  .is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link {
2099
2097
  padding: 0;
2100
2098
  }
@@ -2110,6 +2108,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2110
2108
  }
2111
2109
 
2112
2110
  .wp-block-social-links .wp-block-social-links__social-prompt {
2111
+ min-height: 24px;
2113
2112
  list-style: none;
2114
2113
  order: 2;
2115
2114
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
@@ -2120,38 +2119,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2120
2119
  cursor: default;
2121
2120
  padding-left: 8px;
2122
2121
  }
2123
- .wp-block-social-links .wp-block-social-links__social-prompt + .block-list-appender {
2124
- margin-left: 8px;
2125
- padding: 0.25em;
2126
- }
2127
-
2128
- .wp-block-social-links .block-list-appender {
2129
- margin: 4px 0 4px auto;
2130
- border-radius: 9999px;
2131
- }
2132
- .wp-block-social-links .block-list-appender .block-editor-inserter {
2133
- display: flex;
2134
- align-items: center;
2135
- justify-content: center;
2136
- font-size: inherit;
2137
- width: 1em;
2138
- height: 1em;
2139
- }
2140
- .has-small-icon-size .wp-block-social-links .block-list-appender {
2141
- font-size: 16px;
2142
- }
2143
- .has-normal-icon-size .wp-block-social-links .block-list-appender {
2144
- font-size: 24px;
2145
- }
2146
- .has-large-icon-size .wp-block-social-links .block-list-appender {
2147
- font-size: 36px;
2148
- }
2149
- .has-huge-icon-size .wp-block-social-links .block-list-appender {
2150
- font-size: 48px;
2151
- }
2152
- .wp-block-social-links .block-list-appender::before {
2153
- content: none;
2154
- }
2155
2122
 
2156
2123
  .wp-block[data-align=center] > .wp-block-social-links {
2157
2124
  justify-content: center;
@@ -2496,28 +2463,112 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2496
2463
  margin-right: 0;
2497
2464
  }
2498
2465
 
2499
- div[data-type="core/post-featured-image"] img {
2500
- max-width: 100%;
2501
- height: auto;
2466
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,
2467
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container {
2468
+ border-radius: inherit;
2469
+ }
2470
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
2471
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder {
2472
+ justify-content: center;
2473
+ align-items: center;
2474
+ box-shadow: none;
2475
+ padding: 0;
2476
+ color: currentColor;
2477
+ background: transparent;
2478
+ min-height: 200px;
2479
+ }
2480
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload,
2481
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload {
2482
+ display: none;
2483
+ }
2484
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview,
2485
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview {
2486
+ position: absolute;
2487
+ top: 4px;
2488
+ left: 4px;
2489
+ bottom: 4px;
2490
+ right: 4px;
2491
+ background: rgba(255, 255, 255, 0.8);
2492
+ display: flex;
2493
+ align-items: center;
2494
+ justify-content: center;
2495
+ }
2496
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder::before,
2497
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder::before {
2498
+ content: "";
2502
2499
  display: block;
2500
+ position: absolute;
2501
+ top: 0;
2502
+ left: 0;
2503
+ bottom: 0;
2504
+ right: 0;
2505
+ border: 1px dashed currentColor;
2506
+ opacity: 0.4;
2507
+ pointer-events: none;
2508
+ border-radius: inherit;
2503
2509
  }
2504
-
2505
- .editor-styles-wrapper .post-featured-image_placeholder {
2510
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset,
2511
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset {
2512
+ width: auto;
2513
+ }
2514
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button,
2515
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button {
2516
+ color: inherit;
2517
+ padding: 0;
2506
2518
  display: flex;
2507
- flex-direction: row;
2519
+ justify-content: center;
2508
2520
  align-items: center;
2509
- border-radius: 2px;
2510
- background-color: #fff;
2511
- box-shadow: inset 0 0 0 1px #1e1e1e;
2512
- padding: 12px;
2521
+ width: 48px;
2522
+ height: 48px;
2523
+ border-radius: 50%;
2524
+ position: relative;
2525
+ visibility: hidden;
2526
+ background: transparent;
2527
+ transition: all 0.1s linear;
2513
2528
  }
2514
- .editor-styles-wrapper .post-featured-image_placeholder svg {
2515
- margin-left: 12px;
2529
+ @media (prefers-reduced-motion: reduce) {
2530
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button,
2531
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button {
2532
+ transition-duration: 0s;
2533
+ transition-delay: 0s;
2534
+ }
2516
2535
  }
2517
- .editor-styles-wrapper .post-featured-image_placeholder p {
2518
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2519
- font-size: 13px;
2520
- margin: 0;
2536
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button > svg,
2537
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button > svg {
2538
+ color: #fff;
2539
+ }
2540
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration,
2541
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration {
2542
+ position: absolute;
2543
+ top: 0;
2544
+ left: 0;
2545
+ bottom: 0;
2546
+ right: 0;
2547
+ width: 100%;
2548
+ height: 100%;
2549
+ stroke: currentColor;
2550
+ stroke-dasharray: 3;
2551
+ opacity: 0.4;
2552
+ }
2553
+ .wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder {
2554
+ min-height: 48px;
2555
+ min-width: 48px;
2556
+ height: 100%;
2557
+ width: 100%;
2558
+ }
2559
+ .wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button {
2560
+ background: var(--wp-admin-theme-color);
2561
+ border-color: var(--wp-admin-theme-color);
2562
+ border-style: solid;
2563
+ color: #fff;
2564
+ opacity: 1;
2565
+ visibility: visible;
2566
+ }
2567
+
2568
+ div[data-type="core/post-featured-image"] img {
2569
+ max-width: 100%;
2570
+ height: auto;
2571
+ display: block;
2521
2572
  }
2522
2573
 
2523
2574
  .block-library-post-featured-image-dimension-controls {
@@ -825,6 +825,7 @@ figure.wp-block-gallery .components-spinner {
825
825
  bottom: 0;
826
826
  left: 0;
827
827
  z-index: 1;
828
+ pointer-events: none;
828
829
  }
829
830
  .blocks-gallery-item figure.is-transient img {
830
831
  opacity: 0.3;
@@ -1980,7 +1981,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
1980
1981
  bottom: 0;
1981
1982
  left: 0;
1982
1983
  border: 1px dashed currentColor;
1983
- opacity: 0.3;
1984
+ opacity: 0.4;
1984
1985
  pointer-events: none;
1985
1986
  border-radius: inherit;
1986
1987
  }
@@ -2020,7 +2021,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2020
2021
  height: 100%;
2021
2022
  stroke: currentColor;
2022
2023
  stroke-dasharray: 3;
2023
- opacity: 0.3;
2024
+ opacity: 0.4;
2024
2025
  }
2025
2026
  .wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button {
2026
2027
  background: var(--wp-admin-theme-color);
@@ -2090,16 +2091,13 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2090
2091
  .wp-block-social-links__social-placeholder > .wp-block-social-links__social-placeholder-icons {
2091
2092
  display: flex;
2092
2093
  }
2093
- .wp-block-social-links__social-placeholder + .block-list-appender,
2094
2094
  .wp-block-social-links__social-placeholder .wp-social-link {
2095
2095
  padding: 0.25em;
2096
2096
  }
2097
- .is-style-pill-shape .wp-block-social-links__social-placeholder + .block-list-appender,
2098
2097
  .is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link {
2099
2098
  padding-left: calc((2/3) * 1em);
2100
2099
  padding-right: calc((2/3) * 1em);
2101
2100
  }
2102
- .is-style-logos-only .wp-block-social-links__social-placeholder + .block-list-appender,
2103
2101
  .is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link {
2104
2102
  padding: 0;
2105
2103
  }
@@ -2115,6 +2113,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2115
2113
  }
2116
2114
 
2117
2115
  .wp-block-social-links .wp-block-social-links__social-prompt {
2116
+ min-height: 24px;
2118
2117
  list-style: none;
2119
2118
  order: 2;
2120
2119
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
@@ -2125,38 +2124,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2125
2124
  cursor: default;
2126
2125
  padding-right: 8px;
2127
2126
  }
2128
- .wp-block-social-links .wp-block-social-links__social-prompt + .block-list-appender {
2129
- margin-right: 8px;
2130
- padding: 0.25em;
2131
- }
2132
-
2133
- .wp-block-social-links .block-list-appender {
2134
- margin: 4px auto 4px 0;
2135
- border-radius: 9999px;
2136
- }
2137
- .wp-block-social-links .block-list-appender .block-editor-inserter {
2138
- display: flex;
2139
- align-items: center;
2140
- justify-content: center;
2141
- font-size: inherit;
2142
- width: 1em;
2143
- height: 1em;
2144
- }
2145
- .has-small-icon-size .wp-block-social-links .block-list-appender {
2146
- font-size: 16px;
2147
- }
2148
- .has-normal-icon-size .wp-block-social-links .block-list-appender {
2149
- font-size: 24px;
2150
- }
2151
- .has-large-icon-size .wp-block-social-links .block-list-appender {
2152
- font-size: 36px;
2153
- }
2154
- .has-huge-icon-size .wp-block-social-links .block-list-appender {
2155
- font-size: 48px;
2156
- }
2157
- .wp-block-social-links .block-list-appender::before {
2158
- content: none;
2159
- }
2160
2127
 
2161
2128
  .wp-block[data-align=center] > .wp-block-social-links {
2162
2129
  justify-content: center;
@@ -2504,28 +2471,112 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2504
2471
  margin-right: 0;
2505
2472
  }
2506
2473
 
2507
- div[data-type="core/post-featured-image"] img {
2508
- max-width: 100%;
2509
- height: auto;
2474
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,
2475
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container {
2476
+ border-radius: inherit;
2477
+ }
2478
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
2479
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder {
2480
+ justify-content: center;
2481
+ align-items: center;
2482
+ box-shadow: none;
2483
+ padding: 0;
2484
+ color: currentColor;
2485
+ background: transparent;
2486
+ min-height: 200px;
2487
+ }
2488
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload,
2489
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload {
2490
+ display: none;
2491
+ }
2492
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview,
2493
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview {
2494
+ position: absolute;
2495
+ top: 4px;
2496
+ right: 4px;
2497
+ bottom: 4px;
2498
+ left: 4px;
2499
+ background: rgba(255, 255, 255, 0.8);
2500
+ display: flex;
2501
+ align-items: center;
2502
+ justify-content: center;
2503
+ }
2504
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder::before,
2505
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder::before {
2506
+ content: "";
2510
2507
  display: block;
2508
+ position: absolute;
2509
+ top: 0;
2510
+ right: 0;
2511
+ bottom: 0;
2512
+ left: 0;
2513
+ border: 1px dashed currentColor;
2514
+ opacity: 0.4;
2515
+ pointer-events: none;
2516
+ border-radius: inherit;
2511
2517
  }
2512
-
2513
- .editor-styles-wrapper .post-featured-image_placeholder {
2518
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset,
2519
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset {
2520
+ width: auto;
2521
+ }
2522
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button,
2523
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button {
2524
+ color: inherit;
2525
+ padding: 0;
2514
2526
  display: flex;
2515
- flex-direction: row;
2527
+ justify-content: center;
2516
2528
  align-items: center;
2517
- border-radius: 2px;
2518
- background-color: #fff;
2519
- box-shadow: inset 0 0 0 1px #1e1e1e;
2520
- padding: 12px;
2529
+ width: 48px;
2530
+ height: 48px;
2531
+ border-radius: 50%;
2532
+ position: relative;
2533
+ visibility: hidden;
2534
+ background: transparent;
2535
+ transition: all 0.1s linear;
2521
2536
  }
2522
- .editor-styles-wrapper .post-featured-image_placeholder svg {
2523
- margin-right: 12px;
2537
+ @media (prefers-reduced-motion: reduce) {
2538
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button,
2539
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button {
2540
+ transition-duration: 0s;
2541
+ transition-delay: 0s;
2542
+ }
2524
2543
  }
2525
- .editor-styles-wrapper .post-featured-image_placeholder p {
2526
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2527
- font-size: 13px;
2528
- margin: 0;
2544
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button > svg,
2545
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button > svg {
2546
+ color: #fff;
2547
+ }
2548
+ .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration,
2549
+ .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration {
2550
+ position: absolute;
2551
+ top: 0;
2552
+ right: 0;
2553
+ bottom: 0;
2554
+ left: 0;
2555
+ width: 100%;
2556
+ height: 100%;
2557
+ stroke: currentColor;
2558
+ stroke-dasharray: 3;
2559
+ opacity: 0.4;
2560
+ }
2561
+ .wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder {
2562
+ min-height: 48px;
2563
+ min-width: 48px;
2564
+ height: 100%;
2565
+ width: 100%;
2566
+ }
2567
+ .wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button {
2568
+ background: var(--wp-admin-theme-color);
2569
+ border-color: var(--wp-admin-theme-color);
2570
+ border-style: solid;
2571
+ color: #fff;
2572
+ opacity: 1;
2573
+ visibility: visible;
2574
+ }
2575
+
2576
+ div[data-type="core/post-featured-image"] img {
2577
+ max-width: 100%;
2578
+ height: auto;
2579
+ display: block;
2529
2580
  }
2530
2581
 
2531
2582
  .block-library-post-featured-image-dimension-controls {
@@ -173,6 +173,7 @@ figure.wp-block-gallery .components-spinner {
173
173
  bottom: 0;
174
174
  right: 0;
175
175
  z-index: 1;
176
+ pointer-events: none;
176
177
  }
177
178
  .blocks-gallery-item figure.is-transient img {
178
179
  opacity: 0.3;
@@ -173,6 +173,7 @@ figure.wp-block-gallery .components-spinner {
173
173
  bottom: 0;
174
174
  left: 0;
175
175
  z-index: 1;
176
+ pointer-events: none;
176
177
  }
177
178
  .blocks-gallery-item figure.is-transient img {
178
179
  opacity: 0.3;
@@ -119,17 +119,23 @@
119
119
  }
120
120
  .wp-block-navigation .wp-block-navigation__submenu-icon {
121
121
  align-self: center;
122
- height: inherit;
123
122
  line-height: 0;
124
- margin-right: 6px;
123
+ display: inline-block;
124
+ vertical-align: middle;
125
+ font-size: inherit;
125
126
  padding: 0;
126
127
  background-color: inherit;
127
128
  color: currentColor;
128
129
  border: none;
130
+ margin-right: 0.25em;
131
+ width: 0.6em;
132
+ height: 0.6em;
129
133
  }
130
134
  .wp-block-navigation .wp-block-navigation__submenu-icon svg {
131
135
  display: inline-block;
132
136
  stroke: currentColor;
137
+ width: inherit;
138
+ height: inherit;
133
139
  }
134
140
 
135
141
  .wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) {
@@ -214,6 +220,28 @@
214
220
  }
215
221
  }
216
222
 
223
+ .wp-block-navigation-submenu {
224
+ position: relative;
225
+ display: flex;
226
+ }
227
+ .wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg {
228
+ stroke: currentColor;
229
+ }
230
+
231
+ button.wp-block-navigation-item__content {
232
+ background-color: transparent;
233
+ border: none;
234
+ color: currentColor;
235
+ font-size: inherit;
236
+ font-family: inherit;
237
+ line-height: inherit;
238
+ text-align: right;
239
+ }
240
+
241
+ .wp-block-navigation-submenu__toggle {
242
+ cursor: pointer;
243
+ }
244
+
217
245
  /**
218
246
  * Margins
219
247
  */
@@ -288,6 +316,11 @@
288
316
  display: none;
289
317
  }
290
318
 
319
+ .wp-block-navigation__container:only-child,
320
+ .wp-block-page-list:only-child {
321
+ flex-grow: 1;
322
+ }
323
+
291
324
  /**
292
325
  * Mobile menu.
293
326
  */
@@ -306,6 +339,10 @@
306
339
  justify-content: var(--layout-justify, initial);
307
340
  align-items: var(--layout-align, initial);
308
341
  }
342
+ .wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
343
+ color: inherit !important;
344
+ background-color: inherit !important;
345
+ }
309
346
  .wp-block-navigation__responsive-container.is-menu-open {
310
347
  display: flex;
311
348
  flex-direction: column;
@@ -359,7 +396,8 @@
359
396
  align-items: var(--layout-justification-setting, initial);
360
397
  }
361
398
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,
362
- .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
399
+ .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
400
+ .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list {
363
401
  color: inherit !important;
364
402
  background: transparent !important;
365
403
  }