@wordpress/edit-site 3.0.27 → 4.0.1-next.f435e9e01b.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 (240) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE.md +1 -1
  3. package/README.md +7 -1
  4. package/build/components/add-new-template/new-template-part.js +1 -4
  5. package/build/components/add-new-template/new-template-part.js.map +1 -1
  6. package/build/components/block-editor/resizable-editor.js +1 -0
  7. package/build/components/block-editor/resizable-editor.js.map +1 -1
  8. package/build/components/code-editor/code-editor-text-area.js +95 -0
  9. package/build/components/code-editor/code-editor-text-area.js.map +1 -0
  10. package/build/components/code-editor/index.js +79 -0
  11. package/build/components/code-editor/index.js.map +1 -0
  12. package/build/components/editor/index.js +28 -8
  13. package/build/components/editor/index.js.map +1 -1
  14. package/build/components/error-boundary/index.js +27 -11
  15. package/build/components/error-boundary/index.js.map +1 -1
  16. package/build/components/global-styles/border-panel.js +81 -22
  17. package/build/components/global-styles/border-panel.js.map +1 -1
  18. package/build/components/global-styles/context-menu.js +4 -6
  19. package/build/components/global-styles/context-menu.js.map +1 -1
  20. package/build/components/global-styles/global-styles-provider.js +1 -0
  21. package/build/components/global-styles/global-styles-provider.js.map +1 -1
  22. package/build/components/global-styles/header.js +2 -7
  23. package/build/components/global-styles/header.js.map +1 -1
  24. package/build/components/global-styles/navigation-button.js +35 -12
  25. package/build/components/global-styles/navigation-button.js.map +1 -1
  26. package/build/components/global-styles/palette.js +3 -3
  27. package/build/components/global-styles/palette.js.map +1 -1
  28. package/build/components/global-styles/preview.js +46 -15
  29. package/build/components/global-styles/preview.js.map +1 -1
  30. package/build/components/global-styles/screen-background-color.js +1 -3
  31. package/build/components/global-styles/screen-background-color.js.map +1 -1
  32. package/build/components/global-styles/screen-block-list.js +2 -3
  33. package/build/components/global-styles/screen-block-list.js.map +1 -1
  34. package/build/components/global-styles/screen-block.js +0 -1
  35. package/build/components/global-styles/screen-block.js.map +1 -1
  36. package/build/components/global-styles/screen-color-palette.js +0 -2
  37. package/build/components/global-styles/screen-color-palette.js.map +1 -1
  38. package/build/components/global-styles/screen-colors.js +5 -6
  39. package/build/components/global-styles/screen-colors.js.map +1 -1
  40. package/build/components/global-styles/screen-layout.js +0 -2
  41. package/build/components/global-styles/screen-layout.js.map +1 -1
  42. package/build/components/global-styles/screen-link-color.js +0 -2
  43. package/build/components/global-styles/screen-link-color.js.map +1 -1
  44. package/build/components/global-styles/screen-root.js +22 -3
  45. package/build/components/global-styles/screen-root.js.map +1 -1
  46. package/build/components/global-styles/screen-style-variations.js +138 -0
  47. package/build/components/global-styles/screen-style-variations.js.map +1 -0
  48. package/build/components/global-styles/screen-text-color.js +0 -2
  49. package/build/components/global-styles/screen-text-color.js.map +1 -1
  50. package/build/components/global-styles/screen-typography-element.js +0 -2
  51. package/build/components/global-styles/screen-typography-element.js.map +1 -1
  52. package/build/components/global-styles/screen-typography.js +2 -3
  53. package/build/components/global-styles/screen-typography.js.map +1 -1
  54. package/build/components/global-styles/ui.js +31 -14
  55. package/build/components/global-styles/ui.js.map +1 -1
  56. package/build/components/header/index.js +12 -4
  57. package/build/components/header/index.js.map +1 -1
  58. package/build/components/header/mode-switcher/index.js +78 -0
  59. package/build/components/header/mode-switcher/index.js.map +1 -0
  60. package/build/components/header/more-menu/copy-content-menu-item.js +74 -0
  61. package/build/components/header/more-menu/copy-content-menu-item.js.map +1 -0
  62. package/build/components/header/more-menu/index.js +6 -2
  63. package/build/components/header/more-menu/index.js.map +1 -1
  64. package/build/components/keyboard-shortcuts/index.js +17 -1
  65. package/build/components/keyboard-shortcuts/index.js.map +1 -1
  66. package/build/components/list/actions/index.js +5 -4
  67. package/build/components/list/actions/index.js.map +1 -1
  68. package/build/components/list/actions/rename-menu-item.js +3 -3
  69. package/build/components/list/actions/rename-menu-item.js.map +1 -1
  70. package/build/components/routes/redirect-to-homepage.js +3 -22
  71. package/build/components/routes/redirect-to-homepage.js.map +1 -1
  72. package/build/components/secondary-sidebar/inserter-sidebar.js +13 -3
  73. package/build/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
  74. package/build/components/secondary-sidebar/list-view-sidebar.js +7 -5
  75. package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  76. package/build/components/sidebar/default-sidebar.js +4 -2
  77. package/build/components/sidebar/default-sidebar.js.map +1 -1
  78. package/build/components/sidebar/global-styles-sidebar.js +1 -0
  79. package/build/components/sidebar/global-styles-sidebar.js.map +1 -1
  80. package/build/components/template-part-converter/convert-to-template-part.js +1 -4
  81. package/build/components/template-part-converter/convert-to-template-part.js.map +1 -1
  82. package/build/index.js +2 -16
  83. package/build/index.js.map +1 -1
  84. package/build/store/actions.js +29 -9
  85. package/build/store/actions.js.map +1 -1
  86. package/build/store/defaults.js +2 -1
  87. package/build/store/defaults.js.map +1 -1
  88. package/build/store/reducer.js +11 -0
  89. package/build/store/reducer.js.map +1 -1
  90. package/build/store/selectors.js +13 -0
  91. package/build/store/selectors.js.map +1 -1
  92. package/build-module/components/add-new-template/new-template-part.js +1 -4
  93. package/build-module/components/add-new-template/new-template-part.js.map +1 -1
  94. package/build-module/components/block-editor/resizable-editor.js +1 -0
  95. package/build-module/components/block-editor/resizable-editor.js.map +1 -1
  96. package/build-module/components/code-editor/code-editor-text-area.js +83 -0
  97. package/build-module/components/code-editor/code-editor-text-area.js.map +1 -0
  98. package/build-module/components/code-editor/index.js +62 -0
  99. package/build-module/components/code-editor/index.js.map +1 -0
  100. package/build-module/components/editor/index.js +27 -9
  101. package/build-module/components/editor/index.js.map +1 -1
  102. package/build-module/components/error-boundary/index.js +26 -9
  103. package/build-module/components/error-boundary/index.js.map +1 -1
  104. package/build-module/components/global-styles/border-panel.js +82 -23
  105. package/build-module/components/global-styles/border-panel.js.map +1 -1
  106. package/build-module/components/global-styles/context-menu.js +1 -1
  107. package/build-module/components/global-styles/context-menu.js.map +1 -1
  108. package/build-module/components/global-styles/global-styles-provider.js +1 -1
  109. package/build-module/components/global-styles/global-styles-provider.js.map +1 -1
  110. package/build-module/components/global-styles/header.js +2 -5
  111. package/build-module/components/global-styles/header.js.map +1 -1
  112. package/build-module/components/global-styles/navigation-button.js +35 -10
  113. package/build-module/components/global-styles/navigation-button.js.map +1 -1
  114. package/build-module/components/global-styles/palette.js +2 -2
  115. package/build-module/components/global-styles/palette.js.map +1 -1
  116. package/build-module/components/global-styles/preview.js +45 -15
  117. package/build-module/components/global-styles/preview.js.map +1 -1
  118. package/build-module/components/global-styles/screen-background-color.js +1 -3
  119. package/build-module/components/global-styles/screen-background-color.js.map +1 -1
  120. package/build-module/components/global-styles/screen-block-list.js +1 -2
  121. package/build-module/components/global-styles/screen-block-list.js.map +1 -1
  122. package/build-module/components/global-styles/screen-block.js +0 -1
  123. package/build-module/components/global-styles/screen-block.js.map +1 -1
  124. package/build-module/components/global-styles/screen-color-palette.js +0 -2
  125. package/build-module/components/global-styles/screen-color-palette.js.map +1 -1
  126. package/build-module/components/global-styles/screen-colors.js +2 -3
  127. package/build-module/components/global-styles/screen-colors.js.map +1 -1
  128. package/build-module/components/global-styles/screen-layout.js +0 -2
  129. package/build-module/components/global-styles/screen-layout.js.map +1 -1
  130. package/build-module/components/global-styles/screen-link-color.js +0 -2
  131. package/build-module/components/global-styles/screen-link-color.js.map +1 -1
  132. package/build-module/components/global-styles/screen-root.js +21 -4
  133. package/build-module/components/global-styles/screen-root.js.map +1 -1
  134. package/build-module/components/global-styles/screen-style-variations.js +119 -0
  135. package/build-module/components/global-styles/screen-style-variations.js.map +1 -0
  136. package/build-module/components/global-styles/screen-text-color.js +0 -2
  137. package/build-module/components/global-styles/screen-text-color.js.map +1 -1
  138. package/build-module/components/global-styles/screen-typography-element.js +0 -2
  139. package/build-module/components/global-styles/screen-typography-element.js.map +1 -1
  140. package/build-module/components/global-styles/screen-typography.js +1 -2
  141. package/build-module/components/global-styles/screen-typography.js.map +1 -1
  142. package/build-module/components/global-styles/ui.js +29 -14
  143. package/build-module/components/global-styles/ui.js.map +1 -1
  144. package/build-module/components/header/index.js +13 -5
  145. package/build-module/components/header/index.js.map +1 -1
  146. package/build-module/components/header/mode-switcher/index.js +65 -0
  147. package/build-module/components/header/mode-switcher/index.js.map +1 -0
  148. package/build-module/components/header/more-menu/copy-content-menu-item.js +59 -0
  149. package/build-module/components/header/more-menu/copy-content-menu-item.js.map +1 -0
  150. package/build-module/components/header/more-menu/index.js +4 -2
  151. package/build-module/components/header/more-menu/index.js.map +1 -1
  152. package/build-module/components/keyboard-shortcuts/index.js +17 -1
  153. package/build-module/components/keyboard-shortcuts/index.js.map +1 -1
  154. package/build-module/components/list/actions/index.js +5 -4
  155. package/build-module/components/list/actions/index.js.map +1 -1
  156. package/build-module/components/list/actions/rename-menu-item.js +3 -3
  157. package/build-module/components/list/actions/rename-menu-item.js.map +1 -1
  158. package/build-module/components/routes/redirect-to-homepage.js +3 -22
  159. package/build-module/components/routes/redirect-to-homepage.js.map +1 -1
  160. package/build-module/components/secondary-sidebar/inserter-sidebar.js +14 -4
  161. package/build-module/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
  162. package/build-module/components/secondary-sidebar/list-view-sidebar.js +7 -5
  163. package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  164. package/build-module/components/sidebar/default-sidebar.js +4 -2
  165. package/build-module/components/sidebar/default-sidebar.js.map +1 -1
  166. package/build-module/components/sidebar/global-styles-sidebar.js +1 -0
  167. package/build-module/components/sidebar/global-styles-sidebar.js.map +1 -1
  168. package/build-module/components/template-part-converter/convert-to-template-part.js +1 -4
  169. package/build-module/components/template-part-converter/convert-to-template-part.js.map +1 -1
  170. package/build-module/index.js +2 -14
  171. package/build-module/index.js.map +1 -1
  172. package/build-module/store/actions.js +25 -9
  173. package/build-module/store/actions.js.map +1 -1
  174. package/build-module/store/defaults.js +2 -1
  175. package/build-module/store/defaults.js.map +1 -1
  176. package/build-module/store/reducer.js +11 -0
  177. package/build-module/store/reducer.js.map +1 -1
  178. package/build-module/store/selectors.js +11 -0
  179. package/build-module/store/selectors.js.map +1 -1
  180. package/build-style/style-rtl.css +148 -68
  181. package/build-style/style.css +148 -68
  182. package/package.json +28 -30
  183. package/src/components/add-new-template/new-template-part.js +1 -7
  184. package/src/components/block-editor/resizable-editor.js +1 -0
  185. package/src/components/block-editor/style.scss +10 -18
  186. package/src/components/code-editor/code-editor-text-area.js +79 -0
  187. package/src/components/code-editor/index.js +65 -0
  188. package/src/components/code-editor/style.scss +100 -0
  189. package/src/components/editor/index.js +41 -10
  190. package/src/components/error-boundary/index.js +28 -11
  191. package/src/components/global-styles/border-panel.js +106 -42
  192. package/src/components/global-styles/context-menu.js +1 -1
  193. package/src/components/global-styles/global-styles-provider.js +1 -2
  194. package/src/components/global-styles/header.js +3 -5
  195. package/src/components/global-styles/navigation-button.js +31 -10
  196. package/src/components/global-styles/palette.js +6 -2
  197. package/src/components/global-styles/preview.js +46 -18
  198. package/src/components/global-styles/screen-background-color.js +1 -3
  199. package/src/components/global-styles/screen-block-list.js +1 -2
  200. package/src/components/global-styles/screen-block.js +1 -1
  201. package/src/components/global-styles/screen-color-palette.js +0 -2
  202. package/src/components/global-styles/screen-colors.js +2 -3
  203. package/src/components/global-styles/screen-layout.js +1 -5
  204. package/src/components/global-styles/screen-link-color.js +0 -2
  205. package/src/components/global-styles/screen-root.js +32 -3
  206. package/src/components/global-styles/screen-style-variations.js +130 -0
  207. package/src/components/global-styles/screen-text-color.js +0 -2
  208. package/src/components/global-styles/screen-typography-element.js +0 -4
  209. package/src/components/global-styles/screen-typography.js +2 -3
  210. package/src/components/global-styles/style.scss +24 -25
  211. package/src/components/global-styles/ui.js +55 -25
  212. package/src/components/header/document-actions/style.scss +1 -9
  213. package/src/components/header/index.js +10 -2
  214. package/src/components/header/mode-switcher/index.js +67 -0
  215. package/src/components/header/more-menu/copy-content-menu-item.js +53 -0
  216. package/src/components/header/more-menu/index.js +4 -0
  217. package/src/components/header/style.scss +2 -1
  218. package/src/components/keyboard-shortcuts/index.js +17 -1
  219. package/src/components/list/actions/index.js +5 -4
  220. package/src/components/list/actions/rename-menu-item.js +3 -3
  221. package/src/components/routes/redirect-to-homepage.js +4 -27
  222. package/src/components/secondary-sidebar/inserter-sidebar.js +14 -3
  223. package/src/components/secondary-sidebar/list-view-sidebar.js +12 -5
  224. package/src/components/secondary-sidebar/style.scss +0 -4
  225. package/src/components/sidebar/default-sidebar.js +2 -0
  226. package/src/components/sidebar/global-styles-sidebar.js +1 -0
  227. package/src/components/sidebar/style.scss +21 -14
  228. package/src/components/template-part-converter/convert-to-template-part.js +1 -6
  229. package/src/index.js +2 -18
  230. package/src/store/actions.js +25 -10
  231. package/src/store/defaults.js +1 -0
  232. package/src/store/reducer.js +6 -0
  233. package/src/store/selectors.js +11 -0
  234. package/src/store/test/actions.js +2 -2
  235. package/src/style.scss +1 -0
  236. package/build/components/error-boundary/warning.js +0 -70
  237. package/build/components/error-boundary/warning.js.map +0 -1
  238. package/build-module/components/error-boundary/warning.js +0 -60
  239. package/build-module/components/error-boundary/warning.js.map +0 -1
  240. package/src/components/error-boundary/warning.js +0 -59
