@wordpress/edit-site 6.1.0 → 6.3.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.
- package/CHANGELOG.md +10 -6
- package/build/components/add-new-pattern/index.js +31 -16
- package/build/components/add-new-pattern/index.js.map +1 -1
- package/build/components/{add-new-page → add-new-post}/index.js +28 -16
- package/build/components/add-new-post/index.js.map +1 -0
- package/build/components/block-editor/use-site-editor-settings.js +5 -3
- package/build/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build/components/editor/index.js +32 -7
- package/build/components/editor/index.js.map +1 -1
- package/build/components/editor-canvas-container/index.js +18 -7
- package/build/components/editor-canvas-container/index.js.map +1 -1
- package/build/components/global-styles/background-panel.js +0 -5
- package/build/components/global-styles/background-panel.js.map +1 -1
- package/build/components/global-styles/font-families.js +17 -17
- package/build/components/global-styles/font-families.js.map +1 -1
- package/build/components/global-styles/font-library-modal/context.js +2 -2
- package/build/components/global-styles/font-library-modal/context.js.map +1 -1
- package/build/components/global-styles/font-library-modal/font-collection.js +13 -30
- package/build/components/global-styles/font-library-modal/font-collection.js.map +1 -1
- package/build/components/global-styles/font-library-modal/installed-fonts.js +2 -2
- package/build/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
- package/build/components/global-styles/hooks.js +0 -40
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/preview-typography.js +47 -0
- package/build/components/global-styles/preview-typography.js.map +1 -0
- package/build/components/global-styles/screen-block.js +14 -0
- package/build/components/global-styles/screen-block.js.map +1 -1
- package/build/components/global-styles/screen-layout.js +5 -1
- package/build/components/global-styles/screen-layout.js.map +1 -1
- package/build/components/global-styles/screen-revisions/revisions-buttons.js +1 -1
- package/build/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
- package/build/components/global-styles/shadows-edit-panel.js +1 -2
- package/build/components/global-styles/shadows-edit-panel.js.map +1 -1
- package/build/components/global-styles/style-variations-container.js +5 -5
- package/build/components/global-styles/style-variations-container.js.map +1 -1
- package/build/components/global-styles/typography-elements.js +0 -2
- package/build/components/global-styles/typography-elements.js.map +1 -1
- package/build/components/global-styles/variations/variation.js +28 -22
- package/build/components/global-styles/variations/variation.js.map +1 -1
- package/build/components/global-styles/variations/variations-color.js +5 -3
- package/build/components/global-styles/variations/variations-color.js.map +1 -1
- package/build/components/global-styles/variations/variations-typography.js +14 -27
- package/build/components/global-styles/variations/variations-typography.js.map +1 -1
- package/build/components/global-styles-sidebar/index.js +2 -2
- package/build/components/global-styles-sidebar/index.js.map +1 -1
- package/build/components/layout/index.js +16 -8
- package/build/components/layout/index.js.map +1 -1
- package/build/components/layout/router.js +20 -41
- package/build/components/layout/router.js.map +1 -1
- package/build/components/page-patterns/index.js +51 -41
- package/build/components/page-patterns/index.js.map +1 -1
- package/build/components/page-patterns/rename-category-menu-item.js +3 -1
- package/build/components/page-patterns/rename-category-menu-item.js.map +1 -1
- package/build/components/page-patterns/search-items.js +29 -4
- package/build/components/page-patterns/search-items.js.map +1 -1
- package/build/components/page-patterns/use-patterns.js +22 -55
- package/build/components/page-patterns/use-patterns.js.map +1 -1
- package/build/components/page-templates/index.js +27 -21
- package/build/components/page-templates/index.js.map +1 -1
- package/build/components/pagination/index.js +4 -4
- package/build/components/pagination/index.js.map +1 -1
- package/build/components/posts-app/index.js +11 -17
- package/build/components/posts-app/index.js.map +1 -1
- package/build/components/{page-pages/index.js → posts-app/posts-list.js} +165 -38
- package/build/components/posts-app/posts-list.js.map +1 -0
- package/build/components/posts-app/router.js +85 -0
- package/build/components/posts-app/router.js.map +1 -0
- package/build/components/revisions/index.js +10 -7
- package/build/components/revisions/index.js.map +1 -1
- package/build/components/save-panel/index.js +1 -1
- package/build/components/save-panel/index.js.map +1 -1
- package/build/components/sidebar-dataviews/add-new-view.js +4 -1
- package/build/components/sidebar-dataviews/add-new-view.js.map +1 -1
- package/build/components/sidebar-dataviews/custom-dataviews-list.js +6 -2
- package/build/components/sidebar-dataviews/custom-dataviews-list.js.map +1 -1
- package/build/components/sidebar-dataviews/default-views.js +98 -84
- package/build/components/sidebar-dataviews/default-views.js.map +1 -1
- package/build/components/sidebar-dataviews/index.js +4 -1
- package/build/components/sidebar-dataviews/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-global-styles/index.js +3 -3
- package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +5 -2
- package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +1 -1
- package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +3 -2
- package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +1 -1
- package/build/components/site-hub/index.js +81 -1
- package/build/components/site-hub/index.js.map +1 -1
- package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js +3 -1
- package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
- package/build/deprecated.js +11 -0
- package/build/deprecated.js.map +1 -1
- package/build/hooks/commands/use-set-command-context.js +11 -0
- package/build/hooks/commands/use-set-command-context.js.map +1 -1
- package/build/hooks/push-changes-to-global-styles/index.js +1 -1
- package/build/hooks/push-changes-to-global-styles/index.js.map +1 -1
- package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +65 -42
- package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +1 -1
- package/build/index.js +6 -0
- package/build/index.js.map +1 -1
- package/build/lock-unlock.js +1 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/posts.js +57 -2
- package/build/posts.js.map +1 -1
- package/build/store/private-actions.js +7 -2
- package/build/store/private-actions.js.map +1 -1
- package/build-module/components/add-new-pattern/index.js +31 -16
- package/build-module/components/add-new-pattern/index.js.map +1 -1
- package/build-module/components/{add-new-page → add-new-post}/index.js +28 -16
- package/build-module/components/add-new-post/index.js.map +1 -0
- package/build-module/components/block-editor/use-site-editor-settings.js +5 -3
- package/build-module/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build-module/components/editor/index.js +33 -8
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/editor-canvas-container/index.js +19 -8
- package/build-module/components/editor-canvas-container/index.js.map +1 -1
- package/build-module/components/global-styles/background-panel.js +0 -5
- package/build-module/components/global-styles/background-panel.js.map +1 -1
- package/build-module/components/global-styles/font-families.js +18 -18
- package/build-module/components/global-styles/font-families.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/context.js +2 -2
- package/build-module/components/global-styles/font-library-modal/context.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/font-collection.js +14 -31
- package/build-module/components/global-styles/font-library-modal/font-collection.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/installed-fonts.js +2 -2
- package/build-module/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +0 -38
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/preview-typography.js +39 -0
- package/build-module/components/global-styles/preview-typography.js.map +1 -0
- package/build-module/components/global-styles/screen-block.js +15 -0
- package/build-module/components/global-styles/screen-block.js.map +1 -1
- package/build-module/components/global-styles/screen-layout.js +5 -1
- package/build-module/components/global-styles/screen-layout.js.map +1 -1
- package/build-module/components/global-styles/screen-revisions/revisions-buttons.js +1 -1
- package/build-module/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
- package/build-module/components/global-styles/shadows-edit-panel.js +1 -2
- package/build-module/components/global-styles/shadows-edit-panel.js.map +1 -1
- package/build-module/components/global-styles/style-variations-container.js +6 -6
- package/build-module/components/global-styles/style-variations-container.js.map +1 -1
- package/build-module/components/global-styles/typography-elements.js +0 -2
- package/build-module/components/global-styles/typography-elements.js.map +1 -1
- package/build-module/components/global-styles/variations/variation.js +29 -23
- package/build-module/components/global-styles/variations/variation.js.map +1 -1
- package/build-module/components/global-styles/variations/variations-color.js +5 -3
- package/build-module/components/global-styles/variations/variations-color.js.map +1 -1
- package/build-module/components/global-styles/variations/variations-typography.js +16 -28
- package/build-module/components/global-styles/variations/variations-typography.js.map +1 -1
- package/build-module/components/global-styles-sidebar/index.js +2 -2
- package/build-module/components/global-styles-sidebar/index.js.map +1 -1
- package/build-module/components/layout/index.js +14 -8
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/layout/router.js +20 -41
- package/build-module/components/layout/router.js.map +1 -1
- package/build-module/components/page-patterns/index.js +52 -42
- package/build-module/components/page-patterns/index.js.map +1 -1
- package/build-module/components/page-patterns/rename-category-menu-item.js +3 -1
- package/build-module/components/page-patterns/rename-category-menu-item.js.map +1 -1
- package/build-module/components/page-patterns/search-items.js +28 -4
- package/build-module/components/page-patterns/search-items.js.map +1 -1
- package/build-module/components/page-patterns/use-patterns.js +23 -56
- package/build-module/components/page-patterns/use-patterns.js.map +1 -1
- package/build-module/components/page-templates/index.js +27 -21
- package/build-module/components/page-templates/index.js.map +1 -1
- package/build-module/components/pagination/index.js +4 -4
- package/build-module/components/pagination/index.js.map +1 -1
- package/build-module/components/posts-app/index.js +11 -17
- package/build-module/components/posts-app/index.js.map +1 -1
- package/build-module/components/{page-pages/index.js → posts-app/posts-list.js} +164 -37
- package/build-module/components/posts-app/posts-list.js.map +1 -0
- package/build-module/components/posts-app/router.js +77 -0
- package/build-module/components/posts-app/router.js.map +1 -0
- package/build-module/components/revisions/index.js +10 -7
- package/build-module/components/revisions/index.js.map +1 -1
- package/build-module/components/save-panel/index.js +1 -1
- package/build-module/components/save-panel/index.js.map +1 -1
- package/build-module/components/sidebar-dataviews/add-new-view.js +4 -1
- package/build-module/components/sidebar-dataviews/add-new-view.js.map +1 -1
- package/build-module/components/sidebar-dataviews/custom-dataviews-list.js +6 -2
- package/build-module/components/sidebar-dataviews/custom-dataviews-list.js.map +1 -1
- package/build-module/components/sidebar-dataviews/default-views.js +97 -84
- package/build-module/components/sidebar-dataviews/default-views.js.map +1 -1
- package/build-module/components/sidebar-dataviews/index.js +5 -2
- package/build-module/components/sidebar-dataviews/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-global-styles/index.js +3 -3
- package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +5 -2
- package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +3 -2
- package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +1 -1
- package/build-module/components/site-hub/index.js +81 -1
- package/build-module/components/site-hub/index.js.map +1 -1
- package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js +3 -1
- package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
- package/build-module/deprecated.js +11 -0
- package/build-module/deprecated.js.map +1 -1
- package/build-module/hooks/commands/use-set-command-context.js +11 -0
- package/build-module/hooks/commands/use-set-command-context.js.map +1 -1
- package/build-module/hooks/push-changes-to-global-styles/index.js +1 -1
- package/build-module/hooks/push-changes-to-global-styles/index.js.map +1 -1
- package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +61 -38
- package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +1 -1
- package/build-module/index.js +7 -2
- package/build-module/index.js.map +1 -1
- package/build-module/lock-unlock.js +1 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/posts.js +57 -2
- package/build-module/posts.js.map +1 -1
- package/build-module/store/private-actions.js +7 -2
- package/build-module/store/private-actions.js.map +1 -1
- package/build-style/posts-rtl.css +108 -28
- package/build-style/posts.css +108 -28
- package/build-style/style-rtl.css +127 -157
- package/build-style/style.css +127 -157
- package/lib/inflate.js +3188 -3937
- package/lib/lib-font.browser.js +32 -2
- package/lib/unbrotli.js +1818 -2458
- package/package.json +41 -41
- package/src/components/add-new-pattern/index.js +38 -23
- package/src/components/{add-new-page → add-new-post}/index.js +42 -18
- package/src/components/block-editor/style.scss +0 -11
- package/src/components/block-editor/use-site-editor-settings.js +33 -28
- package/src/components/editor/index.js +34 -20
- package/src/components/editor-canvas-container/index.js +20 -8
- package/src/components/global-styles/background-panel.js +0 -8
- package/src/components/global-styles/font-families.js +28 -19
- package/src/components/global-styles/font-library-modal/context.js +2 -2
- package/src/components/global-styles/font-library-modal/font-collection.js +17 -32
- package/src/components/global-styles/font-library-modal/installed-fonts.js +2 -2
- package/src/components/global-styles/font-library-modal/style.scss +17 -10
- package/src/components/global-styles/hooks.js +0 -41
- package/src/components/global-styles/preview-typography.js +39 -0
- package/src/components/global-styles/screen-block.js +22 -0
- package/src/components/global-styles/screen-layout.js +5 -1
- package/src/components/global-styles/screen-revisions/revisions-buttons.js +1 -1
- package/src/components/global-styles/shadows-edit-panel.js +1 -2
- package/src/components/global-styles/style-variations-container.js +10 -7
- package/src/components/global-styles/style.scss +2 -1
- package/src/components/global-styles/typography-elements.js +0 -4
- package/src/components/global-styles/variations/variation.js +41 -26
- package/src/components/global-styles/variations/variations-color.js +6 -3
- package/src/components/global-styles/variations/variations-typography.js +16 -32
- package/src/components/global-styles-sidebar/index.js +2 -2
- package/src/components/layout/index.js +13 -4
- package/src/components/layout/router.js +20 -36
- package/src/components/layout/style.scss +12 -0
- package/src/components/page-patterns/index.js +55 -58
- package/src/components/page-patterns/rename-category-menu-item.js +2 -0
- package/src/components/page-patterns/search-items.js +37 -3
- package/src/components/page-patterns/style.scss +1 -8
- package/src/components/page-patterns/use-patterns.js +43 -82
- package/src/components/page-templates/index.js +26 -21
- package/src/components/page-templates/style.scss +1 -6
- package/src/components/pagination/index.js +4 -4
- package/src/components/posts-app/index.js +9 -11
- package/src/components/{page-pages/index.js → posts-app/posts-list.js} +163 -42
- package/src/components/posts-app/router.js +69 -0
- package/src/components/{page-pages → posts-app}/style.scss +22 -8
- package/src/components/revisions/index.js +9 -1
- package/src/components/save-panel/index.js +1 -1
- package/src/components/sidebar/style.scss +6 -0
- package/src/components/sidebar-dataviews/add-new-view.js +2 -1
- package/src/components/sidebar-dataviews/custom-dataviews-list.js +6 -2
- package/src/components/sidebar-dataviews/default-views.js +119 -98
- package/src/components/sidebar-dataviews/index.js +3 -3
- package/src/components/sidebar-navigation-screen-global-styles/index.js +7 -6
- package/src/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +8 -2
- package/src/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +10 -2
- package/src/components/site-hub/index.js +84 -1
- package/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +3 -2
- package/src/deprecated.js +14 -0
- package/src/hooks/commands/use-set-command-context.js +12 -0
- package/src/hooks/push-changes-to-global-styles/index.js +1 -1
- package/src/hooks/use-theme-style-variations/test/use-theme-style-variations-by-property.js +28 -24
- package/src/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +72 -47
- package/src/index.js +8 -1
- package/src/lock-unlock.js +1 -1
- package/src/posts.js +63 -2
- package/src/posts.scss +9 -0
- package/src/store/private-actions.js +7 -3
- package/src/style.scss +14 -2
- package/build/components/add-new-page/index.js.map +0 -1
- package/build/components/page-pages/index.js.map +0 -1
- package/build/components/table/index.js +0 -35
- package/build/components/table/index.js.map +0 -1
- package/build-module/components/add-new-page/index.js.map +0 -1
- package/build-module/components/page-pages/index.js.map +0 -1
- package/build-module/components/table/index.js +0 -30
- package/build-module/components/table/index.js.map +0 -1
- package/src/components/table/index.js +0 -33
- package/src/components/table/style.scss +0 -38
|
@@ -213,19 +213,6 @@
|
|
|
213
213
|
.dataviews-view-table tr .dataviews-view-table-header-button {
|
|
214
214
|
gap: 4px;
|
|
215
215
|
}
|
|
216
|
-
.dataviews-view-table tr th:first-child, .dataviews-view-table tr th:last-child,
|
|
217
|
-
.dataviews-view-table tr td:first-child,
|
|
218
|
-
.dataviews-view-table tr td:last-child {
|
|
219
|
-
transition: padding ease-out 0.1s;
|
|
220
|
-
}
|
|
221
|
-
@media (prefers-reduced-motion: reduce) {
|
|
222
|
-
.dataviews-view-table tr th:first-child, .dataviews-view-table tr th:last-child,
|
|
223
|
-
.dataviews-view-table tr td:first-child,
|
|
224
|
-
.dataviews-view-table tr td:last-child {
|
|
225
|
-
transition-duration: 0s;
|
|
226
|
-
transition-delay: 0s;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
216
|
.dataviews-view-table tr td:first-child,
|
|
230
217
|
.dataviews-view-table tr th:first-child {
|
|
231
218
|
padding-right: 48px;
|
|
@@ -287,9 +274,12 @@
|
|
|
287
274
|
box-shadow: inset 0 -1px 0 #f0f0f0;
|
|
288
275
|
padding-top: 8px;
|
|
289
276
|
padding-bottom: 8px;
|
|
277
|
+
padding-right: 12px;
|
|
290
278
|
font-size: 11px;
|
|
291
279
|
text-transform: uppercase;
|
|
292
280
|
font-weight: 500;
|
|
281
|
+
}
|
|
282
|
+
.dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child) {
|
|
293
283
|
padding-right: 4px;
|
|
294
284
|
}
|
|
295
285
|
.dataviews-view-table tbody td {
|
|
@@ -339,7 +329,6 @@
|
|
|
339
329
|
color: #757575;
|
|
340
330
|
text-overflow: ellipsis;
|
|
341
331
|
white-space: nowrap;
|
|
342
|
-
display: block;
|
|
343
332
|
width: 100%;
|
|
344
333
|
}
|
|
345
334
|
.dataviews-view-list__primary-field a,
|
|
@@ -424,17 +413,12 @@
|
|
|
424
413
|
.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value {
|
|
425
414
|
color: #1e1e1e;
|
|
426
415
|
}
|
|
427
|
-
.dataviews-view-grid .dataviews-view-grid__card.is-selected .page-pages-preview-field__button::after {
|
|
428
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
429
|
-
background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
|
|
430
|
-
}
|
|
431
416
|
.dataviews-view-grid .dataviews-view-grid__media {
|
|
432
417
|
width: 100%;
|
|
433
418
|
min-height: 200px;
|
|
434
419
|
aspect-ratio: 1/1;
|
|
435
420
|
background-color: #f0f0f0;
|
|
436
421
|
border-radius: 4px;
|
|
437
|
-
overflow: hidden;
|
|
438
422
|
position: relative;
|
|
439
423
|
}
|
|
440
424
|
.dataviews-view-grid .dataviews-view-grid__media img {
|
|
@@ -515,7 +499,7 @@
|
|
|
515
499
|
left: 0;
|
|
516
500
|
}
|
|
517
501
|
.dataviews-view-list li.is-selected .dataviews-view-list__item-actions, .dataviews-view-list li.is-hovered .dataviews-view-list__item-actions, .dataviews-view-list li:focus-within .dataviews-view-list__item-actions {
|
|
518
|
-
padding-left:
|
|
502
|
+
padding-left: 24px;
|
|
519
503
|
}
|
|
520
504
|
.dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button, .dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button, .dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button {
|
|
521
505
|
opacity: 1;
|
|
@@ -607,7 +591,7 @@
|
|
|
607
591
|
display: none;
|
|
608
592
|
}
|
|
609
593
|
.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value {
|
|
610
|
-
line-height:
|
|
594
|
+
line-height: 24px;
|
|
611
595
|
display: inline-flex;
|
|
612
596
|
}
|
|
613
597
|
.dataviews-view-list .dataviews-view-list__item-actions {
|
|
@@ -817,10 +801,10 @@
|
|
|
817
801
|
border-radius: 16px;
|
|
818
802
|
border: 1px solid transparent;
|
|
819
803
|
cursor: pointer;
|
|
820
|
-
padding:
|
|
821
|
-
height: 32px;
|
|
804
|
+
padding: 4px 12px;
|
|
805
|
+
min-height: 32px;
|
|
822
806
|
background: #f0f0f0;
|
|
823
|
-
color: #
|
|
807
|
+
color: #2f2f2f;
|
|
824
808
|
position: relative;
|
|
825
809
|
display: flex;
|
|
826
810
|
align-items: center;
|
|
@@ -1004,6 +988,17 @@
|
|
|
1004
988
|
position: relative;
|
|
1005
989
|
width: 100%;
|
|
1006
990
|
z-index: 2;
|
|
991
|
+
/*
|
|
992
|
+
* The SiteHubMobile component is displayed
|
|
993
|
+
* for pages that do not have a sidebar,
|
|
994
|
+
* yet it needs the Sidebar component for the React context.
|
|
995
|
+
*
|
|
996
|
+
* This removes the padding in this scenario.
|
|
997
|
+
* See https://github.com/WordPress/gutenberg/pull/63118
|
|
998
|
+
*/
|
|
999
|
+
}
|
|
1000
|
+
.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper {
|
|
1001
|
+
padding: 0;
|
|
1007
1002
|
}
|
|
1008
1003
|
|
|
1009
1004
|
.edit-site-layout__canvas-container {
|
|
@@ -1266,9 +1261,11 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1266
1261
|
.edit-site-sidebar__content {
|
|
1267
1262
|
flex-grow: 1;
|
|
1268
1263
|
overflow-y: auto;
|
|
1264
|
+
overflow-x: hidden;
|
|
1265
|
+
contain: content;
|
|
1269
1266
|
}
|
|
1270
1267
|
|
|
1271
|
-
@keyframes
|
|
1268
|
+
@keyframes _qixpa_slide-from-right {
|
|
1272
1269
|
from {
|
|
1273
1270
|
transform: translateX(-50px);
|
|
1274
1271
|
opacity: 0;
|
|
@@ -1278,7 +1275,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1278
1275
|
opacity: 1;
|
|
1279
1276
|
}
|
|
1280
1277
|
}
|
|
1281
|
-
@keyframes
|
|
1278
|
+
@keyframes _qixpa_slide-from-left {
|
|
1282
1279
|
from {
|
|
1283
1280
|
transform: translateX(50px);
|
|
1284
1281
|
opacity: 0;
|
|
@@ -1334,10 +1331,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1334
1331
|
}
|
|
1335
1332
|
}
|
|
1336
1333
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
1337
|
-
animation-name:
|
|
1334
|
+
animation-name: _qixpa_slide-from-left;
|
|
1338
1335
|
}
|
|
1339
1336
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
1340
|
-
animation-name:
|
|
1337
|
+
animation-name: _qixpa_slide-from-right;
|
|
1341
1338
|
}
|
|
1342
1339
|
|
|
1343
1340
|
.edit-site-site-hub {
|
|
@@ -1461,6 +1458,82 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1461
1458
|
background: #fff;
|
|
1462
1459
|
}
|
|
1463
1460
|
|
|
1461
|
+
.posts-list-page__featured-image {
|
|
1462
|
+
height: 100%;
|
|
1463
|
+
object-fit: cover;
|
|
1464
|
+
width: 100%;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.posts-list-page__featured-image-wrapper {
|
|
1468
|
+
height: 100%;
|
|
1469
|
+
width: 100%;
|
|
1470
|
+
border-radius: 4px;
|
|
1471
|
+
}
|
|
1472
|
+
.posts-list-page__featured-image-wrapper.is-layout-table:not(:has(.posts-list-page-preview-field__button)), .posts-list-page__featured-image-wrapper.is-layout-table .posts-list-page-preview-field__button {
|
|
1473
|
+
width: 32px;
|
|
1474
|
+
height: 32px;
|
|
1475
|
+
display: block;
|
|
1476
|
+
border-radius: 4px;
|
|
1477
|
+
position: relative;
|
|
1478
|
+
overflow: hidden;
|
|
1479
|
+
background-color: #f0f0f0;
|
|
1480
|
+
flex-grow: 0 !important;
|
|
1481
|
+
}
|
|
1482
|
+
.posts-list-page__featured-image-wrapper.is-layout-table:not(:has(.posts-list-page-preview-field__button))::after, .posts-list-page__featured-image-wrapper.is-layout-table .posts-list-page-preview-field__button::after {
|
|
1483
|
+
border-radius: 4px;
|
|
1484
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
1485
|
+
content: "";
|
|
1486
|
+
height: 100%;
|
|
1487
|
+
right: 0;
|
|
1488
|
+
position: absolute;
|
|
1489
|
+
top: 0;
|
|
1490
|
+
width: 100%;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
.posts-list-page-preview-field__button {
|
|
1494
|
+
box-shadow: none;
|
|
1495
|
+
border: none;
|
|
1496
|
+
padding: 0;
|
|
1497
|
+
background-color: unset;
|
|
1498
|
+
box-sizing: border-box;
|
|
1499
|
+
cursor: pointer;
|
|
1500
|
+
overflow: hidden;
|
|
1501
|
+
height: 100%;
|
|
1502
|
+
width: 100%;
|
|
1503
|
+
border-radius: 4px;
|
|
1504
|
+
}
|
|
1505
|
+
.posts-list-page-preview-field__button:focus-visible {
|
|
1506
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1507
|
+
outline: 2px solid transparent;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
.dataviews-view-grid__card.is-selected .posts-list-page-preview-field__button::after {
|
|
1511
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1512
|
+
background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
.posts-list-page-title span {
|
|
1516
|
+
text-overflow: ellipsis;
|
|
1517
|
+
overflow: hidden;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
.posts-list-page-title-badge {
|
|
1521
|
+
background: #f0f0f0;
|
|
1522
|
+
color: #757575;
|
|
1523
|
+
padding: 0 4px;
|
|
1524
|
+
border-radius: 2px;
|
|
1525
|
+
font-size: 12px;
|
|
1526
|
+
font-weight: 400;
|
|
1527
|
+
flex-shrink: 0;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
.posts-list-page-post-author-field__icon-container {
|
|
1531
|
+
height: 24px;
|
|
1532
|
+
}
|
|
1533
|
+
.posts-list-page-post-author-field__icon-container svg {
|
|
1534
|
+
fill: currentColor;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1464
1537
|
.edit-site-resizable-frame__inner {
|
|
1465
1538
|
position: relative;
|
|
1466
1539
|
}
|
|
@@ -1704,4 +1777,11 @@ body .media-frame select.attachment-filters:last-of-type {
|
|
|
1704
1777
|
.no-js #gutenberg-posts-dashboard {
|
|
1705
1778
|
min-height: 0;
|
|
1706
1779
|
position: static;
|
|
1780
|
+
}
|
|
1781
|
+
#gutenberg-posts-dashboard .components-editor-notices__snackbar {
|
|
1782
|
+
position: fixed;
|
|
1783
|
+
left: 0;
|
|
1784
|
+
bottom: 16px;
|
|
1785
|
+
padding-right: 16px;
|
|
1786
|
+
padding-left: 16px;
|
|
1707
1787
|
}
|
package/build-style/posts.css
CHANGED
|
@@ -213,19 +213,6 @@
|
|
|
213
213
|
.dataviews-view-table tr .dataviews-view-table-header-button {
|
|
214
214
|
gap: 4px;
|
|
215
215
|
}
|
|
216
|
-
.dataviews-view-table tr th:first-child, .dataviews-view-table tr th:last-child,
|
|
217
|
-
.dataviews-view-table tr td:first-child,
|
|
218
|
-
.dataviews-view-table tr td:last-child {
|
|
219
|
-
transition: padding ease-out 0.1s;
|
|
220
|
-
}
|
|
221
|
-
@media (prefers-reduced-motion: reduce) {
|
|
222
|
-
.dataviews-view-table tr th:first-child, .dataviews-view-table tr th:last-child,
|
|
223
|
-
.dataviews-view-table tr td:first-child,
|
|
224
|
-
.dataviews-view-table tr td:last-child {
|
|
225
|
-
transition-duration: 0s;
|
|
226
|
-
transition-delay: 0s;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
216
|
.dataviews-view-table tr td:first-child,
|
|
230
217
|
.dataviews-view-table tr th:first-child {
|
|
231
218
|
padding-left: 48px;
|
|
@@ -287,9 +274,12 @@
|
|
|
287
274
|
box-shadow: inset 0 -1px 0 #f0f0f0;
|
|
288
275
|
padding-top: 8px;
|
|
289
276
|
padding-bottom: 8px;
|
|
277
|
+
padding-left: 12px;
|
|
290
278
|
font-size: 11px;
|
|
291
279
|
text-transform: uppercase;
|
|
292
280
|
font-weight: 500;
|
|
281
|
+
}
|
|
282
|
+
.dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child) {
|
|
293
283
|
padding-left: 4px;
|
|
294
284
|
}
|
|
295
285
|
.dataviews-view-table tbody td {
|
|
@@ -339,7 +329,6 @@
|
|
|
339
329
|
color: #757575;
|
|
340
330
|
text-overflow: ellipsis;
|
|
341
331
|
white-space: nowrap;
|
|
342
|
-
display: block;
|
|
343
332
|
width: 100%;
|
|
344
333
|
}
|
|
345
334
|
.dataviews-view-list__primary-field a,
|
|
@@ -424,17 +413,12 @@
|
|
|
424
413
|
.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value {
|
|
425
414
|
color: #1e1e1e;
|
|
426
415
|
}
|
|
427
|
-
.dataviews-view-grid .dataviews-view-grid__card.is-selected .page-pages-preview-field__button::after {
|
|
428
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
429
|
-
background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
|
|
430
|
-
}
|
|
431
416
|
.dataviews-view-grid .dataviews-view-grid__media {
|
|
432
417
|
width: 100%;
|
|
433
418
|
min-height: 200px;
|
|
434
419
|
aspect-ratio: 1/1;
|
|
435
420
|
background-color: #f0f0f0;
|
|
436
421
|
border-radius: 4px;
|
|
437
|
-
overflow: hidden;
|
|
438
422
|
position: relative;
|
|
439
423
|
}
|
|
440
424
|
.dataviews-view-grid .dataviews-view-grid__media img {
|
|
@@ -515,7 +499,7 @@
|
|
|
515
499
|
right: 0;
|
|
516
500
|
}
|
|
517
501
|
.dataviews-view-list li.is-selected .dataviews-view-list__item-actions, .dataviews-view-list li.is-hovered .dataviews-view-list__item-actions, .dataviews-view-list li:focus-within .dataviews-view-list__item-actions {
|
|
518
|
-
padding-right:
|
|
502
|
+
padding-right: 24px;
|
|
519
503
|
}
|
|
520
504
|
.dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button, .dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button, .dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button {
|
|
521
505
|
opacity: 1;
|
|
@@ -607,7 +591,7 @@
|
|
|
607
591
|
display: none;
|
|
608
592
|
}
|
|
609
593
|
.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value {
|
|
610
|
-
line-height:
|
|
594
|
+
line-height: 24px;
|
|
611
595
|
display: inline-flex;
|
|
612
596
|
}
|
|
613
597
|
.dataviews-view-list .dataviews-view-list__item-actions {
|
|
@@ -817,10 +801,10 @@
|
|
|
817
801
|
border-radius: 16px;
|
|
818
802
|
border: 1px solid transparent;
|
|
819
803
|
cursor: pointer;
|
|
820
|
-
padding:
|
|
821
|
-
height: 32px;
|
|
804
|
+
padding: 4px 12px;
|
|
805
|
+
min-height: 32px;
|
|
822
806
|
background: #f0f0f0;
|
|
823
|
-
color: #
|
|
807
|
+
color: #2f2f2f;
|
|
824
808
|
position: relative;
|
|
825
809
|
display: flex;
|
|
826
810
|
align-items: center;
|
|
@@ -1004,6 +988,17 @@
|
|
|
1004
988
|
position: relative;
|
|
1005
989
|
width: 100%;
|
|
1006
990
|
z-index: 2;
|
|
991
|
+
/*
|
|
992
|
+
* The SiteHubMobile component is displayed
|
|
993
|
+
* for pages that do not have a sidebar,
|
|
994
|
+
* yet it needs the Sidebar component for the React context.
|
|
995
|
+
*
|
|
996
|
+
* This removes the padding in this scenario.
|
|
997
|
+
* See https://github.com/WordPress/gutenberg/pull/63118
|
|
998
|
+
*/
|
|
999
|
+
}
|
|
1000
|
+
.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper {
|
|
1001
|
+
padding: 0;
|
|
1007
1002
|
}
|
|
1008
1003
|
|
|
1009
1004
|
.edit-site-layout__canvas-container {
|
|
@@ -1266,9 +1261,11 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1266
1261
|
.edit-site-sidebar__content {
|
|
1267
1262
|
flex-grow: 1;
|
|
1268
1263
|
overflow-y: auto;
|
|
1264
|
+
overflow-x: hidden;
|
|
1265
|
+
contain: content;
|
|
1269
1266
|
}
|
|
1270
1267
|
|
|
1271
|
-
@keyframes
|
|
1268
|
+
@keyframes _qixpa_slide-from-right {
|
|
1272
1269
|
from {
|
|
1273
1270
|
transform: translateX(50px);
|
|
1274
1271
|
opacity: 0;
|
|
@@ -1278,7 +1275,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1278
1275
|
opacity: 1;
|
|
1279
1276
|
}
|
|
1280
1277
|
}
|
|
1281
|
-
@keyframes
|
|
1278
|
+
@keyframes _qixpa_slide-from-left {
|
|
1282
1279
|
from {
|
|
1283
1280
|
transform: translateX(-50px);
|
|
1284
1281
|
opacity: 0;
|
|
@@ -1334,10 +1331,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1334
1331
|
}
|
|
1335
1332
|
}
|
|
1336
1333
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
1337
|
-
animation-name:
|
|
1334
|
+
animation-name: _qixpa_slide-from-left;
|
|
1338
1335
|
}
|
|
1339
1336
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
1340
|
-
animation-name:
|
|
1337
|
+
animation-name: _qixpa_slide-from-right;
|
|
1341
1338
|
}
|
|
1342
1339
|
|
|
1343
1340
|
.edit-site-site-hub {
|
|
@@ -1461,6 +1458,82 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1461
1458
|
background: #fff;
|
|
1462
1459
|
}
|
|
1463
1460
|
|
|
1461
|
+
.posts-list-page__featured-image {
|
|
1462
|
+
height: 100%;
|
|
1463
|
+
object-fit: cover;
|
|
1464
|
+
width: 100%;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.posts-list-page__featured-image-wrapper {
|
|
1468
|
+
height: 100%;
|
|
1469
|
+
width: 100%;
|
|
1470
|
+
border-radius: 4px;
|
|
1471
|
+
}
|
|
1472
|
+
.posts-list-page__featured-image-wrapper.is-layout-table:not(:has(.posts-list-page-preview-field__button)), .posts-list-page__featured-image-wrapper.is-layout-table .posts-list-page-preview-field__button {
|
|
1473
|
+
width: 32px;
|
|
1474
|
+
height: 32px;
|
|
1475
|
+
display: block;
|
|
1476
|
+
border-radius: 4px;
|
|
1477
|
+
position: relative;
|
|
1478
|
+
overflow: hidden;
|
|
1479
|
+
background-color: #f0f0f0;
|
|
1480
|
+
flex-grow: 0 !important;
|
|
1481
|
+
}
|
|
1482
|
+
.posts-list-page__featured-image-wrapper.is-layout-table:not(:has(.posts-list-page-preview-field__button))::after, .posts-list-page__featured-image-wrapper.is-layout-table .posts-list-page-preview-field__button::after {
|
|
1483
|
+
border-radius: 4px;
|
|
1484
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
1485
|
+
content: "";
|
|
1486
|
+
height: 100%;
|
|
1487
|
+
left: 0;
|
|
1488
|
+
position: absolute;
|
|
1489
|
+
top: 0;
|
|
1490
|
+
width: 100%;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
.posts-list-page-preview-field__button {
|
|
1494
|
+
box-shadow: none;
|
|
1495
|
+
border: none;
|
|
1496
|
+
padding: 0;
|
|
1497
|
+
background-color: unset;
|
|
1498
|
+
box-sizing: border-box;
|
|
1499
|
+
cursor: pointer;
|
|
1500
|
+
overflow: hidden;
|
|
1501
|
+
height: 100%;
|
|
1502
|
+
width: 100%;
|
|
1503
|
+
border-radius: 4px;
|
|
1504
|
+
}
|
|
1505
|
+
.posts-list-page-preview-field__button:focus-visible {
|
|
1506
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1507
|
+
outline: 2px solid transparent;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
.dataviews-view-grid__card.is-selected .posts-list-page-preview-field__button::after {
|
|
1511
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1512
|
+
background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
.posts-list-page-title span {
|
|
1516
|
+
text-overflow: ellipsis;
|
|
1517
|
+
overflow: hidden;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
.posts-list-page-title-badge {
|
|
1521
|
+
background: #f0f0f0;
|
|
1522
|
+
color: #757575;
|
|
1523
|
+
padding: 0 4px;
|
|
1524
|
+
border-radius: 2px;
|
|
1525
|
+
font-size: 12px;
|
|
1526
|
+
font-weight: 400;
|
|
1527
|
+
flex-shrink: 0;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
.posts-list-page-post-author-field__icon-container {
|
|
1531
|
+
height: 24px;
|
|
1532
|
+
}
|
|
1533
|
+
.posts-list-page-post-author-field__icon-container svg {
|
|
1534
|
+
fill: currentColor;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1464
1537
|
.edit-site-resizable-frame__inner {
|
|
1465
1538
|
position: relative;
|
|
1466
1539
|
}
|
|
@@ -1704,4 +1777,11 @@ body .media-frame select.attachment-filters:last-of-type {
|
|
|
1704
1777
|
.no-js #gutenberg-posts-dashboard {
|
|
1705
1778
|
min-height: 0;
|
|
1706
1779
|
position: static;
|
|
1780
|
+
}
|
|
1781
|
+
#gutenberg-posts-dashboard .components-editor-notices__snackbar {
|
|
1782
|
+
position: fixed;
|
|
1783
|
+
right: 0;
|
|
1784
|
+
bottom: 16px;
|
|
1785
|
+
padding-left: 16px;
|
|
1786
|
+
padding-right: 16px;
|
|
1707
1787
|
}
|