@wordpress/edit-site 4.8.0 → 4.11.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 (204) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/components/add-new-template/add-custom-generic-template-modal.js +84 -0
  3. package/build/components/add-new-template/add-custom-generic-template-modal.js.map +1 -0
  4. package/build/components/add-new-template/add-custom-template-modal.js +204 -0
  5. package/build/components/add-new-template/add-custom-template-modal.js.map +1 -0
  6. package/build/components/add-new-template/new-template.js +91 -33
  7. package/build/components/add-new-template/new-template.js.map +1 -1
  8. package/build/components/add-new-template/utils.js +532 -0
  9. package/build/components/add-new-template/utils.js.map +1 -0
  10. package/build/components/block-editor/index.js +1 -3
  11. package/build/components/block-editor/index.js.map +1 -1
  12. package/build/components/code-editor/index.js +17 -4
  13. package/build/components/code-editor/index.js.map +1 -1
  14. package/build/components/editor/index.js +16 -0
  15. package/build/components/editor/index.js.map +1 -1
  16. package/build/components/error-boundary/index.js +6 -0
  17. package/build/components/error-boundary/index.js.map +1 -1
  18. package/build/components/global-styles/context-menu.js +6 -3
  19. package/build/components/global-styles/context-menu.js.map +1 -1
  20. package/build/components/global-styles/dimensions-panel.js +185 -19
  21. package/build/components/global-styles/dimensions-panel.js.map +1 -1
  22. package/build/components/global-styles/global-styles-provider.js +4 -2
  23. package/build/components/global-styles/global-styles-provider.js.map +1 -1
  24. package/build/components/global-styles/hooks.js +11 -2
  25. package/build/components/global-styles/hooks.js.map +1 -1
  26. package/build/components/global-styles/palette.js +2 -1
  27. package/build/components/global-styles/palette.js.map +1 -1
  28. package/build/components/global-styles/screen-block-list.js +4 -1
  29. package/build/components/global-styles/screen-block-list.js.map +1 -1
  30. package/build/components/global-styles/screen-button-color.js +80 -0
  31. package/build/components/global-styles/screen-button-color.js.map +1 -0
  32. package/build/components/global-styles/screen-color-palette.js +13 -17
  33. package/build/components/global-styles/screen-color-palette.js.map +1 -1
  34. package/build/components/global-styles/screen-colors.js +56 -8
  35. package/build/components/global-styles/screen-colors.js.map +1 -1
  36. package/build/components/global-styles/screen-link-color.js +48 -14
  37. package/build/components/global-styles/screen-link-color.js.map +1 -1
  38. package/build/components/global-styles/screen-root.js +4 -2
  39. package/build/components/global-styles/screen-root.js.map +1 -1
  40. package/build/components/global-styles/screen-typography-element.js +4 -0
  41. package/build/components/global-styles/screen-typography-element.js.map +1 -1
  42. package/build/components/global-styles/screen-typography.js +9 -1
  43. package/build/components/global-styles/screen-typography.js.map +1 -1
  44. package/build/components/global-styles/ui.js +11 -0
  45. package/build/components/global-styles/ui.js.map +1 -1
  46. package/build/components/global-styles/use-global-styles-output.js +282 -35
  47. package/build/components/global-styles/use-global-styles-output.js.map +1 -1
  48. package/build/components/global-styles/utils.js +35 -2
  49. package/build/components/global-styles/utils.js.map +1 -1
  50. package/build/components/header/index.js +29 -10
  51. package/build/components/header/index.js.map +1 -1
  52. package/build/components/header/more-menu/site-export.js +4 -1
  53. package/build/components/header/more-menu/site-export.js.map +1 -1
  54. package/build/components/header/undo-redo/redo.js +13 -4
  55. package/build/components/header/undo-redo/redo.js.map +1 -1
  56. package/build/components/header/undo-redo/undo.js +13 -4
  57. package/build/components/header/undo-redo/undo.js.map +1 -1
  58. package/build/components/keyboard-shortcut-help-modal/config.js +17 -0
  59. package/build/components/keyboard-shortcut-help-modal/config.js.map +1 -1
  60. package/build/components/keyboard-shortcut-help-modal/index.js +1 -3
  61. package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  62. package/build/components/sidebar/template-card/index.js +19 -7
  63. package/build/components/sidebar/template-card/index.js.map +1 -1
  64. package/build/components/sidebar/template-card/template-actions.js +64 -0
  65. package/build/components/sidebar/template-card/template-actions.js.map +1 -0
  66. package/build/components/template-details/edit-template-title.js +11 -3
  67. package/build/components/template-details/edit-template-title.js.map +1 -1
  68. package/build/components/template-details/index.js +1 -20
  69. package/build/components/template-details/index.js.map +1 -1
  70. package/build/hooks/index.js +2 -0
  71. package/build/hooks/index.js.map +1 -1
  72. package/build/hooks/template-part-edit.js +86 -0
  73. package/build/hooks/template-part-edit.js.map +1 -0
  74. package/build/store/selectors.js +4 -1
  75. package/build/store/selectors.js.map +1 -1
  76. package/build-module/components/add-new-template/add-custom-generic-template-modal.js +77 -0
  77. package/build-module/components/add-new-template/add-custom-generic-template-modal.js.map +1 -0
  78. package/build-module/components/add-new-template/add-custom-template-modal.js +189 -0
  79. package/build-module/components/add-new-template/add-custom-template-modal.js.map +1 -0
  80. package/build-module/components/add-new-template/new-template.js +90 -34
  81. package/build-module/components/add-new-template/new-template.js.map +1 -1
  82. package/build-module/components/add-new-template/utils.js +503 -0
  83. package/build-module/components/add-new-template/utils.js.map +1 -0
  84. package/build-module/components/block-editor/index.js +1 -2
  85. package/build-module/components/block-editor/index.js.map +1 -1
  86. package/build-module/components/code-editor/index.js +18 -5
  87. package/build-module/components/code-editor/index.js.map +1 -1
  88. package/build-module/components/editor/index.js +16 -0
  89. package/build-module/components/editor/index.js.map +1 -1
  90. package/build-module/components/error-boundary/index.js +5 -0
  91. package/build-module/components/error-boundary/index.js.map +1 -1
  92. package/build-module/components/global-styles/context-menu.js +6 -3
  93. package/build-module/components/global-styles/context-menu.js.map +1 -1
  94. package/build-module/components/global-styles/dimensions-panel.js +185 -20
  95. package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
  96. package/build-module/components/global-styles/global-styles-provider.js +4 -2
  97. package/build-module/components/global-styles/global-styles-provider.js.map +1 -1
  98. package/build-module/components/global-styles/hooks.js +11 -2
  99. package/build-module/components/global-styles/hooks.js.map +1 -1
  100. package/build-module/components/global-styles/palette.js +2 -1
  101. package/build-module/components/global-styles/palette.js.map +1 -1
  102. package/build-module/components/global-styles/screen-block-list.js +4 -1
  103. package/build-module/components/global-styles/screen-block-list.js.map +1 -1
  104. package/build-module/components/global-styles/screen-button-color.js +67 -0
  105. package/build-module/components/global-styles/screen-button-color.js.map +1 -0
  106. package/build-module/components/global-styles/screen-color-palette.js +14 -19
  107. package/build-module/components/global-styles/screen-color-palette.js.map +1 -1
  108. package/build-module/components/global-styles/screen-colors.js +57 -9
  109. package/build-module/components/global-styles/screen-colors.js.map +1 -1
  110. package/build-module/components/global-styles/screen-link-color.js +47 -14
  111. package/build-module/components/global-styles/screen-link-color.js.map +1 -1
  112. package/build-module/components/global-styles/screen-root.js +4 -2
  113. package/build-module/components/global-styles/screen-root.js.map +1 -1
  114. package/build-module/components/global-styles/screen-typography-element.js +4 -0
  115. package/build-module/components/global-styles/screen-typography-element.js.map +1 -1
  116. package/build-module/components/global-styles/screen-typography.js +10 -2
  117. package/build-module/components/global-styles/screen-typography.js.map +1 -1
  118. package/build-module/components/global-styles/ui.js +10 -0
  119. package/build-module/components/global-styles/ui.js.map +1 -1
  120. package/build-module/components/global-styles/use-global-styles-output.js +280 -42
  121. package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
  122. package/build-module/components/global-styles/utils.js +34 -3
  123. package/build-module/components/global-styles/utils.js.map +1 -1
  124. package/build-module/components/header/index.js +31 -11
  125. package/build-module/components/header/index.js.map +1 -1
  126. package/build-module/components/header/more-menu/site-export.js +4 -1
  127. package/build-module/components/header/more-menu/site-export.js.map +1 -1
  128. package/build-module/components/header/undo-redo/redo.js +9 -3
  129. package/build-module/components/header/undo-redo/redo.js.map +1 -1
  130. package/build-module/components/header/undo-redo/undo.js +9 -3
  131. package/build-module/components/header/undo-redo/undo.js.map +1 -1
  132. package/build-module/components/keyboard-shortcut-help-modal/config.js +17 -0
  133. package/build-module/components/keyboard-shortcut-help-modal/config.js.map +1 -1
  134. package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -2
  135. package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  136. package/build-module/components/sidebar/template-card/index.js +18 -7
  137. package/build-module/components/sidebar/template-card/index.js.map +1 -1
  138. package/build-module/components/sidebar/template-card/template-actions.js +49 -0
  139. package/build-module/components/sidebar/template-card/template-actions.js.map +1 -0
  140. package/build-module/components/template-details/edit-template-title.js +12 -3
  141. package/build-module/components/template-details/edit-template-title.js.map +1 -1
  142. package/build-module/components/template-details/index.js +2 -21
  143. package/build-module/components/template-details/index.js.map +1 -1
  144. package/build-module/hooks/index.js +1 -0
  145. package/build-module/hooks/index.js.map +1 -1
  146. package/build-module/hooks/template-part-edit.js +67 -0
  147. package/build-module/hooks/template-part-edit.js.map +1 -0
  148. package/build-module/store/selectors.js +5 -2
  149. package/build-module/store/selectors.js.map +1 -1
  150. package/build-style/style-rtl.css +198 -49
  151. package/build-style/style.css +198 -49
  152. package/package.json +29 -29
  153. package/src/components/add-new-template/add-custom-generic-template-modal.js +97 -0
  154. package/src/components/add-new-template/add-custom-template-modal.js +247 -0
  155. package/src/components/add-new-template/new-template.js +158 -70
  156. package/src/components/add-new-template/style.scss +149 -0
  157. package/src/components/add-new-template/utils.js +538 -0
  158. package/src/components/block-editor/index.js +0 -2
  159. package/src/components/code-editor/index.js +15 -5
  160. package/src/components/editor/index.js +11 -0
  161. package/src/components/error-boundary/index.js +5 -0
  162. package/src/components/global-styles/context-menu.js +3 -0
  163. package/src/components/global-styles/dimensions-panel.js +209 -21
  164. package/src/components/global-styles/global-styles-provider.js +8 -9
  165. package/src/components/global-styles/hooks.js +18 -0
  166. package/src/components/global-styles/palette.js +4 -1
  167. package/src/components/global-styles/screen-block-list.js +10 -1
  168. package/src/components/global-styles/screen-button-color.js +102 -0
  169. package/src/components/global-styles/screen-color-palette.js +25 -27
  170. package/src/components/global-styles/screen-colors.js +58 -7
  171. package/src/components/global-styles/screen-link-color.js +65 -23
  172. package/src/components/global-styles/screen-root.js +8 -2
  173. package/src/components/global-styles/screen-typography-element.js +4 -0
  174. package/src/components/global-styles/screen-typography.js +17 -2
  175. package/src/components/global-styles/style.scss +14 -8
  176. package/src/components/global-styles/test/use-global-styles-output.js +313 -16
  177. package/src/components/global-styles/ui.js +13 -0
  178. package/src/components/global-styles/use-global-styles-output.js +344 -38
  179. package/src/components/global-styles/utils.js +36 -2
  180. package/src/components/header/index.js +42 -17
  181. package/src/components/header/more-menu/site-export.js +3 -0
  182. package/src/components/header/style.scss +58 -8
  183. package/src/components/header/undo-redo/redo.js +6 -1
  184. package/src/components/header/undo-redo/undo.js +6 -1
  185. package/src/components/keyboard-shortcut-help-modal/config.js +12 -0
  186. package/src/components/keyboard-shortcut-help-modal/index.js +1 -2
  187. package/src/components/keyboard-shortcut-help-modal/style.scss +0 -5
  188. package/src/components/list/style.scss +0 -8
  189. package/src/components/sidebar/style.scss +4 -0
  190. package/src/components/sidebar/template-card/index.js +15 -6
  191. package/src/components/sidebar/template-card/style.scss +49 -35
  192. package/src/components/sidebar/template-card/template-actions.js +43 -0
  193. package/src/components/template-details/edit-template-title.js +10 -2
  194. package/src/components/template-details/index.js +4 -21
  195. package/src/components/test/error-boundary.js +38 -0
  196. package/src/hooks/index.js +1 -0
  197. package/src/hooks/template-part-edit.js +82 -0
  198. package/src/store/selectors.js +11 -5
  199. package/src/style.scss +0 -1
  200. package/build/components/edit-template-part-menu-button/index.js +0 -90
  201. package/build/components/edit-template-part-menu-button/index.js.map +0 -1
  202. package/build-module/components/edit-template-part-menu-button/index.js +0 -72
  203. package/build-module/components/edit-template-part-menu-button/index.js.map +0 -1
  204. package/src/components/edit-template-part-menu-button/index.js +0 -82