@@ -475,10 +475,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
475
475
  overflow: auto;
476
476
  }
477
477
 
478
- .edit-site-visual-editor__editor-canvas {
479
- border-radius: 2px 2px 0 0;
480
- }
481
-
482
478
  .edit-site-visual-editor__back-button {
483
479
  position: absolute;
484
480
  top: 8px;
@@ -495,47 +491,138 @@ body.is-fullscreen-mode .interface-interface-skeleton {
495
491
  bottom: 0;
496
492
  padding: 0;
497
493
  margin: auto 0;
498
- width: 8px;
494
+ width: 4px;
499
495
  height: 100px;
500
496
  -webkit-appearance: none;
501
497
  appearance: none;
502
- cursor: grab;
498
+ cursor: ew-resize;
503
499
  outline: none;
504
- background: #757575;
505
- border-radius: 4px;
500
+ background: #949494;
501
+ border-radius: 2px;
506
502
  border: 0;
507
503
  }
508
504
  .resizable-editor__drag-handle.is-left {
509
- right: -28px;
505
+ right: -16px;
510
506
  }
511
507
  .resizable-editor__drag-handle.is-right {
512
- left: -28px;
513
- }
514
- .resizable-editor__drag-handle:hover {
515
- background: #949494;
508
+ left: -16px;
516
509
  }
517
- .resizable-editor__drag-handle:active {
518
- cursor: grabbing;
519
- background: #949494;
510
+ .resizable-editor__drag-handle:hover, .resizable-editor__drag-handle:active {
511
+ background: #ccc;
520
512
  }
521
513
  .resizable-editor__drag-handle:focus {
522
514
  box-shadow: 0 0 0 1px #2f2f2f, 0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color);
523
515
  }
524
516
 
517
+ .edit-site-code-editor {
518
+ position: relative;
519
+ width: 100%;
520
+ background-color: #fff;
521
+ flex-grow: 1;
522
+ }
523
+ .edit-site-code-editor__body {
524
+ width: 100%;
525
+ padding: 0 12px 12px 12px;
526
+ max-width: 1080px;
527
+ margin-right: auto;
528
+ margin-left: auto;
529
+ }
530
+ @media (min-width: 960px) {
531
+ .edit-site-code-editor__body {
532
+ padding: 16px 24px 96px 24px;
533
+ padding: 0 24px 24px 24px;
534
+ }
535
+ }
536
+ .edit-site-code-editor__toolbar {
537
+ position: sticky;
538
+ z-index: 1;
539
+ top: 0;
540
+ right: 0;
541
+ left: 0;
542
+ display: flex;
543
+ background: rgba(255, 255, 255, 0.8);
544
+ padding: 4px 12px;
545
+ }
546
+ @media (min-width: 600px) {
547
+ .edit-site-code-editor__toolbar {
548
+ padding: 12px;
549
+ }
550
+ }
551
+ @media (min-width: 960px) {
552
+ .edit-site-code-editor__toolbar {
553
+ padding: 12px 24px;
554
+ }
555
+ }
556
+ .edit-site-code-editor__toolbar h2 {
557
+ line-height: 36px;
558
+ margin: 0 0 0 auto;
559
+ font-size: 13px;
560
+ color: #1e1e1e;
561
+ }
562
+ .edit-site-code-editor__toolbar .components-button svg {
563
+ order: 1;
564
+ }
565
+
566
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
567
+ border: 1px solid #949494;
568
+ border-radius: 0;
569
+ display: block;
570
+ margin: 0;
571
+ width: 100%;
572
+ box-shadow: none;
573
+ resize: none;
574
+ overflow: hidden;
575
+ font-family: Menlo, Consolas, monaco, monospace;
576
+ line-height: 2.4;
577
+ min-height: 200px;
578
+ transition: border 0.1s ease-out, box-shadow 0.1s linear;
579
+ padding: 16px;
580
+ /* Fonts smaller than 16px causes mobile safari to zoom. */
581
+ font-size: 16px !important;
582
+ }
583
+ @media (prefers-reduced-motion: reduce) {
584
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
585
+ transition-duration: 0s;
586
+ transition-delay: 0s;
587
+ }
588
+ }
589
+ @media (min-width: 600px) {
590
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
591
+ padding: 24px;
592
+ }
593
+ }
594
+ @media (min-width: 600px) {
595
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
596
+ font-size: 15px !important;
597
+ }
598
+ }
599
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus {
600
+ border-color: var(--wp-admin-theme-color);
601
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
602
+ position: relative;
603
+ }
604
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder {
605
+ color: rgba(30, 30, 30, 0.62);
606
+ }
607
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder {
608
+ color: rgba(30, 30, 30, 0.62);
609
+ opacity: 1;
610
+ }
611
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder {
612
+ color: rgba(30, 30, 30, 0.62);
613
+ }
614
+
525
615
  .edit-site-global-styles-preview {
526
616
  display: flex;
527
617
  align-items: center;
528
618
  justify-content: center;
529
- min-height: 152px;
530
619
  line-height: 1;
620
+ cursor: pointer;
531
621
  }
