@wordpress/block-editor 12.4.0 → 12.5.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 +2 -0
- package/README.md +5 -0
- package/build/components/block-heading-level-dropdown/heading-level-icon.js +10 -2
- package/build/components/block-heading-level-dropdown/heading-level-icon.js.map +1 -1
- package/build/components/block-heading-level-dropdown/index.native.js +4 -3
- package/build/components/block-heading-level-dropdown/index.native.js.map +1 -1
- package/build/components/block-lock/toolbar.js +25 -6
- package/build/components/block-lock/toolbar.js.map +1 -1
- package/build/components/block-mobile-toolbar/block-actions-menu.native.js +3 -6
- package/build/components/block-mobile-toolbar/block-actions-menu.native.js.map +1 -1
- package/build/components/block-parent-selector/index.js +8 -5
- package/build/components/block-parent-selector/index.js.map +1 -1
- package/build/components/block-removal-warning-modal/index.js +18 -25
- package/build/components/block-removal-warning-modal/index.js.map +1 -1
- package/build/components/block-toolbar/index.js +8 -5
- package/build/components/block-toolbar/index.js.map +1 -1
- package/build/components/block-tools/block-contextual-toolbar.js +7 -11
- package/build/components/block-tools/block-contextual-toolbar.js.map +1 -1
- package/build/components/dimensions-tool/aspect-ratio-tool.js +99 -0
- package/build/components/dimensions-tool/aspect-ratio-tool.js.map +1 -0
- package/build/components/dimensions-tool/index.js +207 -0
- package/build/components/dimensions-tool/index.js.map +1 -0
- package/build/components/dimensions-tool/scale-tool.js +111 -0
- package/build/components/dimensions-tool/scale-tool.js.map +1 -0
- package/build/components/dimensions-tool/width-height-tool.js +125 -0
- package/build/components/dimensions-tool/width-height-tool.js.map +1 -0
- package/build/components/global-styles/color-panel.js +1 -1
- package/build/components/global-styles/color-panel.js.map +1 -1
- package/build/components/global-styles/filters-panel.js +1 -1
- package/build/components/global-styles/filters-panel.js.map +1 -1
- package/build/components/global-styles/hooks.js +2 -2
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/typography-panel.js +34 -2
- package/build/components/global-styles/typography-panel.js.map +1 -1
- package/build/components/image-editor/aspect-ratio-dropdown.js +1 -1
- package/build/components/image-editor/aspect-ratio-dropdown.js.map +1 -1
- package/build/components/image-editor/use-save-image.js +1 -2
- package/build/components/image-editor/use-save-image.js.map +1 -1
- package/build/components/image-size-control/index.js +6 -0
- package/build/components/image-size-control/index.js.map +1 -1
- package/build/components/index.js +19 -1
- package/build/components/index.js.map +1 -1
- package/build/components/inserter/block-patterns-explorer/patterns-list.js +2 -2
- package/build/components/inserter/block-patterns-explorer/patterns-list.js.map +1 -1
- package/build/components/inserter/block-patterns-tab.js +7 -35
- package/build/components/inserter/block-patterns-tab.js.map +1 -1
- package/build/components/inserter/hooks/use-block-types-state.js +3 -4
- package/build/components/inserter/hooks/use-block-types-state.js.map +1 -1
- package/build/components/inserter/hooks/use-patterns-state.js +9 -3
- package/build/components/inserter/hooks/use-patterns-state.js.map +1 -1
- package/build/components/inserter/media-tab/hooks.js +2 -21
- package/build/components/inserter/media-tab/hooks.js.map +1 -1
- package/build/components/inserter/reusable-block-rename-hint.js +62 -0
- package/build/components/inserter/reusable-block-rename-hint.js.map +1 -0
- package/build/components/inserter/reusable-blocks-tab.js +6 -2
- package/build/components/inserter/reusable-blocks-tab.js.map +1 -1
- package/build/components/inserter/reusable-blocks-tab.native.js +2 -2
- package/build/components/inserter/reusable-blocks-tab.native.js.map +1 -1
- package/build/components/inserter/tabs.native.js +1 -1
- package/build/components/inserter/tabs.native.js.map +1 -1
- package/build/components/inserter-draggable-blocks/index.js +9 -1
- package/build/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build/components/link-control/constants.js +1 -1
- package/build/components/link-control/constants.js.map +1 -1
- package/build/components/link-control/index.js +17 -15
- package/build/components/link-control/index.js.map +1 -1
- package/build/components/link-control/search-create-button.js +5 -21
- package/build/components/link-control/search-create-button.js.map +1 -1
- package/build/components/link-control/search-input.js +4 -4
- package/build/components/link-control/search-input.js.map +1 -1
- package/build/components/link-control/search-item.js +13 -30
- package/build/components/link-control/search-item.js.map +1 -1
- package/build/components/link-control/search-results.js +2 -2
- package/build/components/link-control/search-results.js.map +1 -1
- package/build/components/link-control/settings-drawer.js +2 -3
- package/build/components/link-control/settings-drawer.js.map +1 -1
- package/build/components/list-view/appender.js +2 -6
- package/build/components/list-view/appender.js.map +1 -1
- package/build/components/provider/index.js +5 -2
- package/build/components/provider/index.js.map +1 -1
- package/build/components/provider/use-block-sync.js +21 -0
- package/build/components/provider/use-block-sync.js.map +1 -1
- package/build/components/resolution-tool/index.js +55 -0
- package/build/components/resolution-tool/index.js.map +1 -0
- package/build/components/url-input/index.js +4 -2
- package/build/components/url-input/index.js.map +1 -1
- package/build/components/writing-flow/use-tab-nav.js +10 -27
- package/build/components/writing-flow/use-tab-nav.js.map +1 -1
- package/build/components/writing-mode-control/index.js +70 -0
- package/build/components/writing-mode-control/index.js.map +1 -0
- package/build/hooks/behaviors.js +25 -20
- package/build/hooks/behaviors.js.map +1 -1
- package/build/hooks/supports.js +7 -1
- package/build/hooks/supports.js.map +1 -1
- package/build/hooks/typography.js +2 -1
- package/build/hooks/typography.js.map +1 -1
- package/build/hooks/utils.js +4 -2
- package/build/hooks/utils.js.map +1 -1
- package/build/private-apis.js +10 -1
- package/build/private-apis.js.map +1 -1
- package/build/private-apis.native.js +3 -0
- package/build/private-apis.native.js.map +1 -1
- package/build/store/actions.js +195 -1
- package/build/store/actions.js.map +1 -1
- package/build/store/defaults.js +1 -0
- package/build/store/defaults.js.map +1 -1
- package/build/store/index.js +10 -1
- package/build/store/index.js.map +1 -1
- package/build/store/private-actions.js +46 -40
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +3 -3
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/reducer.js +22 -8
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +33 -15
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/block-heading-level-dropdown/heading-level-icon.js +9 -2
- package/build-module/components/block-heading-level-dropdown/heading-level-icon.js.map +1 -1
- package/build-module/components/block-heading-level-dropdown/index.native.js +4 -3
- package/build-module/components/block-heading-level-dropdown/index.native.js.map +1 -1
- package/build-module/components/block-lock/toolbar.js +25 -7
- package/build-module/components/block-lock/toolbar.js.map +1 -1
- package/build-module/components/block-mobile-toolbar/block-actions-menu.native.js +4 -6
- package/build-module/components/block-mobile-toolbar/block-actions-menu.native.js.map +1 -1
- package/build-module/components/block-parent-selector/index.js +7 -5
- package/build-module/components/block-parent-selector/index.js.map +1 -1
- package/build-module/components/block-removal-warning-modal/index.js +20 -24
- package/build-module/components/block-removal-warning-modal/index.js.map +1 -1
- package/build-module/components/block-toolbar/index.js +8 -5
- package/build-module/components/block-toolbar/index.js.map +1 -1
- package/build-module/components/block-tools/block-contextual-toolbar.js +8 -11
- package/build-module/components/block-tools/block-contextual-toolbar.js.map +1 -1
- package/build-module/components/dimensions-tool/aspect-ratio-tool.js +87 -0
- package/build-module/components/dimensions-tool/aspect-ratio-tool.js.map +1 -0
- package/build-module/components/dimensions-tool/index.js +195 -0
- package/build-module/components/dimensions-tool/index.js.map +1 -0
- package/build-module/components/dimensions-tool/scale-tool.js +103 -0
- package/build-module/components/dimensions-tool/scale-tool.js.map +1 -0
- package/build-module/components/dimensions-tool/width-height-tool.js +122 -0
- package/build-module/components/dimensions-tool/width-height-tool.js.map +1 -0
- package/build-module/components/global-styles/color-panel.js +1 -1
- package/build-module/components/global-styles/color-panel.js.map +1 -1
- package/build-module/components/global-styles/filters-panel.js +2 -2
- package/build-module/components/global-styles/filters-panel.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +2 -2
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/typography-panel.js +33 -2
- package/build-module/components/global-styles/typography-panel.js.map +1 -1
- package/build-module/components/image-editor/aspect-ratio-dropdown.js +1 -1
- package/build-module/components/image-editor/aspect-ratio-dropdown.js.map +1 -1
- package/build-module/components/image-editor/use-save-image.js +1 -2
- package/build-module/components/image-editor/use-save-image.js.map +1 -1
- package/build-module/components/image-size-control/index.js +5 -0
- package/build-module/components/image-size-control/index.js.map +1 -1
- package/build-module/components/index.js +6 -0
- package/build-module/components/index.js.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/patterns-list.js +2 -2
- package/build-module/components/inserter/block-patterns-explorer/patterns-list.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab.js +7 -33
- package/build-module/components/inserter/block-patterns-tab.js.map +1 -1
- package/build-module/components/inserter/hooks/use-block-types-state.js +3 -4
- package/build-module/components/inserter/hooks/use-block-types-state.js.map +1 -1
- package/build-module/components/inserter/hooks/use-patterns-state.js +9 -3
- package/build-module/components/inserter/hooks/use-patterns-state.js.map +1 -1
- package/build-module/components/inserter/media-tab/hooks.js +2 -21
- package/build-module/components/inserter/media-tab/hooks.js.map +1 -1
- package/build-module/components/inserter/reusable-block-rename-hint.js +48 -0
- package/build-module/components/inserter/reusable-block-rename-hint.js.map +1 -0
- package/build-module/components/inserter/reusable-blocks-tab.js +5 -2
- package/build-module/components/inserter/reusable-blocks-tab.js.map +1 -1
- package/build-module/components/inserter/reusable-blocks-tab.native.js +2 -2
- package/build-module/components/inserter/reusable-blocks-tab.native.js.map +1 -1
- package/build-module/components/inserter/tabs.native.js +1 -1
- package/build-module/components/inserter/tabs.native.js.map +1 -1
- package/build-module/components/inserter-draggable-blocks/index.js +9 -2
- package/build-module/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build-module/components/link-control/constants.js +1 -1
- package/build-module/components/link-control/constants.js.map +1 -1
- package/build-module/components/link-control/index.js +17 -15
- package/build-module/components/link-control/index.js.map +1 -1
- package/build-module/components/link-control/search-create-button.js +7 -20
- package/build-module/components/link-control/search-create-button.js.map +1 -1
- package/build-module/components/link-control/search-input.js +4 -4
- package/build-module/components/link-control/search-input.js.map +1 -1
- package/build-module/components/link-control/search-item.js +14 -28
- package/build-module/components/link-control/search-item.js.map +1 -1
- package/build-module/components/link-control/search-results.js +3 -3
- package/build-module/components/link-control/search-results.js.map +1 -1
- package/build-module/components/link-control/settings-drawer.js +4 -5
- package/build-module/components/link-control/settings-drawer.js.map +1 -1
- package/build-module/components/list-view/appender.js +2 -6
- package/build-module/components/list-view/appender.js.map +1 -1
- package/build-module/components/provider/index.js +5 -2
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/provider/use-block-sync.js +21 -0
- package/build-module/components/provider/use-block-sync.js.map +1 -1
- package/build-module/components/resolution-tool/index.js +45 -0
- package/build-module/components/resolution-tool/index.js.map +1 -0
- package/build-module/components/url-input/index.js +4 -2
- package/build-module/components/url-input/index.js.map +1 -1
- package/build-module/components/writing-flow/use-tab-nav.js +8 -26
- package/build-module/components/writing-flow/use-tab-nav.js.map +1 -1
- package/build-module/components/writing-mode-control/index.js +57 -0
- package/build-module/components/writing-mode-control/index.js.map +1 -0
- package/build-module/hooks/behaviors.js +26 -20
- package/build-module/hooks/behaviors.js.map +1 -1
- package/build-module/hooks/supports.js +7 -1
- package/build-module/hooks/supports.js.map +1 -1
- package/build-module/hooks/typography.js +2 -1
- package/build-module/hooks/typography.js.map +1 -1
- package/build-module/hooks/utils.js +4 -2
- package/build-module/hooks/utils.js.map +1 -1
- package/build-module/private-apis.js +7 -1
- package/build-module/private-apis.js.map +1 -1
- package/build-module/private-apis.native.js +2 -0
- package/build-module/private-apis.native.js.map +1 -1
- package/build-module/store/actions.js +191 -1
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/defaults.js +1 -0
- package/build-module/store/defaults.js.map +1 -1
- package/build-module/store/index.js +10 -1
- package/build-module/store/index.js.map +1 -1
- package/build-module/store/private-actions.js +45 -36
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +2 -2
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/reducer.js +22 -8
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +33 -15
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/content-rtl.css +3 -0
- package/build-style/content.css +3 -0
- package/build-style/style-rtl.css +131 -129
- package/build-style/style.css +131 -129
- package/package.json +32 -31
- package/src/components/alignment-control/test/__snapshots__/index.js.snap +6 -6
- package/src/components/block-alignment-control/test/__snapshots__/index.js.snap +5 -5
- package/src/components/block-draggable/style.scss +1 -0
- package/src/components/block-heading-level-dropdown/heading-level-icon.js +6 -1
- package/src/components/block-heading-level-dropdown/index.native.js +8 -4
- package/src/components/block-inspector/style.scss +2 -1
- package/src/components/block-lock/toolbar.js +34 -6
- package/src/components/block-mobile-toolbar/block-actions-menu.native.js +4 -8
- package/src/components/block-parent-selector/index.js +13 -8
- package/src/components/block-removal-warning-modal/index.js +20 -33
- package/src/components/block-toolbar/index.js +9 -6
- package/src/components/block-tools/block-contextual-toolbar.js +5 -11
- package/src/components/block-tools/style.scss +73 -26
- package/src/components/default-block-appender/content.scss +11 -0
- package/src/components/dimensions-tool/aspect-ratio-tool.js +124 -0
- package/src/components/dimensions-tool/index.js +212 -0
- package/src/components/dimensions-tool/scale-tool.js +124 -0
- package/src/components/dimensions-tool/stories/aspect-ratio-tool.js +52 -0
- package/src/components/dimensions-tool/stories/index.js +54 -0
- package/src/components/dimensions-tool/stories/scale-tool.js +48 -0
- package/src/components/dimensions-tool/stories/width-height-tool.js +54 -0
- package/src/components/dimensions-tool/test/index.js +641 -0
- package/src/components/dimensions-tool/width-height-tool.js +113 -0
- package/src/components/font-family/README.md +71 -0
- package/src/components/global-styles/color-panel.js +1 -1
- package/src/components/global-styles/filters-panel.js +2 -2
- package/src/components/global-styles/hooks.js +2 -0
- package/src/components/global-styles/typography-panel.js +40 -0
- package/src/components/image-editor/aspect-ratio-dropdown.js +1 -1
- package/src/components/image-editor/use-save-image.js +0 -1
- package/src/components/image-size-control/index.js +6 -0
- package/src/components/index.js +6 -0
- package/src/components/inserter/block-patterns-explorer/patterns-list.js +8 -2
- package/src/components/inserter/block-patterns-tab.js +8 -56
- package/src/components/inserter/hooks/use-block-types-state.js +3 -4
- package/src/components/inserter/hooks/use-patterns-state.js +35 -19
- package/src/components/inserter/media-tab/hooks.js +2 -22
- package/src/components/inserter/reusable-block-rename-hint.js +52 -0
- package/src/components/inserter/reusable-blocks-tab.js +5 -1
- package/src/components/inserter/reusable-blocks-tab.native.js +2 -2
- package/src/components/inserter/style.scss +28 -0
- package/src/components/inserter/tabs.native.js +5 -1
- package/src/components/inserter-draggable-blocks/index.js +13 -2
- package/src/components/link-control/constants.js +1 -1
- package/src/components/link-control/index.js +32 -28
- package/src/components/link-control/search-create-button.js +8 -26
- package/src/components/link-control/search-input.js +4 -3
- package/src/components/link-control/search-item.js +21 -43
- package/src/components/link-control/search-results.js +48 -46
- package/src/components/link-control/settings-drawer.js +6 -5
- package/src/components/link-control/style.scss +51 -123
- package/src/components/link-control/test/index.js +135 -123
- package/src/components/list-view/appender.js +5 -6
- package/src/components/list-view/style.scss +1 -2
- package/src/components/media-replace-flow/test/index.js +1 -1
- package/src/components/panel-color-settings/README.md +98 -0
- package/src/components/provider/index.js +9 -2
- package/src/components/provider/test/use-block-sync.js +21 -6
- package/src/components/provider/use-block-sync.js +19 -0
- package/src/components/recursion-provider/README.md +101 -0
- package/src/components/resolution-tool/index.js +56 -0
- package/src/components/resolution-tool/stories/index.js +48 -0
- package/src/components/url-input/index.js +2 -0
- package/src/components/writing-flow/use-tab-nav.js +10 -33
- package/src/components/writing-mode-control/index.js +68 -0
- package/src/components/writing-mode-control/style.scss +18 -0
- package/src/hooks/behaviors.js +25 -16
- package/src/hooks/supports.js +7 -0
- package/src/hooks/typography.js +2 -0
- package/src/hooks/utils.js +3 -0
- package/src/private-apis.js +6 -0
- package/src/private-apis.native.js +2 -0
- package/src/store/actions.js +194 -1
- package/src/store/defaults.js +1 -0
- package/src/store/index.js +10 -0
- package/src/store/private-actions.js +39 -39
- package/src/store/private-selectors.js +2 -2
- package/src/store/reducer.js +22 -8
- package/src/store/selectors.js +54 -20
- package/src/store/test/actions.js +111 -0
- package/src/store/test/private-actions.js +56 -0
|
@@ -41,6 +41,7 @@ $preview-image-height: 140px;
|
|
|
41
41
|
// Provides positioning context for reset button. Without this then when an
|
|
42
42
|
// error notice is displayed the input's reset button is incorrectly positioned.
|
|
43
43
|
.block-editor-link-control__search-input-wrapper {
|
|
44
|
+
margin-bottom: $grid-unit-10;
|
|
44
45
|
position: relative;
|
|
45
46
|
}
|
|
46
47
|
|
|
@@ -59,29 +60,18 @@ $preview-image-height: 140px;
|
|
|
59
60
|
.block-editor-link-control__field {
|
|
60
61
|
margin: $grid-unit-20; // allow margin collapse for vertical spacing.
|
|
61
62
|
|
|
62
|
-
// Element wrapping the label and input.
|
|
63
|
-
> .components-base-control__field {
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.components-base-control__label {
|
|
69
|
-
margin-right: $grid-unit-20;
|
|
70
|
-
margin-bottom: 0;
|
|
71
|
-
min-width: 29px; // align with search results.
|
|
72
|
-
}
|
|
73
|
-
|
|
74
63
|
input[type="text"],
|
|
75
64
|
// Specificity overide of URLInput defaults.
|
|
76
65
|
&.block-editor-url-input input[type="text"].block-editor-url-input__input {
|
|
77
66
|
@include input-control;
|
|
78
|
-
width: calc(100% - #{$grid-unit-20 * 2});
|
|
79
67
|
display: block;
|
|
80
|
-
|
|
68
|
+
border: 1px solid $gray-600;
|
|
69
|
+
border-radius: $radius-block-ui;
|
|
70
|
+
height: $button-size-next-default-40px; // components do not properly support unstable-large yet.
|
|
81
71
|
margin: 0;
|
|
72
|
+
padding: $grid-unit-10 $grid-unit-20;
|
|
82
73
|
position: relative;
|
|
83
|
-
|
|
84
|
-
border-radius: $radius-block-ui;
|
|
74
|
+
width: 100%;
|
|
85
75
|
}
|
|
86
76
|
}
|
|
87
77
|
|
|
@@ -94,12 +84,12 @@ $preview-image-height: 140px;
|
|
|
94
84
|
flex-direction: row-reverse; // put "Cancel" on the left but retain DOM order.
|
|
95
85
|
justify-content: flex-start;
|
|
96
86
|
gap: $grid-unit-10;
|
|
87
|
+
padding: $grid-unit-10;
|
|
97
88
|
order: 20;
|
|
98
89
|
}
|
|
99
90
|
|
|
100
91
|
.block-editor-link-control__search-results-wrapper {
|
|
101
92
|
position: relative;
|
|
102
|
-
margin-top: -$grid-unit-20 + 1px;
|
|
103
93
|
|
|
104
94
|
&::before,
|
|
105
95
|
&::after {
|
|
@@ -126,8 +116,8 @@ $preview-image-height: 140px;
|
|
|
126
116
|
}
|
|
127
117
|
|
|
128
118
|
.block-editor-link-control__search-results {
|
|
129
|
-
margin:
|
|
130
|
-
padding: $grid-unit-
|
|
119
|
+
margin-top: -$grid-unit-20;
|
|
120
|
+
padding: $grid-unit-10;
|
|
131
121
|
max-height: 200px;
|
|
132
122
|
overflow-y: auto; // allow results list to scroll
|
|
133
123
|
|
|
@@ -137,39 +127,28 @@ $preview-image-height: 140px;
|
|
|
137
127
|
}
|
|
138
128
|
|
|
139
129
|
.block-editor-link-control__search-item {
|
|
140
|
-
position: relative;
|
|
141
|
-
display: flex;
|
|
142
|
-
align-items: flex-start; // when link text is very long it is important this indicator remains visible and thus should be aligned top.
|
|
143
|
-
font-size: $default-font-size;
|
|
144
|
-
cursor: pointer;
|
|
145
|
-
background: $white;
|
|
146
|
-
width: 100%;
|
|
147
|
-
border: none;
|
|
148
|
-
text-align: left;
|
|
149
|
-
padding: $grid-unit-15 $grid-unit-20;
|
|
150
|
-
border-radius: 2px;
|
|
151
|
-
height: auto;
|
|
152
130
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
131
|
+
&.components-button.components-menu-item__button {
|
|
132
|
+
height: auto;
|
|
133
|
+
text-align: left;
|
|
134
|
+
}
|
|
156
135
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
136
|
+
.components-menu-item__item {
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
text-overflow: ellipsis;
|
|
139
|
+
// Inline block required to preserve white space
|
|
140
|
+
// between `<mark>` elements and text nodes.
|
|
141
|
+
display: inline-block;
|
|
160
142
|
}
|
|
161
143
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
144
|
+
.components-menu-item__shortcut {
|
|
145
|
+
color: $gray-700;
|
|
146
|
+
text-transform: capitalize;
|
|
147
|
+
white-space: nowrap; // tags shouldn't go over two lines.
|
|
165
148
|
}
|
|
166
149
|
|
|
167
|
-
|
|
150
|
+
&[aria-selected] {
|
|
168
151
|
background: $gray-100;
|
|
169
|
-
|
|
170
|
-
.block-editor-link-control__search-item-type {
|
|
171
|
-
background: $white;
|
|
172
|
-
}
|
|
173
152
|
}
|
|
174
153
|
|
|
175
154
|
&.is-current {
|
|
@@ -209,7 +188,6 @@ $preview-image-height: 140px;
|
|
|
209
188
|
|
|
210
189
|
.block-editor-link-control__search-item-icon {
|
|
211
190
|
position: relative;
|
|
212
|
-
top: 0.2em;
|
|
213
191
|
margin-right: $grid-unit-10;
|
|
214
192
|
max-height: 24px;
|
|
215
193
|
flex-shrink: 0;
|
|
@@ -228,18 +206,6 @@ $preview-image-height: 140px;
|
|
|
228
206
|
max-height: 32px;
|
|
229
207
|
}
|
|
230
208
|
|
|
231
|
-
.block-editor-link-control__search-item-info,
|
|
232
|
-
.block-editor-link-control__search-item-title {
|
|
233
|
-
overflow: hidden;
|
|
234
|
-
text-overflow: ellipsis;
|
|
235
|
-
|
|
236
|
-
.components-external-link__icon {
|
|
237
|
-
position: absolute;
|
|
238
|
-
right: 0;
|
|
239
|
-
margin-top: 0;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
209
|
.block-editor-link-control__search-item-title {
|
|
244
210
|
display: block;
|
|
245
211
|
margin-bottom: 0.2em;
|
|
@@ -261,28 +227,6 @@ $preview-image-height: 140px;
|
|
|
261
227
|
}
|
|
262
228
|
}
|
|
263
229
|
|
|
264
|
-
.block-editor-link-control__search-item-info {
|
|
265
|
-
display: block;
|
|
266
|
-
color: $gray-700;
|
|
267
|
-
font-size: 0.9em;
|
|
268
|
-
line-height: 1.3;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.block-editor-link-control__search-item-error-notice {
|
|
272
|
-
font-style: italic;
|
|
273
|
-
font-size: 1.1em;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.block-editor-link-control__search-item-type {
|
|
277
|
-
display: block;
|
|
278
|
-
padding: 3px 6px;
|
|
279
|
-
margin-left: auto;
|
|
280
|
-
font-size: 0.9em;
|
|
281
|
-
background-color: $gray-100;
|
|
282
|
-
border-radius: 2px;
|
|
283
|
-
white-space: nowrap; // tags shouldn't go over two lines.
|
|
284
|
-
}
|
|
285
|
-
|
|
286
230
|
.block-editor-link-control__search-item-description {
|
|
287
231
|
padding-top: 12px;
|
|
288
232
|
margin: 0;
|
|
@@ -422,11 +366,6 @@ $preview-image-height: 140px;
|
|
|
422
366
|
}
|
|
423
367
|
}
|
|
424
368
|
|
|
425
|
-
// Specificity override
|
|
426
|
-
.block-editor-link-control__search-results div[role="menu"] > .block-editor-link-control__search-item.block-editor-link-control__search-item {
|
|
427
|
-
padding: 10px;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
369
|
.block-editor-link-control__drawer {
|
|
431
370
|
display: flex; // allow for ordering.
|
|
432
371
|
order: 30;
|
|
@@ -440,36 +379,7 @@ $preview-image-height: 140px;
|
|
|
440
379
|
display: flex; // allow for ordering.
|
|
441
380
|
flex-direction: column;
|
|
442
381
|
flex-basis: 100%; // occupy full width.
|
|
443
|
-
margin-top: $grid-unit-20;
|
|
444
|
-
padding-top: $grid-unit-20;
|
|
445
382
|
position: relative;
|
|
446
|
-
|
|
447
|
-
&::after {
|
|
448
|
-
content: "";
|
|
449
|
-
display: block;
|
|
450
|
-
height: 1px;
|
|
451
|
-
background-color: $gray-300;
|
|
452
|
-
position: absolute;
|
|
453
|
-
left: -$grid-unit-20;
|
|
454
|
-
right: -$grid-unit-20;
|
|
455
|
-
top: 0;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
.block-editor-link-control__tools {
|
|
460
|
-
display: flex;
|
|
461
|
-
flex-wrap: wrap;
|
|
462
|
-
align-items: center;
|
|
463
|
-
justify-content: space-between;
|
|
464
|
-
margin: 0;
|
|
465
|
-
padding: $grid-unit-20;
|
|
466
|
-
|
|
467
|
-
// To hide the horizontal scrollbar on toggle.
|
|
468
|
-
// Margin and padding are needed to prevent cutoff of the toggle button focus outline.
|
|
469
|
-
// See: https://github.com/WordPress/gutenberg/pull/47986
|
|
470
|
-
margin-top: calc(var(--wp-admin-border-width-focus) * -1);
|
|
471
|
-
padding-top: var(--wp-admin-border-width-focus);
|
|
472
|
-
overflow: hidden;
|
|
473
383
|
}
|
|
474
384
|
|
|
475
385
|
.block-editor-link-control__unlink {
|
|
@@ -477,17 +387,10 @@ $preview-image-height: 140px;
|
|
|
477
387
|
padding-right: $grid-unit-20;
|
|
478
388
|
}
|
|
479
389
|
|
|
480
|
-
.block-editor-link-control__settings {
|
|
481
|
-
flex: 1;
|
|
482
|
-
margin: 0;
|
|
483
|
-
|
|
484
|
-
.is-alternate & {
|
|
485
|
-
border-top: $border-width solid $gray-900;
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
|
|
489
390
|
.block-editor-link-control__setting {
|
|
490
391
|
margin-bottom: $grid-unit-20;
|
|
392
|
+
flex: 1;
|
|
393
|
+
padding: $grid-unit-10 0 $grid-unit-10 $grid-unit-30;
|
|
491
394
|
|
|
492
395
|
// Cancel left margin inherited from WP Admin Forms CSS.
|
|
493
396
|
input {
|
|
@@ -499,6 +402,31 @@ $preview-image-height: 140px;
|
|
|
499
402
|
}
|
|
500
403
|
}
|
|
501
404
|
|
|
405
|
+
.block-editor-link-control__tools {
|
|
406
|
+
padding: $grid-unit-10 $grid-unit-10 0 $grid-unit-10;
|
|
407
|
+
margin-top: #{$grid-unit-20 * -1};
|
|
408
|
+
|
|
409
|
+
.components-button.block-editor-link-control__drawer-toggle {
|
|
410
|
+
padding-left: 0;
|
|
411
|
+
gap: 0;
|
|
412
|
+
|
|
413
|
+
// Point downwards when open (same as list view expander)
|
|
414
|
+
&[aria-expanded="true"] svg {
|
|
415
|
+
visibility: visible;
|
|
416
|
+
transition: transform 0.1s ease;
|
|
417
|
+
transform: rotate(90deg);
|
|
418
|
+
@include reduce-motion("transition");
|
|
419
|
+
}
|
|
420
|
+
// Point rightwards when closed (same as list view expander)
|
|
421
|
+
&[aria-expanded="false"] svg {
|
|
422
|
+
visibility: visible;
|
|
423
|
+
transform: rotate(0deg);
|
|
424
|
+
transition: transform 0.1s ease;
|
|
425
|
+
@include reduce-motion("transition");
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
502
430
|
.block-editor-link-control .block-editor-link-control__search-input .components-spinner {
|
|
503
431
|
display: block;
|
|
504
432
|
|