@@ -468,9 +468,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
468
468
  .interface-preferences-modal .components-modal__content {
469
469
  padding: 0;
470
470
  }
471
- .interface-preferences-modal .components-modal__content::before {
472
- content: none;
473
- }
474
471
  }
475
472
 
476
473
  .interface-preferences__tabs .components-tab-panel__tabs {
@@ -758,18 +755,22 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
758
755
  font-size: 11px !important;
759
756
  }
760
757
 
761
- .edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle {
762
- margin-left: 16px;
763
- margin-right: 16px;
764
- width: unset;
765
- }
766
- .edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle .components-toggle-group-control {
767
- min-height: 32px;
758
+ .edit-site-global-styles-section-title {
759
+ color: #2f2f2f;
760
+ font-weight: 600;
761
+ line-height: 1.2;
762
+ padding: 16px;
763
+ padding-bottom: 0;
764
+ margin: 0;
768
765
  }
769
766
 
770
767
  .edit-site-screen-text-color__control,
771
768
  .edit-site-screen-link-color__control,
772
- .edit-site-screen-background-color__control {
769
+ .edit-site-screen-button-color__control {
770
+ padding: 16px;
771
+ }
772
+
773
+ .edit-site-screen-background-color__control .block-editor-color-gradient-control__tab-panel {
773
774
  padding: 16px;
774
775
  }
775
776
 
@@ -819,9 +820,13 @@ body.is-fullscreen-mode .edit-site-header {
819
820
  transition-delay: 0s;
820
821
  }
821
822
  }
822
- .edit-site-header .edit-site-header_start,
823
+ .edit-site-header .edit-site-header_start {
824
+ display: flex;
825
+ border: none;
826
+ }
823
827
  .edit-site-header .edit-site-header_end {
824
828
  display: flex;
829
+ justify-content: flex-end;
825
830
  }
826
831
  .edit-site-header .edit-site-header_center {
827
832
  display: flex;
@@ -831,9 +836,6 @@ body.is-fullscreen-mode .edit-site-header {
831
836
  justify-content: center;
832
837
  min-width: 0;
833
838
  }
834
- .edit-site-header .edit-site-header_end {
835
- justify-content: flex-end;
836
- }
837
839
 
838
840
  body.is-navigation-sidebar-open .edit-site-header {
839
841
  padding-right: 0;
@@ -944,6 +946,41 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
944
946
  }
945
947
  }
946
948
 
949
+ .edit-site-header_start {
950
+ display: flex;
951
+ border: none;
952
+ }
953
+ .edit-site-header_start .edit-site-header__toolbar > .components-button.has-icon,
954
+ .edit-site-header_start .edit-site-header__toolbar > .components-dropdown > .components-button.has-icon {
955
+ height: 36px;
956
+ min-width: 36px;
957
+ padding: 6px;
958
+ }
959
+ .edit-site-header_start .edit-site-header__toolbar > .components-button.has-icon.is-pressed,
960
+ .edit-site-header_start .edit-site-header__toolbar > .components-dropdown > .components-button.has-icon.is-pressed {
961
+ background: #1e1e1e;
962
+ }
963
+ .edit-site-header_start .edit-site-header__toolbar > .components-button.has-icon:focus:not(:disabled),
964
+ .edit-site-header_start .edit-site-header__toolbar > .components-dropdown > .components-button.has-icon:focus:not(:disabled) {
965
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
966
+ outline: 1px solid transparent;
967
+ }
968
+ .edit-site-header_start .edit-site-header__toolbar > .components-button.has-icon::before,
969
+ .edit-site-header_start .edit-site-header__toolbar > .components-dropdown > .components-button.has-icon::before {
970
+ display: none;
971
+ }
972
+ .edit-site-header_start .edit-site-header__toolbar > .edit-site-header-toolbar__inserter-toggle.has-icon {
973
+ margin-left: 8px;
974
+ min-width: 32px;
975
+ width: 32px;
976
+ height: 32px;
977
+ padding: 0;
978
+ }
979
+ .edit-site-header_start .edit-site-header__toolbar > .edit-site-header-toolbar__inserter-toggle.has-text.has-icon {
980
+ width: auto;
981
+ padding: 0 8px;
982
+ }
983
+
947
984
  .show-icon-labels .edit-site-header .components-button.has-icon {
948
985
  width: auto;
949
986
  }
@@ -964,14 +1001,16 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
964
1001
  padding-right: 6px;
965
1002
  padding-left: 6px;
966
1003
  }