532
- .edit-site-global-styles-preview .component-color-indicator {
533
- border-radius: 50%;
534
- border: 0;
535
- height: 36px;
536
- width: 36px;
537
- margin-right: 0;
538
- padding: 0;
622
+
623
+ .edit-site-global-styles-preview__iframe {
624
+ max-width: 100%;
625
+ display: block;
539
626
  }
540
627
 
541
628
  .edit-site-typography-panel__preview {
@@ -566,13 +653,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
566
653
  margin: 16px;
567
654
  }
568
655
  .edit-site-global-styles-screen-colors .component-color-indicator {
569
- margin-right: 0;
570
- display: block;
571
- border-radius: 50%;
572
- height: 24px;
573
- width: 24px;
574
- padding: 0;
575
- border: 1px solid #ddd;
576
656
  background: linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
577
657
  }
578
658
 
@@ -596,20 +676,28 @@ body.is-fullscreen-mode .interface-interface-skeleton {
596
676
  min-height: 32px;
597
677
  }
598
678
 
599
- h2.edit-site-global-styles-gradient-palette-panel__duotone-heading.components-heading {
600
- text-transform: uppercase;
601
- line-height: 24px;
602
- font-weight: 500;
603
- font-size: 11px;
604
- margin-bottom: 8px;
605
- }
606
-
607
679
  .edit-site-screen-text-color__control,
608
680
  .edit-site-screen-link-color__control,
609
681
  .edit-site-screen-background-color__control {
610
682
  padding: 16px;
611
683
  }
612
684
 
685
+ .edit-site-global-styles-variations_item {
686
+ box-sizing: border-box;
687
+ padding: 2px;
688
+ border-radius: 2px;
689
+ border: #e0e0e0 1px solid;
690
+ }
691
+ .edit-site-global-styles-variations_item.is-active {
692
+ border: #1e1e1e 1px solid;
693
+ }
694
+ .edit-site-global-styles-variations_item:hover {
695
+ border: var(--wp-admin-theme-color) 1px solid;
696
+ }
697
+ .edit-site-global-styles-variations_item:focus {
698
+ border: var(--wp-admin-theme-color) 1px solid;
699
+ }
700
+
613
701
  .edit-site-header {
614
702
  align-items: center;
615
703
  background-color: #fff;
@@ -638,6 +726,8 @@ body.is-fullscreen-mode .edit-site-header {
638
726
  display: flex;
639
727
  align-items: center;
640
728
  height: 100%;
729
+ flex-grow: 1;
730
+ justify-content: center;
641
731
  min-width: 0;
642
732
  }
643
733
  .edit-site-header .edit-site-header_end {
@@ -715,7 +805,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
715
805
  .edit-site-header__actions {
716
806
  display: inline-flex;
717
807
  align-items: center;
718
- flex-wrap: wrap;
719
808
  padding-left: 4px;
720
809
  }
721
810
  .edit-site-header__actions .interface-pinned-items {
@@ -770,6 +859,7 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
770
859
  display: flex;
771
860
  flex-direction: column;
772
861
  justify-content: center;
862
+ padding: 0 8px;
773
863
  height: 100%;
774
864
  min-width: 0;
775
865
  }
@@ -796,17 +886,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
796
886
  white-space: nowrap;
797
887
  overflow: hidden;
798
888
  text-overflow: ellipsis;
799
- max-width: 120px;
800
- }
801
- @media (min-width: 782px) {
802
- .edit-site-document-actions .edit-site-document-actions__title {
803
- max-width: 75px;
804
- }
805
- }
806
- @media (min-width: 1080px) {
807
- .edit-site-document-actions .edit-site-document-actions__title {
808
- max-width: 180px;
809
- }
810
889
  }
811
890
  .edit-site-document-actions .edit-site-document-actions__secondary-item {
812
891
  white-space: nowrap;
@@ -1301,6 +1380,20 @@ body.is-fullscreen-mode .edit-site-list-header {
1301
1380
  margin: 0;
1302
1381
  }
1303
1382
 
1383
+ .edit-site-global-styles-sidebar {
1384
+ display: flex;
1385
+ flex-direction: column;
1386
+ height: 100%;
1387
+ }
1388
+ .edit-site-global-styles-sidebar__panel, .edit-site-global-styles-sidebar__navigator-provider {
1389
+ display: flex;
1390
+ flex-direction: column;
1391
+ flex: 1;
1392
+ }
1393
+ .edit-site-global-styles-sidebar__navigator-screen {
1394
+ flex: 1;
1395
+ }
1396
+
1304
1397
  .edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon {
1305
1398
  margin-right: 0;
1306
1399
  }
@@ -1309,18 +1402,6 @@ body.is-fullscreen-mode .edit-site-list-header {
1309
1402
  margin-right: auto;
1310
1403
  }
1311
1404
 
1312
- .edit-site-global-styles-sidebar__border-controls-row {
1313
- display: flex;
1314
- justify-content: space-between;
1315
- margin-bottom: 12px;
1316
- }
1317
- .edit-site-global-styles-sidebar__border-controls-row > * {
1318
- width: calc(50% - 8px);
1319
- }
1320
- .edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons {
1321
- margin-bottom: 0;
1322
- }
1323
-
1324
1405
  .edit-site-global-styles-sidebar .components-navigation__menu-title-heading {
1325
1406
  font-size: 15.6px;
1326
1407
  font-weight: 500;
@@ -1335,6 +1416,10 @@ body.is-fullscreen-mode .edit-site-list-header {
1335
1416
  border: 0;
1336
1417
  }
1337
1418
 
1419
+ .edit-site-global-styles-sidebar .components-tools-panel-item.single-column {
1420
+ grid-column: span 1;
1421
+ }
1422
+
1338
1423
  .edit-site-global-styles-sidebar__blocks-group {
1339
1424
  padding-top: 24px;
1340
1425
  border-top: 1px solid #e0e0e0;
@@ -1706,11 +1791,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
1706
1791
  display: flex;
1707
1792
  justify-content: flex-end;
1708
1793
  }
1709
- @media (min-width: 782px) {
1710
- .edit-site-editor__inserter-panel-header {
1711
- display: none;
1712
- }
1713
- }
1714
1794
 
1715
1795
  .edit-site-editor__inserter-panel-content,
1716
1796
  .edit-site-editor__list-view-panel-content {
@@ -475,10 +475,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
475
475
  overflow: auto;
476
476
  }
477
477
 
478
- .edit-site-visual-editor__editor-canvas {
479
- border-radius: 2px 2px 0 0;
480
- }
481
-
482
478
  .edit-site-visual-editor__back-button {
483
479
  position: absolute;
484
480
  top: 8px;
@@ -495,47 +491,138 @@ body.is-fullscreen-mode .interface-interface-skeleton {
495
491
  bottom: 0;
496
492
  padding: 0;
497
493
  margin: auto 0;
498
- width: 8px;
494
+ width: 4px;
499
495
  height: 100px;
500
496
  -webkit-appearance: none;
501
497
  appearance: none;
502
- cursor: grab;
498
+ cursor: ew-resize;
503
499
  outline: none;
504
- background: #757575;
505
- border-radius: 4px;
500
+ background: #949494;
501
+ border-radius: 2px;
506
502
  border: 0;
507
503
  }
508
504
  .resizable-editor__drag-handle.is-left {
509
- left: -28px;
505
+ left: -16px;
510
506
  }
511
507
  .resizable-editor__drag-handle.is-right {
512
- right: -28px;
513
- }
514
- .resizable-editor__drag-handle:hover {
515
- background: #949494;
508
+ right: -16px;
516
509
  }
517
- .resizable-editor__drag-handle:active {
518
- cursor: grabbing;
519
- background: #949494;
510
+ .resizable-editor__drag-handle:hover, .resizable-editor__drag-handle:active {
511
+ background: #ccc;
520
512
  }
521
513
  .resizable-editor__drag-handle:focus {
522
514
  box-shadow: 0 0 0 1px #2f2f2f, 0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color);
523
515
  }
524
516
 
517
+ .edit-site-code-editor {
518
+ position: relative;
519
+ width: 100%;
520
+ background-color: #fff;
521
+ flex-grow: 1;
522
+ }
523
+ .edit-site-code-editor__body {
524
+ width: 100%;
525
+ padding: 0 12px 12px 12px;
526
+ max-width: 1080px;
527
+ margin-left: auto;
528
+ margin-right: auto;
529
+ }
530
+ @media (min-width: 960px) {
531
+ .edit-site-code-editor__body {
532
+ padding: 16px 24px 96px 24px;
533
+ padding: 0 24px 24px 24px;
534
+ }
535
+ }
536
+ .edit-site-code-editor__toolbar {
537
+ position: sticky;
538
+ z-index: 1;
539
+ top: 0;
540
+ left: 0;
541
+ right: 0;
542
+ display: flex;
543
+ background: rgba(255, 255, 255, 0.8);
544
+ padding: 4px 12px;
545
+ }
546
+ @media (min-width: 600px) {
547
+ .edit-site-code-editor__toolbar {
548
+ padding: 12px;
549
+ }
550
+ }
551
+ @media (min-width: 960px) {
552
+ .edit-site-code-editor__toolbar {
553
+ padding: 12px 24px;
554
+ }
555
+ }
556
+ .edit-site-code-editor__toolbar h2 {
557
+ line-height: 36px;
558
+ margin: 0 auto 0 0;
559
+ font-size: 13px;
560
+ color: #1e1e1e;
561
+ }
562
+ .edit-site-code-editor__toolbar .components-button svg {
563
+ order: 1;
564
+ }
565
+
566
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
567
+ border: 1px solid #949494;
568
+ border-radius: 0;
569
+ display: block;
570
+ margin: 0;
571
+ width: 100%;
572
+ box-shadow: none;
573
+ resize: none;
574
+ overflow: hidden;
575
+ font-family: Menlo, Consolas, monaco, monospace;
576
+ line-height: 2.4;
577
+ min-height: 200px;
578
+ transition: border 0.1s ease-out, box-shadow 0.1s linear;
579
+ padding: 16px;
580
+ /* Fonts smaller than 16px causes mobile safari to zoom. */
581
+ font-size: 16px !important;
582
+ }
583
+ @media (prefers-reduced-motion: reduce) {
584
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
585
+ transition-duration: 0s;
586
+ transition-delay: 0s;
587
+ }
588
+ }
589
+ @media (min-width: 600px) {
590
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
591
+ padding: 24px;
592
+ }
593
+ }
594
+ @media (min-width: 600px) {
595
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
596
+ font-size: 15px !important;
597
+ }
598
+ }
599
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus {
600
+ border-color: var(--wp-admin-theme-color);
601
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
602
+ position: relative;
603
+ }
604
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder {
605
+ color: rgba(30, 30, 30, 0.62);
606
+ }
607
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder {
608
+ color: rgba(30, 30, 30, 0.62);
609
+ opacity: 1;
610
+ }
611
+ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder {
612
+ color: rgba(30, 30, 30, 0.62);
613
+ }
614
+
525
615
  .edit-site-global-styles-preview {
526
616
  display: flex;
527
617
  align-items: center;
528
618
  justify-content: center;
529
- min-height: 152px;
530
619
  line-height: 1;
620
+ cursor: pointer;
531
621
  }
532
- .edit-site-global-styles-preview .component-color-indicator {
533
- border-radius: 50%;
534
- border: 0;
535
- height: 36px;
536
- width: 36px;
537
- margin-left: 0;
538
- padding: 0;
622
+
623
+ .edit-site-global-styles-preview__iframe {
624
+ max-width: 100%;
625
+ display: block;
539
626
  }
540
627
 
541
628
  .edit-site-typography-panel__preview {
@@ -566,13 +653,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
566
653
  margin: 16px;
567
654
  }
568
655
  .edit-site-global-styles-screen-colors .component-color-indicator {
569
- margin-left: 0;
570
- display: block;
571
- border-radius: 50%;
572
- height: 24px;
573
- width: 24px;
574
- padding: 0;
575
- border: 1px solid #ddd;
576
656
  background: linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
577
657
  }
578
658
 
@@ -596,20 +676,28 @@ body.is-fullscreen-mode .interface-interface-skeleton {
596
676
  min-height: 32px;
597
677
  }
598
678
 
599
- h2.edit-site-global-styles-gradient-palette-panel__duotone-heading.components-heading {
600
- text-transform: uppercase;
601
- line-height: 24px;
602
- font-weight: 500;
603
- font-size: 11px;
604
- margin-bottom: 8px;
605
- }
606
-
607
679
  .edit-site-screen-text-color__control,
608
680
  .edit-site-screen-link-color__control,
609
681
  .edit-site-screen-background-color__control {
610
682
  padding: 16px;
611
683
  }
612
684
 
685
+ .edit-site-global-styles-variations_item {
686
+ box-sizing: border-box;
687
+ padding: 2px;
688
+ border-radius: 2px;
689
+ border: #e0e0e0 1px solid;
690
+ }
691
+ .edit-site-global-styles-variations_item.is-active {
692
+ border: #1e1e1e 1px solid;
693
+ }
694
+ .edit-site-global-styles-variations_item:hover {
695
+ border: var(--wp-admin-theme-color) 1px solid;
696
+ }
697
+ .edit-site-global-styles-variations_item:focus {
698
+ border: var(--wp-admin-theme-color) 1px solid;
699
+ }
700
+
613
701
  .edit-site-header {
614
702
  align-items: center;
615
703
  background-color: #fff;
@@ -638,6 +726,8 @@ body.is-fullscreen-mode .edit-site-header {
638
726
  display: flex;
639
727
  align-items: center;
640
728
  height: 100%;
729
+ flex-grow: 1;
730
+ justify-content: center;
641
731
  min-width: 0;
642
732
  }
643
733
  .edit-site-header .edit-site-header_end {
@@ -715,7 +805,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
715
805
  .edit-site-header__actions {
716
806
  display: inline-flex;
717
807
  align-items: center;
718
- flex-wrap: wrap;
719
808
  padding-right: 4px;
720
809
  }
721
810
  .edit-site-header__actions .interface-pinned-items {
@@ -770,6 +859,7 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
770
859
  display: flex;
771
860
  flex-direction: column;
772
861
  justify-content: center;
862
+ padding: 0 8px;
773
863
  height: 100%;
774
864
  min-width: 0;
775
865
  }
@@ -796,17 +886,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
796
886
  white-space: nowrap;
797
887
  overflow: hidden;
798
888
  text-overflow: ellipsis;
799
- max-width: 120px;
800
- }
801
- @media (min-width: 782px) {
802
- .edit-site-document-actions .edit-site-document-actions__title {
803
- max-width: 75px;
804
- }
805
- }
806
- @media (min-width: 1080px) {
807
- .edit-site-document-actions .edit-site-document-actions__title {
808
- max-width: 180px;
809
- }
810
889
  }
811
890
  .edit-site-document-actions .edit-site-document-actions__secondary-item {
812
891
  white-space: nowrap;
@@ -1301,6 +1380,20 @@ body.is-fullscreen-mode .edit-site-list-header {
1301
1380
  margin: 0;
1302
1381
  }
1303
1382
 
1383
+ .edit-site-global-styles-sidebar {
1384
+ display: flex;
1385
+ flex-direction: column;
1386
+ height: 100%;
1387
+ }
1388
+ .edit-site-global-styles-sidebar__panel, .edit-site-global-styles-sidebar__navigator-provider {
1389
+ display: flex;
1390
+ flex-direction: column;
1391
+ flex: 1;
1392
+ }
1393
+ .edit-site-global-styles-sidebar__navigator-screen {
1394
+ flex: 1;
1395
+ }
1396
+
1304
1397
  .edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon {
1305
1398
  margin-left: 0;
1306
1399
  }
@@ -1309,18 +1402,6 @@ body.is-fullscreen-mode .edit-site-list-header {
1309
1402
  margin-left: auto;
1310
1403
  }
1311
1404
 
1312
- .edit-site-global-styles-sidebar__border-controls-row {
1313
- display: flex;
1314
- justify-content: space-between;
1315
- margin-bottom: 12px;
1316
- }
1317
- .edit-site-global-styles-sidebar__border-controls-row > * {
1318
- width: calc(50% - 8px);
1319
- }
1320
- .edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons {
1321
- margin-bottom: 0;
1322
- }
1323
-
1324
1405
  .edit-site-global-styles-sidebar .components-navigation__menu-title-heading {
1325
1406
  font-size: 15.6px;
1326
1407
  font-weight: 500;
@@ -1335,6 +1416,10 @@ body.is-fullscreen-mode .edit-site-list-header {
1335
1416
  border: 0;
1336
1417
  }
1337
1418
 
1419
+ .edit-site-global-styles-sidebar .components-tools-panel-item.single-column {
1420
+ grid-column: span 1;
1421
+ }
1422
+
1338
1423
  .edit-site-global-styles-sidebar__blocks-group {
1339
1424
  padding-top: 24px;
1340
1425
  border-top: 1px solid #e0e0e0;
@@ -1706,11 +1791,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
1706
1791
  display: flex;
1707
1792
  justify-content: flex-end;
1708
1793
  }
1709
- @media (min-width: 782px) {
1710
- .edit-site-editor__inserter-panel-header {
1711
- display: none;
1712
- }
1713
- }
1714
1794
 
1715
1795
  .edit-site-editor__inserter-panel-content,
1716
1796
  .edit-site-editor__list-view-panel-content {