@wordpress/block-library 8.7.0 → 8.8.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 (270) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/column/index.js +2 -1
  3. package/build/column/index.js.map +1 -1
  4. package/build/columns/edit.js +24 -6
  5. package/build/columns/edit.js.map +1 -1
  6. package/build/columns/index.js +2 -1
  7. package/build/columns/index.js.map +1 -1
  8. package/build/columns/utils.js +4 -9
  9. package/build/columns/utils.js.map +1 -1
  10. package/build/cover/edit/index.js +46 -50
  11. package/build/cover/edit/index.js.map +1 -1
  12. package/build/cover/edit/{resizable-cover.js → resizable-cover-popover.js} +32 -6
  13. package/build/cover/edit/resizable-cover-popover.js.map +1 -0
  14. package/build/cover/index.js +12 -0
  15. package/build/cover/index.js.map +1 -1
  16. package/build/details/edit.js +67 -0
  17. package/build/details/edit.js.map +1 -0
  18. package/build/details/index.js +110 -0
  19. package/build/details/index.js.map +1 -0
  20. package/build/details/save.js +33 -0
  21. package/build/details/save.js.map +1 -0
  22. package/build/details-content/edit.js +34 -0
  23. package/build/details-content/edit.js.map +1 -0
  24. package/build/details-content/index.js +94 -0
  25. package/build/details-content/index.js.map +1 -0
  26. package/build/details-content/save.js +20 -0
  27. package/build/details-content/save.js.map +1 -0
  28. package/build/details-summary/edit.js +42 -0
  29. package/build/details-summary/edit.js.map +1 -0
  30. package/build/details-summary/index.js +97 -0
  31. package/build/details-summary/index.js.map +1 -0
  32. package/build/details-summary/save.js +24 -0
  33. package/build/details-summary/save.js.map +1 -0
  34. package/build/embed/deprecated.js +4 -1
  35. package/build/embed/deprecated.js.map +1 -1
  36. package/build/embed/embed-link-settings.native.js +1 -1
  37. package/build/embed/embed-link-settings.native.js.map +1 -1
  38. package/build/embed/embed-placeholder.js +1 -1
  39. package/build/embed/embed-placeholder.js.map +1 -1
  40. package/build/embed/index.js +4 -1
  41. package/build/embed/index.js.map +1 -1
  42. package/build/embed/transforms.js +4 -1
  43. package/build/embed/transforms.js.map +1 -1
  44. package/build/embed/util.js +4 -1
  45. package/build/embed/util.js.map +1 -1
  46. package/build/file/edit.native.js +0 -2
  47. package/build/file/edit.native.js.map +1 -1
  48. package/build/gallery/use-get-media.native.js +2 -1
  49. package/build/gallery/use-get-media.native.js.map +1 -1
  50. package/build/image/index.js +4 -2
  51. package/build/image/index.js.map +1 -1
  52. package/build/index.js +24 -6
  53. package/build/index.js.map +1 -1
  54. package/build/media-text/media-container.js +2 -6
  55. package/build/media-text/media-container.js.map +1 -1
  56. package/build/media-text/media-container.native.js +3 -3
  57. package/build/media-text/media-container.native.js.map +1 -1
  58. package/build/navigation/deprecated.js +8 -11
  59. package/build/navigation/deprecated.js.map +1 -1
  60. package/build/navigation/edit/unsaved-inner-blocks.js +1 -14
  61. package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  62. package/build/post-author/index.js +0 -1
  63. package/build/post-author/index.js.map +1 -1
  64. package/build/post-featured-image/dimension-controls.js +2 -1
  65. package/build/post-featured-image/dimension-controls.js.map +1 -1
  66. package/build/post-featured-image/edit.js +8 -22
  67. package/build/post-featured-image/edit.js.map +1 -1
  68. package/build/post-time-to-read/edit.js +1 -1
  69. package/build/post-time-to-read/edit.js.map +1 -1
  70. package/build/post-time-to-read/index.js +7 -0
  71. package/build/post-time-to-read/index.js.map +1 -1
  72. package/build/spacer/controls.js +25 -6
  73. package/build/spacer/controls.js.map +1 -1
  74. package/build/spacer/edit.js +14 -4
  75. package/build/spacer/edit.js.map +1 -1
  76. package/build/spacer/save.js +2 -2
  77. package/build/spacer/save.js.map +1 -1
  78. package/build/table/state.js +35 -35
  79. package/build/table/state.js.map +1 -1
  80. package/build/term-description/index.js +1 -2
  81. package/build/term-description/index.js.map +1 -1
  82. package/build/utils/clean-empty-object.js +5 -2
  83. package/build/utils/clean-empty-object.js.map +1 -1
  84. package/build-module/column/index.js +2 -1
  85. package/build-module/column/index.js.map +1 -1
  86. package/build-module/columns/edit.js +24 -6
  87. package/build-module/columns/edit.js.map +1 -1
  88. package/build-module/columns/index.js +2 -1
  89. package/build-module/columns/index.js.map +1 -1
  90. package/build-module/columns/utils.js +4 -8
  91. package/build-module/columns/utils.js.map +1 -1
  92. package/build-module/cover/edit/index.js +48 -52
  93. package/build-module/cover/edit/index.js.map +1 -1
  94. package/build-module/cover/edit/{resizable-cover.js → resizable-cover-popover.js} +31 -6
  95. package/build-module/cover/edit/resizable-cover-popover.js.map +1 -0
  96. package/build-module/cover/index.js +12 -0
  97. package/build-module/cover/index.js.map +1 -1
  98. package/build-module/details/edit.js +52 -0
  99. package/build-module/details/edit.js.map +1 -0
  100. package/build-module/details/index.js +91 -0
  101. package/build-module/details/index.js.map +1 -0
  102. package/build-module/details/save.js +20 -0
  103. package/build-module/details/save.js.map +1 -0
  104. package/build-module/details-content/edit.js +23 -0
  105. package/build-module/details-content/edit.js.map +1 -0
  106. package/build-module/details-content/index.js +76 -0
  107. package/build-module/details-content/index.js.map +1 -0
  108. package/build-module/details-content/save.js +11 -0
  109. package/build-module/details-content/save.js.map +1 -0
  110. package/build-module/details-summary/edit.js +30 -0
  111. package/build-module/details-summary/edit.js.map +1 -0
  112. package/build-module/details-summary/index.js +79 -0
  113. package/build-module/details-summary/index.js.map +1 -0
  114. package/build-module/details-summary/save.js +16 -0
  115. package/build-module/details-summary/save.js.map +1 -0
  116. package/build-module/embed/deprecated.js +4 -1
  117. package/build-module/embed/deprecated.js.map +1 -1
  118. package/build-module/embed/embed-link-settings.native.js +1 -1
  119. package/build-module/embed/embed-link-settings.native.js.map +1 -1
  120. package/build-module/embed/embed-placeholder.js +1 -1
  121. package/build-module/embed/embed-placeholder.js.map +1 -1
  122. package/build-module/embed/index.js +4 -1
  123. package/build-module/embed/index.js.map +1 -1
  124. package/build-module/embed/transforms.js +4 -1
  125. package/build-module/embed/transforms.js.map +1 -1
  126. package/build-module/embed/util.js +4 -1
  127. package/build-module/embed/util.js.map +1 -1
  128. package/build-module/file/edit.native.js +0 -2
  129. package/build-module/file/edit.native.js.map +1 -1
  130. package/build-module/gallery/use-get-media.native.js +2 -1
  131. package/build-module/gallery/use-get-media.native.js.map +1 -1
  132. package/build-module/image/index.js +4 -2
  133. package/build-module/image/index.js.map +1 -1
  134. package/build-module/index.js +21 -6
  135. package/build-module/index.js.map +1 -1
  136. package/build-module/media-text/media-container.js +1 -5
  137. package/build-module/media-text/media-container.js.map +1 -1
  138. package/build-module/media-text/media-container.native.js +1 -1
  139. package/build-module/media-text/media-container.native.js.map +1 -1
  140. package/build-module/navigation/deprecated.js +8 -10
  141. package/build-module/navigation/deprecated.js.map +1 -1
  142. package/build-module/navigation/edit/unsaved-inner-blocks.js +1 -14
  143. package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  144. package/build-module/post-author/index.js +0 -1
  145. package/build-module/post-author/index.js.map +1 -1
  146. package/build-module/post-featured-image/dimension-controls.js +2 -1
  147. package/build-module/post-featured-image/dimension-controls.js.map +1 -1
  148. package/build-module/post-featured-image/edit.js +8 -22
  149. package/build-module/post-featured-image/edit.js.map +1 -1
  150. package/build-module/post-time-to-read/edit.js +1 -1
  151. package/build-module/post-time-to-read/edit.js.map +1 -1
  152. package/build-module/post-time-to-read/index.js +7 -0
  153. package/build-module/post-time-to-read/index.js.map +1 -1
  154. package/build-module/spacer/controls.js +27 -9
  155. package/build-module/spacer/controls.js.map +1 -1
  156. package/build-module/spacer/edit.js +14 -5
  157. package/build-module/spacer/edit.js.map +1 -1
  158. package/build-module/spacer/save.js +3 -3
  159. package/build-module/spacer/save.js.map +1 -1
  160. package/build-module/table/state.js +35 -33
  161. package/build-module/table/state.js.map +1 -1
  162. package/build-module/term-description/index.js +1 -2
  163. package/build-module/term-description/index.js.map +1 -1
  164. package/build-module/utils/clean-empty-object.js +6 -3
  165. package/build-module/utils/clean-empty-object.js.map +1 -1
  166. package/build-style/columns/style-rtl.css +4 -1
  167. package/build-style/columns/style.css +4 -1
  168. package/build-style/common-rtl.css +1 -1
  169. package/build-style/common.css +1 -1
  170. package/build-style/cover/editor-rtl.css +11 -12
  171. package/build-style/cover/editor.css +11 -12
  172. package/build-style/cover/style-rtl.css +3 -2
  173. package/build-style/cover/style.css +3 -2
  174. package/build-style/details/style-rtl.css +91 -0
  175. package/build-style/details/style.css +91 -0
  176. package/build-style/details-summary/editor-rtl.css +91 -0
  177. package/build-style/details-summary/editor.css +91 -0
  178. package/build-style/details-summary/style-rtl.css +91 -0
  179. package/build-style/details-summary/style.css +91 -0
  180. package/build-style/editor-rtl.css +34 -48
  181. package/build-style/editor.css +34 -48
  182. package/build-style/file/style-rtl.css +4 -3
  183. package/build-style/file/style.css +4 -3
  184. package/build-style/post-excerpt/style-rtl.css +1 -1
  185. package/build-style/post-excerpt/style.css +1 -1
  186. package/build-style/pullquote/style-rtl.css +4 -1
  187. package/build-style/pullquote/style.css +4 -1
  188. package/build-style/shortcode/editor-rtl.css +15 -34
  189. package/build-style/shortcode/editor.css +15 -34
  190. package/build-style/spacer/editor-rtl.css +4 -2
  191. package/build-style/spacer/editor.css +4 -2
  192. package/build-style/style-rtl.css +25 -9
  193. package/build-style/style.css +25 -9
  194. package/package.json +31 -31
  195. package/src/column/block.json +2 -1
  196. package/src/columns/block.json +2 -1
  197. package/src/columns/edit.js +33 -9
  198. package/src/columns/style.scss +5 -1
  199. package/src/columns/utils.js +8 -9
  200. package/src/common.scss +1 -1
  201. package/src/cover/block.json +12 -0
  202. package/src/cover/edit/index.js +44 -37
  203. package/src/cover/edit/resizable-cover-popover.js +82 -0
  204. package/src/cover/editor.scss +20 -13
  205. package/src/cover/index.php +9 -10
  206. package/src/cover/style.scss +2 -1
  207. package/src/cover/test/edit.js +1 -1
  208. package/src/details/block.json +54 -0
  209. package/src/details/edit.js +59 -0
  210. package/src/details/index.js +35 -0
  211. package/src/details/save.js +15 -0
  212. package/src/details/style.scss +3 -0
  213. package/src/details-content/block.json +50 -0
  214. package/src/details-content/edit.js +29 -0
  215. package/src/details-content/index.js +23 -0
  216. package/src/details-content/save.js +12 -0
  217. package/src/details-summary/block.json +53 -0
  218. package/src/details-summary/edit.js +27 -0
  219. package/src/details-summary/editor.scss +3 -0
  220. package/src/details-summary/index.js +23 -0
  221. package/src/details-summary/save.js +13 -0
  222. package/src/details-summary/style.scss +3 -0
  223. package/src/editor.scss +1 -0
  224. package/src/embed/block.json +4 -1
  225. package/src/embed/embed-link-settings.native.js +1 -1
  226. package/src/embed/embed-placeholder.js +1 -1
  227. package/src/file/edit.native.js +0 -2
  228. package/src/file/style.scss +5 -2
  229. package/src/gallery/test/use-get-media.native.js +24 -0
  230. package/src/gallery/use-get-media.native.js +1 -1
  231. package/src/image/block.json +4 -2
  232. package/src/index.js +13 -3
  233. package/src/media-text/media-container.js +1 -5
  234. package/src/media-text/media-container.native.js +1 -1
  235. package/src/navigation/deprecated.js +15 -19
  236. package/src/navigation/edit/unsaved-inner-blocks.js +34 -46
  237. package/src/navigation/index.php +0 -4
  238. package/src/paragraph/test/edit.native.js +356 -1
  239. package/src/post-author/block.json +0 -1
  240. package/src/post-excerpt/index.php +3 -3
  241. package/src/post-excerpt/style.scss +2 -1
  242. package/src/post-featured-image/dimension-controls.js +5 -1
  243. package/src/post-featured-image/edit.js +8 -29
  244. package/src/post-time-to-read/block.json +7 -0
  245. package/src/post-time-to-read/edit.js +1 -1
  246. package/src/post-time-to-read/index.php +3 -3
  247. package/src/preformatted/test/__snapshots__/edit.native.js.snap +2 -2
  248. package/src/preformatted/test/edit.native.js +45 -2
  249. package/src/pullquote/style.scss +5 -1
  250. package/src/pullquote/test/edit.native.js +70 -0
  251. package/src/quote/test/edit.native.js +92 -0
  252. package/src/search/index.php +1 -1
  253. package/src/shortcode/editor.scss +26 -5
  254. package/src/spacer/controls.js +42 -17
  255. package/src/spacer/edit.js +23 -4
  256. package/src/spacer/editor.scss +2 -1
  257. package/src/spacer/save.js +3 -3
  258. package/src/style.scss +2 -0
  259. package/src/table/state.js +83 -66
  260. package/src/term-description/block.json +1 -2
  261. package/src/utils/clean-empty-object.js +4 -4
  262. package/src/verse/test/edit.native.js +33 -0
  263. package/build/cover/edit/resizable-cover.js.map +0 -1
  264. package/build/media-text/media-container-icon.js +0 -27
  265. package/build/media-text/media-container-icon.js.map +0 -1
  266. package/build-module/cover/edit/resizable-cover.js.map +0 -1
  267. package/build-module/media-text/media-container-icon.js +0 -17
  268. package/build-module/media-text/media-container-icon.js.map +0 -1
  269. package/src/cover/edit/resizable-cover.js +0 -61
  270. package/src/media-text/media-container-icon.js +0 -12