1004
+ .show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info::after {
1005
+ content: none;
1006
+ }
967
1007
  .show-icon-labels .edit-site-header .edit-site-header-toolbar__inserter-toggle.edit-site-header-toolbar__inserter-toggle,
968
1008
  .show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info {
969
1009
  height: 36px;
970
- padding: 0 6px;
1010
+ padding: 0 8px;
971
1011
  }
972
- .show-icon-labels .edit-site-header .edit-site-header-toolbar__inserter-toggle.edit-site-header-toolbar__inserter-toggle::after,
973
- .show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info::after {
974
- content: none;
1012
+ .show-icon-labels .edit-site-header .edit-site-header_start .edit-site-header__toolbar > * + * {
1013
+ margin-right: 8px;
975
1014
  }
976
1015
 
977
1016
  .edit-site-document-actions {
@@ -1381,12 +1420,6 @@ body.is-fullscreen-mode .edit-site-list-header {
1381
1420
  width: 320px;
1382
1421
  }
1383
1422
  }
1384
- .edit-site-list__rename-modal .components-modal__header {
1385
- border-bottom: none;
1386
- }
1387
- .edit-site-list__rename-modal .components-modal__content::before {
1388
- margin-bottom: 4px;
1389
- }
1390
1423
 
1391
1424
  .edit-site-list__rename-modal-actions {
1392
1425
  margin-top: 12px;
@@ -1456,6 +1489,124 @@ body.is-fullscreen-mode .edit-site-list-header {
1456
1489
  }
1457
1490
  }
1458
1491
 
1492
+ .edit-site-custom-template-modal__contents > .components-button {
1493
+ padding: 24px;
1494
+ box-shadow: inset 0 0 0 1px #949494;
1495
+ border-radius: 2px;
1496
+ width: 256px;
1497
+ height: auto;
1498
+ display: flex;
1499
+ flex-direction: column;
1500
+ gap: 8px;
1501
+ outline: 1px solid transparent;
1502
+ }
1503
+ .edit-site-custom-template-modal__contents > .components-button span:first-child {
1504
+ color: #1e1e1e;
1505
+ }
1506
+ .edit-site-custom-template-modal__contents > .components-button span {
1507
+ color: #757575;
1508
+ }
1509
+ .edit-site-custom-template-modal__contents > .components-button:hover {
1510
+ color: var(--wp-admin-theme-color-darker-10);
1511
+ box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color-darker-10);
1512
+ }
1513
+ .edit-site-custom-template-modal__contents > .components-button:hover span:first-child {
1514
+ color: var(--wp-admin-theme-color);
1515
+ }
1516
+ .edit-site-custom-template-modal__contents > .components-button:focus {
1517
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
1518
+ outline: 3px solid transparent;
1519
+ }
1520
+ .edit-site-custom-template-modal__contents > .components-button:focus span:first-child {
1521
+ color: var(--wp-admin-theme-color);
1522
+ }
1523
+ .edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input {
1524
+ background: #fff;
1525
+ border: 1px solid #ddd;
1526
+ }
1527
+ .edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input:focus {
1528
+ border-color: var(--wp-admin-theme-color);
1529
+ box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
1530
+ }
1531
+ @media (min-width: 782px) {
1532
+ .edit-site-custom-template-modal {
1533
+ width: 456px;
1534
+ }
1535
+ }
1536
+
1537
+ .edit-site-custom-template-modal__suggestions_list {
1538
+ margin-top: 16px;
1539
+ }
1540
+ @media (min-width: 600px) {
1541
+ .edit-site-custom-template-modal__suggestions_list {
1542
+ height: 232px;
1543
+ overflow: scroll;
1544
+ }
1545
+ }
1546
+ .edit-site-custom-template-modal__suggestions_list__list-item {
1547
+ display: block;
1548
+ width: 100%;
1549
+ text-align: right;
1550
+ white-space: pre-wrap;
1551
+ overflow-wrap: break-word;
1552
+ height: auto;
1553
+ }
1554
+ .edit-site-custom-template-modal__suggestions_list__list-item mark {
1555
+ font-weight: 700;
1556
+ background: none;
1557
+ }
1558
+ .edit-site-custom-template-modal__suggestions_list__list-item:hover {
1559
+ background-color: #f0f0f0;
1560
+ }
1561
+ .edit-site-custom-template-modal__suggestions_list__list-item:hover mark {
1562
+ color: var(--wp-admin-theme-color);
1563
+ }
1564
+ .edit-site-custom-template-modal__suggestions_list__list-item:focus {
1565
+ background-color: #f0f0f0;
1566
+ }
1567
+ .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled) {
1568
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset;
1569
+ }
1570
+ .edit-site-custom-template-modal__suggestions_list__list-item__title, .edit-site-custom-template-modal__suggestions_list__list-item__info {
1571
+ overflow: hidden;
1572
+ text-overflow: ellipsis;
1573
+ display: block;
1574
+ }
1575
+ .edit-site-custom-template-modal__suggestions_list__list-item__title {
1576
+ font-weight: 500;
1577
+ margin-bottom: 0.2em;
1578
+ }
1579
+ .edit-site-custom-template-modal__suggestions_list__list-item__info {
1580
+ color: #757575;
1581
+ font-size: 0.9em;
1582
+ line-height: 1.3;
1583
+ word-break: break-all;
1584
+ }
1585
+
1586
+ .edit-site-custom-template-modal__no-results {
1587
+ border: 1px solid #ccc;
1588
+ border-radius: 2px;
1589
+ padding: 16px;
1590
+ margin-bottom: 0;
1591
+ margin-top: 16px;
1592
+ }
1593
+
1594
+ @media (min-width: 782px) {
1595
+ .edit-site-custom-generic-template__modal .components-base-control {
1596
+ width: 320px;
1597
+ }
1598
+ }
1599
+ .edit-site-custom-generic-template__modal .components-modal__header {
1600
+ border-bottom: none;
1601
+ }
1602
+ .edit-site-custom-generic-template__modal .components-modal__content::before {
1603
+ margin-bottom: 4px;
1604
+ }
1605
+
1606
+ .edit-site-custom-generic-template__modal-actions {
1607
+ margin-top: 12px;
1608
+ }
1609
+
1459
1610
  .edit-site-sidebar {
1460
1611
  width: 280px;
1461
1612
  }
@@ -1512,6 +1663,10 @@ body.is-fullscreen-mode .edit-site-list-header {
1512
1663
  grid-column: span 1;
1513
1664
  }
1514
1665
 
1666
+ .edit-site-global-styles-sidebar .components-tools-panel .span-columns {
1667
+ grid-column: 1/-1;
1668
+ }
1669
+
1515
1670
  .edit-site-global-styles-sidebar__blocks-group {
1516
1671
  padding-top: 24px;
1517
1672
  border-top: 1px solid #e0e0e0;
@@ -1654,50 +1809,56 @@ body.is-fullscreen-mode .edit-site-list-header {
1654
1809
  display: flex;
1655
1810
  align-items: flex-start;
1656
1811
  }
1657
-
1658
1812
  .edit-site-template-card__content {
1659
1813
  flex-grow: 1;
1660
1814
  margin-bottom: 4px;
1661
1815
  }
1662
-
1663
1816
  .edit-site-template-card__title {
1664
1817
  font-weight: 500;
1665
1818
  line-height: 24px;
1666
1819
  }
1667
1820
  .edit-site-template-card__title.edit-site-template-card__title {
1668
- margin: 0 0 4px;
1821
+ margin: 0;
1669
1822
  }
1670
-
1671
1823
  .edit-site-template-card__description {
1672
1824
  font-size: 13px;
1673
1825
  margin: 0 0 16px;
1674
1826
  }
1675
-
1676
1827
  .edit-site-template-card__icon {
1677
1828
  flex: 0 0 24px;
1678
1829
  margin-left: 12px;
1679
1830
  width: 24px;
1680
1831
  height: 24px;
1681
1832
  }
1682
-
1683
- h3.edit-site-template-card__template-areas-title {
1684
- font-weight: 500;
1685
- margin: 0 0 8px;
1686
- }
1687
-
1688
1833
  .edit-site-template-card__template-areas-list {
1689
1834
  margin: 0;
1690
1835
  }
1691
1836
  .edit-site-template-card__template-areas-list > li {
1692
1837
  margin: 0;
1693
1838
  }
1694
-
1695
1839
  .edit-site-template-card__template-areas-item {
1696
1840
  width: 100%;
1697
1841
  }
1698
1842
  .edit-site-template-card__template-areas-item.components-button.has-icon {
1699
1843
  padding: 0;
1700
1844
  }
1845
+ .edit-site-template-card__header {
1846
+ display: flex;
1847
+ justify-content: space-between;
1848
+ margin: 0 0 4px;
1849
+ }
1850
+ .edit-site-template-card__actions {
1851
+ line-height: 0;
1852
+ }
1853
+ .edit-site-template-card__actions > .components-button.is-small.has-icon {
1854
+ padding: 0;
1855
+ min-width: auto;
1856
+ }
1857
+
1858
+ h3.edit-site-template-card__template-areas-title {
1859
+ font-weight: 500;
1860
+ margin: 0 0 8px;
1861
+ }
1701
1862
 
1702
1863
  html #wpadminbar {
1703
1864
  display: none;
@@ -1987,9 +2148,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
1987
2148
  .edit-site-keyboard-shortcut-help-modal__section {
1988
2149
  margin: 0 0 2rem 0;
1989
2150
  }
1990
- .edit-site-keyboard-shortcut-help-modal__main-shortcuts .edit-site-keyboard-shortcut-help-modal__shortcut-list {
1991
- margin-top: -25px;
1992
- }
1993
2151
  .edit-site-keyboard-shortcut-help-modal__section-title {
1994
2152
  font-size: 0.9rem;
1995
2153
  font-weight: 600;
@@ -2039,40 +2197,31 @@ html.wp-toolbar {
2039
2197
  background: #fff;
2040
2198
  }
2041
2199
 
2042
- body.appearance_page_gutenberg-edit-site,
2043
2200
  body.site-editor-php {
2044
2201
  background: #fff;
2045
2202
  /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
2046
2203
  Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
2047
2204
  }
2048
- body.appearance_page_gutenberg-edit-site #wpcontent,
2049
2205
  body.site-editor-php #wpcontent {
2050
2206
  padding-right: 0;
2051
2207
  }
2052
- body.appearance_page_gutenberg-edit-site #wpbody-content,
2053
2208
  body.site-editor-php #wpbody-content {
2054
2209
  padding-bottom: 0;
2055
2210
  }