@@ -490,20 +490,18 @@ html :where(.wp-block-column) {
490
490
  box-sizing: border-box;
491
491
  }
492
492
  .wp-block-cover.is-placeholder {
493
- min-height: auto !important;
494
493
  padding: 0 !important;
495
- }
496
- .wp-block-cover.is-placeholder .block-library-cover__resize-container {
497
- display: none;
494
+ display: flex;
495
+ align-items: stretch;
496
+ overflow: visible;
497
+ min-height: 240px;
498
498
  }
499
499
  .wp-block-cover.is-placeholder .components-placeholder.is-large {
500
- min-height: 240px;
501
500
  justify-content: flex-start;
502
- z-index: 1;
501
+ z-index: 32;
503
502
  }
504
- .wp-block-cover.is-placeholder .components-placeholder.is-large + .block-library-cover__resize-container {
505
- min-height: 240px;
506
- display: block;
503
+ .wp-block-cover.is-placeholder:focus::after {
504
+ min-height: auto;
507
505
  }
508
506
  .wp-block-cover.components-placeholder h2 {
509
507
  color: inherit;
@@ -514,7 +512,7 @@ html :where(.wp-block-column) {
514
512
  }
515
513
  .wp-block-cover .components-spinner {
516
514
  position: absolute;
517
- z-index: 1;
515
+ z-index: 32;
518
516
  top: 50%;
519
517
  right: 50%;
520
518
  transform: translate(50%, -50%);
@@ -555,8 +553,9 @@ html :where(.wp-block-column) {
555
553
  min-height: 50px;
556
554
  }
557
555
 
558
- .block-library-cover__resize-container:not(.is-resizing) {
559
- height: auto !important;
556
+ .components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content > div,
557
+ .components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container {
558
+ pointer-events: none;
560
559
  }
561
560
 
562
561
  .wp-block-cover > .components-drop-zone .components-drop-zone__content {
@@ -575,6 +574,10 @@ html :where(.wp-block-column) {
575
574
  min-height: auto;
576
575
  }
577
576
 
577
+ .wp-block-details-summary div {
578
+ display: inline;
579
+ }
580
+
578
581
  .wp-block-embed {
579
582
  margin-right: 0;
580
583
  margin-left: 0;
@@ -2290,52 +2293,33 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2290
2293
  border: none;
2291
2294
  }
2292
2295
 
2293
- [data-type="core/shortcode"] .block-editor-plain-text {
2294
- max-height: 250px;
2295
- }
2296
2296
  [data-type="core/shortcode"].components-placeholder {
2297
2297
  min-height: 0;
2298
2298
  }
2299
2299
 
2300
2300
  .blocks-shortcode__textarea {
2301
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2302
- padding: 6px 8px;
2303
- box-shadow: 0 0 0 transparent;
2304
- transition: box-shadow 0.1s linear;
2305
- border-radius: 2px;
2306
- border: 1px solid #949494;
2301
+ font-family: Menlo, Consolas, monaco, monospace !important;
2302
+ color: #1e1e1e !important;
2303
+ background: #fff !important;
2304
+ padding: 12px !important;
2305
+ border: 1px solid #1e1e1e !important;
2306
+ box-shadow: none !important;
2307
+ border-radius: 2px !important;
2308
+ box-sizing: border-box;
2309
+ max-height: 250px;
2310
+ resize: none;
2307
2311
  /* Fonts smaller than 16px causes mobile safari to zoom. */
2308
- font-size: 16px;
2309
- /* Override core line-height. To be reviewed. */
2310
- line-height: normal;
2311
- }
2312
- @media (prefers-reduced-motion: reduce) {
2313
- .blocks-shortcode__textarea {
2314
- transition-duration: 0s;
2315
- transition-delay: 0s;
2316
- }
2312
+ font-size: 16px !important;
2317
2313
  }
2318
2314
  @media (min-width: 600px) {
2319
2315
  .blocks-shortcode__textarea {
2320
- font-size: 13px;
2321
- /* Override core line-height. To be reviewed. */
2322
- line-height: normal;
2316
+ font-size: 13px !important;
2323
2317
  }
2324
2318
  }
2325
2319
  .blocks-shortcode__textarea:focus {
2326
- border-color: var(--wp-admin-theme-color);
2327
- box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
2328
- outline: 2px solid transparent;
2329
- }
2330
- .blocks-shortcode__textarea::-webkit-input-placeholder {
2331
- color: rgba(30, 30, 30, 0.62);
2332
- }
2333
- .blocks-shortcode__textarea::-moz-placeholder {
2334
- opacity: 1;
2335
- color: rgba(30, 30, 30, 0.62);
2336
- }
2337
- .blocks-shortcode__textarea:-ms-input-placeholder {
2338
- color: rgba(30, 30, 30, 0.62);
2320
+ border-color: var(--wp-admin-theme-color) !important;
2321
+ box-shadow: 0 0 0 1px var(--wp-admin-theme-color) !important;
2322
+ outline: 2px solid transparent !important;
2339
2323
  }
2340
2324
 
2341
2325
  .wp-block[data-align=center] > .wp-block-site-logo,
@@ -2543,11 +2527,13 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2543
2527
  }
2544
2528
 
2545
2529
  .wp-block-spacer.is-hovered .block-library-spacer__resize-container,
2546
- .block-library-spacer__resize-container.has-show-handle {
2530
+ .block-library-spacer__resize-container.has-show-handle,
2531
+ .wp-block-spacer.is-selected.custom-sizes-disabled {
2547
2532
  background: rgba(0, 0, 0, 0.1);
2548
2533
  }
2549
2534
  .is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,
2550
- .is-dark-theme .block-library-spacer__resize-container.has-show-handle {
2535
+ .is-dark-theme .block-library-spacer__resize-container.has-show-handle,
2536
+ .is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled {
2551
2537
  background: rgba(255, 255, 255, 0.15);
2552
2538
  }
2553
2539
 
@@ -494,20 +494,18 @@ html :where(.wp-block-column) {
494
494
  box-sizing: border-box;
495
495
  }
496
496
  .wp-block-cover.is-placeholder {
497
- min-height: auto !important;
498
497
  padding: 0 !important;
499
- }
500
- .wp-block-cover.is-placeholder .block-library-cover__resize-container {
501
- display: none;
498
+ display: flex;
499
+ align-items: stretch;
500
+ overflow: visible;
501
+ min-height: 240px;
502
502
  }
503
503
  .wp-block-cover.is-placeholder .components-placeholder.is-large {
504
- min-height: 240px;
505
504
  justify-content: flex-start;
506
- z-index: 1;
505
+ z-index: 32;
507
506
  }
508
- .wp-block-cover.is-placeholder .components-placeholder.is-large + .block-library-cover__resize-container {
509
- min-height: 240px;
510
- display: block;
507
+ .wp-block-cover.is-placeholder:focus::after {
508
+ min-height: auto;
511
509
  }
512
510
  .wp-block-cover.components-placeholder h2 {
513
511
  color: inherit;
@@ -518,7 +516,7 @@ html :where(.wp-block-column) {
518
516
  }
519
517
  .wp-block-cover .components-spinner {
520
518
  position: absolute;
521
- z-index: 1;
519
+ z-index: 32;
522
520
  top: 50%;
523
521
  left: 50%;
524
522
  transform: translate(-50%, -50%);
@@ -559,8 +557,9 @@ html :where(.wp-block-column) {
559
557
  min-height: 50px;
560
558
  }
561
559
 
562
- .block-library-cover__resize-container:not(.is-resizing) {
563
- height: auto !important;
560
+ .components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content > div,
561
+ .components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container {
562
+ pointer-events: none;
564
563
  }
565
564
 
566
565
  .wp-block-cover > .components-drop-zone .components-drop-zone__content {
@@ -579,6 +578,10 @@ html :where(.wp-block-column) {
579
578
  min-height: auto;
580
579
  }
581
580
 
581
+ .wp-block-details-summary div {
582
+ display: inline;
583
+ }
584
+
582
585
  .wp-block-embed {
583
586
  margin-left: 0;
584
587
  margin-right: 0;
@@ -2298,52 +2301,33 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2298
2301
  border: none;
2299
2302
  }
2300
2303
 
2301
- [data-type="core/shortcode"] .block-editor-plain-text {
2302
- max-height: 250px;
2303
- }
2304
2304
  [data-type="core/shortcode"].components-placeholder {
2305
2305
  min-height: 0;
2306
2306
  }
2307
2307
 
2308
2308
  .blocks-shortcode__textarea {
2309
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2310
- padding: 6px 8px;
2311
- box-shadow: 0 0 0 transparent;
2312
- transition: box-shadow 0.1s linear;
2313
- border-radius: 2px;
2314
- border: 1px solid #949494;
2309
+ font-family: Menlo, Consolas, monaco, monospace !important;
2310
+ color: #1e1e1e !important;
2311
+ background: #fff !important;
2312
+ padding: 12px !important;
2313
+ border: 1px solid #1e1e1e !important;
2314
+ box-shadow: none !important;
2315
+ border-radius: 2px !important;
2316
+ box-sizing: border-box;
2317
+ max-height: 250px;
2318
+ resize: none;
2315
2319
  /* Fonts smaller than 16px causes mobile safari to zoom. */
2316
- font-size: 16px;
2317
- /* Override core line-height. To be reviewed. */
2318
- line-height: normal;
2319
- }
2320
- @media (prefers-reduced-motion: reduce) {
2321
- .blocks-shortcode__textarea {
2322
- transition-duration: 0s;
2323
- transition-delay: 0s;
2324
- }
2320
+ font-size: 16px !important;
2325
2321
  }
2326
2322
  @media (min-width: 600px) {
2327
2323
  .blocks-shortcode__textarea {
2328
- font-size: 13px;
2329
- /* Override core line-height. To be reviewed. */
2330
- line-height: normal;
2324
+ font-size: 13px !important;
2331
2325
  }
2332
2326
  }
2333
2327
  .blocks-shortcode__textarea:focus {
2334
- border-color: var(--wp-admin-theme-color);
2335
- box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
2336
- outline: 2px solid transparent;
2337
- }
2338
- .blocks-shortcode__textarea::-webkit-input-placeholder {
2339
- color: rgba(30, 30, 30, 0.62);
2340
- }
2341
- .blocks-shortcode__textarea::-moz-placeholder {
2342
- opacity: 1;
2343
- color: rgba(30, 30, 30, 0.62);
2344
- }
2345
- .blocks-shortcode__textarea:-ms-input-placeholder {
2346
- color: rgba(30, 30, 30, 0.62);
2328
+ border-color: var(--wp-admin-theme-color) !important;
2329
+ box-shadow: 0 0 0 1px var(--wp-admin-theme-color) !important;
2330
+ outline: 2px solid transparent !important;
2347
2331
  }
2348
2332
 
2349
2333
  .wp-block[data-align=center] > .wp-block-site-logo,
@@ -2551,11 +2535,13 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2551
2535
  }
2552
2536
 
2553
2537
  .wp-block-spacer.is-hovered .block-library-spacer__resize-container,
2554
- .block-library-spacer__resize-container.has-show-handle {
2538
+ .block-library-spacer__resize-container.has-show-handle,
2539
+ .wp-block-spacer.is-selected.custom-sizes-disabled {
2555
2540
  background: rgba(0, 0, 0, 0.1);
2556
2541
  }
2557
2542
  .is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,
2558
- .is-dark-theme .block-library-spacer__resize-container.has-show-handle {
2543
+ .is-dark-theme .block-library-spacer__resize-container.has-show-handle,
2544
+ .is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled {
2559
2545
  background: rgba(255, 255, 255, 0.15);
2560
2546
  }
2561
2547
 
@@ -86,9 +86,6 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- .wp-block-file {
90
- margin-bottom: 1.5em;
91
- }
92
89
  .wp-block-file:not(.wp-element-button) {
93
90
  font-size: 0.8em;
94
91
  }
@@ -102,6 +99,10 @@
102
99
  margin-right: 0.75em;
103
100
  }
104
101
 
102
+ :where(.wp-block-file) {
103
+ margin-bottom: 1.5em;
104
+ }
105
+
105
106
  .wp-block-file__embed {
106
107
  margin-bottom: 1em;
107
108
  }
@@ -86,9 +86,6 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- .wp-block-file {
90
- margin-bottom: 1.5em;
91
- }
92
89
  .wp-block-file:not(.wp-element-button) {
93
90
  font-size: 0.8em;
94
91
  }
@@ -103,6 +100,10 @@
103
100
  margin-left: 0.75em;
104
101
  }
105
102
 
103
+ :where(.wp-block-file) {
104
+ margin-bottom: 1.5em;
105
+ }
106
+
106
107
  .wp-block-file__embed {
107
108
  margin-bottom: 1em;
108
109
  }
@@ -86,7 +86,7 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- .wp-block-post-excerpt {
89
+ :where(.wp-block-post-excerpt) {
90
90
  margin-top: var(--wp--style--block-gap);
91
91
  margin-bottom: var(--wp--style--block-gap);
92
92
  }
@@ -86,7 +86,7 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- .wp-block-post-excerpt {
89
+ :where(.wp-block-post-excerpt) {
90
90
  margin-top: var(--wp--style--block-gap);
91
91
  margin-bottom: var(--wp--style--block-gap);
92
92
  }
@@ -87,7 +87,6 @@
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
89
  .wp-block-pullquote {
90
- margin: 0 0 1em 0;
91
90
  padding: 3em 0;
92
91
  text-align: center;
93
92
  overflow-wrap: break-word;
@@ -109,6 +108,10 @@
109
108
  color: inherit;
110
109
  }
111
110
 
111
+ :where(.wp-block-pullquote) {
112
+ margin: 0 0 1em 0;
113
+ }
114
+
112
115
  .wp-block-pullquote.has-text-align-left blockquote {
113
116
  text-align: right;
114
117
  }
@@ -87,7 +87,6 @@
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
89
  .wp-block-pullquote {
90
- margin: 0 0 1em 0;
91
90
  padding: 3em 0;
92
91
  text-align: center;
93
92
  overflow-wrap: break-word;
@@ -109,6 +108,10 @@
109
108
  color: inherit;
110
109
  }
111
110
 
111
+ :where(.wp-block-pullquote) {
112
+ margin: 0 0 1em 0;
113
+ }
114
+
112
115
  .wp-block-pullquote.has-text-align-left blockquote {
113
116
  text-align: left;
114
117
  }
@@ -86,50 +86,31 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- [data-type="core/shortcode"] .block-editor-plain-text {
90
- max-height: 250px;
91
- }
92
89
  [data-type="core/shortcode"].components-placeholder {
93
90
  min-height: 0;
94
91
  }
95
92
 
96
93
  .blocks-shortcode__textarea {
97
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
98
- padding: 6px 8px;
99
- box-shadow: 0 0 0 transparent;
100
- transition: box-shadow 0.1s linear;
101
- border-radius: 2px;
102
- border: 1px solid #949494;
94
+ font-family: Menlo, Consolas, monaco, monospace !important;
95
+ color: #1e1e1e !important;
96
+ background: #fff !important;
97
+ padding: 12px !important;
98
+ border: 1px solid #1e1e1e !important;
99
+ box-shadow: none !important;
100
+ border-radius: 2px !important;
101
+ box-sizing: border-box;
102
+ max-height: 250px;
103
+ resize: none;
103
104
  /* Fonts smaller than 16px causes mobile safari to zoom. */
104
- font-size: 16px;
105
- /* Override core line-height. To be reviewed. */
106
- line-height: normal;
107
- }
108
- @media (prefers-reduced-motion: reduce) {
109
- .blocks-shortcode__textarea {
110
- transition-duration: 0s;
111
- transition-delay: 0s;
112
- }
105
+ font-size: 16px !important;
113
106
  }
114
107
  @media (min-width: 600px) {
115
108
  .blocks-shortcode__textarea {
116
- font-size: 13px;
117
- /* Override core line-height. To be reviewed. */
118
- line-height: normal;
109
+ font-size: 13px !important;
119
110
  }
120
111
  }
121
112
  .blocks-shortcode__textarea:focus {
122
- border-color: var(--wp-admin-theme-color);
123
- box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
124
- outline: 2px solid transparent;
125
- }
126
- .blocks-shortcode__textarea::-webkit-input-placeholder {
127
- color: rgba(30, 30, 30, 0.62);
128
- }
129
- .blocks-shortcode__textarea::-moz-placeholder {
130
- opacity: 1;
131
- color: rgba(30, 30, 30, 0.62);
132
- }
133
- .blocks-shortcode__textarea:-ms-input-placeholder {
134
- color: rgba(30, 30, 30, 0.62);
113
+ border-color: var(--wp-admin-theme-color) !important;
114
+ box-shadow: 0 0 0 1px var(--wp-admin-theme-color) !important;
115
+ outline: 2px solid transparent !important;
135
116
  }
@@ -86,50 +86,31 @@
86
86
  /**
87
87
  * Reset the WP Admin page styles for Gutenberg-like pages.
88
88
  */
89
- [data-type="core/shortcode"] .block-editor-plain-text {
90
- max-height: 250px;
91
- }
92
89
  [data-type="core/shortcode"].components-placeholder {
93
90
  min-height: 0;
94
91
  }
95
92
 
96
93
  .blocks-shortcode__textarea {
97
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
98
- padding: 6px 8px;
99
- box-shadow: 0 0 0 transparent;
100
- transition: box-shadow 0.1s linear;
101
- border-radius: 2px;
102
- border: 1px solid #949494;
94
+ font-family: Menlo, Consolas, monaco, monospace !important;
95
+ color: #1e1e1e !important;
96
+ background: #fff !important;
97
+ padding: 12px !important;
98
+ border: 1px solid #1e1e1e !important;
99
+ box-shadow: none !important;
100
+ border-radius: 2px !important;
101
+ box-sizing: border-box;
102
+ max-height: 250px;
103
+ resize: none;
103
104
  /* Fonts smaller than 16px causes mobile safari to zoom. */
104
- font-size: 16px;
105
- /* Override core line-height. To be reviewed. */
106
- line-height: normal;
107
- }
108
- @media (prefers-reduced-motion: reduce) {
109
- .blocks-shortcode__textarea {
110
- transition-duration: 0s;
111
- transition-delay: 0s;
112
- }
105
+ font-size: 16px !important;
113
106
  }
114
107
  @media (min-width: 600px) {
115
108
  .blocks-shortcode__textarea {
116
- font-size: 13px;
117
- /* Override core line-height. To be reviewed. */
118
- line-height: normal;
109
+ font-size: 13px !important;
119
110
  }
120
111
  }
121
112
  .blocks-shortcode__textarea:focus {
122
- border-color: var(--wp-admin-theme-color);
123
- box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
124
- outline: 2px solid transparent;
125
- }
126
- .blocks-shortcode__textarea::-webkit-input-placeholder {
127
- color: rgba(30, 30, 30, 0.62);
128
- }
129
- .blocks-shortcode__textarea::-moz-placeholder {
130
- opacity: 1;
131
- color: rgba(30, 30, 30, 0.62);
132
- }
133
- .blocks-shortcode__textarea:-ms-input-placeholder {
134
- color: rgba(30, 30, 30, 0.62);
113
+ border-color: var(--wp-admin-theme-color) !important;
114
+ box-shadow: 0 0 0 1px var(--wp-admin-theme-color) !important;
115
+ outline: 2px solid transparent !important;
135
116
  }
@@ -98,11 +98,13 @@
98
98
  }
99
99
 
100
100
  .wp-block-spacer.is-hovered .block-library-spacer__resize-container,
101
- .block-library-spacer__resize-container.has-show-handle {
101
+ .block-library-spacer__resize-container.has-show-handle,
102
+ .wp-block-spacer.is-selected.custom-sizes-disabled {
102
103
  background: rgba(0, 0, 0, 0.1);
103
104
  }
104
105
  .is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,
105
- .is-dark-theme .block-library-spacer__resize-container.has-show-handle {
106
+ .is-dark-theme .block-library-spacer__resize-container.has-show-handle,
107
+ .is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled {
106
108
  background: rgba(255, 255, 255, 0.15);
107
109
  }
108
110
 
@@ -98,11 +98,13 @@
98
98
  }
99
99
 
100
100
  .wp-block-spacer.is-hovered .block-library-spacer__resize-container,
101
- .block-library-spacer__resize-container.has-show-handle {
101
+ .block-library-spacer__resize-container.has-show-handle,
102
+ .wp-block-spacer.is-selected.custom-sizes-disabled {
102
103
  background: rgba(0, 0, 0, 0.1);
103
104
  }
104
105
  .is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,
105
- .is-dark-theme .block-library-spacer__resize-container.has-show-handle {
106
+ .is-dark-theme .block-library-spacer__resize-container.has-show-handle,
107
+ .is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled {
106
108
  background: rgba(255, 255, 255, 0.15);
107
109
  }
108
110
 
@@ -353,7 +353,6 @@
353
353
 
354
354
  .wp-block-columns {
355
355
  display: flex;
356
- margin-bottom: 1.75em;
357
356
  box-sizing: border-box;
358
357
  flex-wrap: wrap !important;
359
358
  align-items: initial !important;
@@ -400,6 +399,10 @@
400
399
  flex-grow: 0;
401
400
  }
402
401
 
402
+ :where(.wp-block-columns) {
403
+ margin-bottom: 1.75em;
404
+ }
405
+
403
406
  :where(.wp-block-columns.has-background) {
404
407
  padding: 1.25em 2.375em;
405
408
  }
@@ -606,6 +609,7 @@
606
609
  justify-content: center;
607
610
  align-items: center;
608
611
  padding: 1em;
612
+ overflow: hidden;
609
613
  box-sizing: border-box; direction: ltr;
610
614
  /**
611
615
  * Set a default background color for has-background-dim _unless_ it includes another
@@ -821,7 +825,7 @@
821
825
  .wp-block-cover-image .wp-block-cover__inner-container,
822
826
  .wp-block-cover .wp-block-cover__inner-container {
823
827
  width: 100%;
824
- z-index: 1;
828
+ z-index: 32;
825
829
  color: inherit; direction: rtl;
826
830
  }
827
831
  .wp-block-cover-image p:not(.has-text-color),
@@ -920,7 +924,7 @@ video.wp-block-cover__video-background.has-parallax {
920
924
  background-size: cover;
921
925
  background-repeat: no-repeat;
922
926
  }
923
- @supports (-webkit-overflow-scrolling: touch) {
927
+ @supports (-webkit-touch-callout: inherit) {
924
928
  .wp-block-cover-image.has-parallax,
925
929
  .wp-block-cover.has-parallax,
926
930
  .wp-block-cover__image-background.has-parallax,
@@ -1015,6 +1019,14 @@ section.wp-block-cover-image > h2,
1015
1019
  color: #000;
1016
1020
  }
1017
1021
 
1022
+ .wp-block-details {
1023
+ overflow: hidden;
1024
+ }
1025
+
1026
+ .wp-block-details-summary {
1027
+ cursor: pointer;
1028
+ }
1029
+
1018
1030
  .wp-block[data-align=left] > [data-type="core/embed"],
1019
1031
  .wp-block[data-align=right] > [data-type="core/embed"],
1020
1032
  .wp-block-embed.alignleft,
@@ -1086,9 +1098,6 @@ section.wp-block-cover-image > h2,
1086
1098
  padding-top: 200%;
1087
1099
  }
1088
1100
 
1089
- .wp-block-file {
1090
- margin-bottom: 1.5em;
1091
- }
1092
1101
  .wp-block-file:not(.wp-element-button) {
1093
1102
  font-size: 0.8em;
1094
1103
  }
@@ -1102,6 +1111,10 @@ section.wp-block-cover-image > h2,
1102
1111
  margin-right: 0.75em;
1103
1112
  }
1104
1113
 
1114
+ :where(.wp-block-file) {
1115
+ margin-bottom: 1.5em;
1116
+ }
1117
+
1105
1118
  .wp-block-file__embed {
1106
1119
  margin-bottom: 1em;
1107
1120
  }
@@ -2495,7 +2508,7 @@ p.has-background {
2495
2508
  box-sizing: border-box;
2496
2509
  }
2497
2510
 
2498
- .wp-block-post-excerpt {
2511
+ :where(.wp-block-post-excerpt) {
2499
2512
  margin-top: var(--wp--style--block-gap);
2500
2513
  margin-bottom: var(--wp--style--block-gap);
2501
2514
  }
@@ -2621,7 +2634,6 @@ p.has-background {
2621
2634
  }
2622
2635
 
2623
2636
  .wp-block-pullquote {
2624
- margin: 0 0 1em 0;
2625
2637
  padding: 3em 0;
2626
2638
  text-align: center;
2627
2639
  overflow-wrap: break-word;
@@ -2643,6 +2655,10 @@ p.has-background {
2643
2655
  color: inherit;
2644
2656
  }
2645
2657
 
2658
+ :where(.wp-block-pullquote) {
2659
+ margin: 0 0 1em 0;
2660
+ }
2661
+
2646
2662
  .wp-block-pullquote.has-text-align-left blockquote {
2647
2663
  text-align: right;
2648
2664
  }
@@ -3748,7 +3764,7 @@ html :where(img[class*="wp-image-"]) {
3748
3764
  /**
3749
3765
  * Reset user agent styles for figure element margins.
3750
3766
  */
3751
- figure {
3767
+ :where(figure) {
3752
3768
  margin: 0 0 1em 0;
3753
3769
  }
3754
3770