2056
- body.appearance_page_gutenberg-edit-site #wpbody-content > div:not(.edit-site):not(#screen-meta),
2057
2211
  body.site-editor-php #wpbody-content > div:not(.edit-site):not(#screen-meta) {
2058
2212
  display: none;
2059
2213
  }
2060
- body.appearance_page_gutenberg-edit-site #wpfooter,
2061
2214
  body.site-editor-php #wpfooter {
2062
2215
  display: none;
2063
2216
  }
2064
- body.appearance_page_gutenberg-edit-site .a11y-speak-region,
2065
2217
  body.site-editor-php .a11y-speak-region {
2066
2218
  right: -1px;
2067
2219
  top: -1px;
2068
2220
  }
2069
- body.appearance_page_gutenberg-edit-site ul#adminmenu a.wp-has-current-submenu::after,
2070
- body.appearance_page_gutenberg-edit-site ul#adminmenu > li.current > a.current::after,
2071
2221
  body.site-editor-php ul#adminmenu a.wp-has-current-submenu::after,
2072
2222
  body.site-editor-php ul#adminmenu > li.current > a.current::after {
2073
2223
  border-left-color: #fff;
2074
2224
  }
2075
- body.appearance_page_gutenberg-edit-site .media-frame select.attachment-filters:last-of-type,
2076
2225
  body.site-editor-php .media-frame select.attachment-filters:last-of-type {
2077
2226
  width: auto;
2078
2227
  max-width: 100%;