@wordpress/block-library 7.15.0 → 7.15.1-next.4d3b314fd5.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 +1 -0
- package/build/comments-pagination-numbers/index.js +7 -0
- package/build/comments-pagination-numbers/index.js.map +1 -1
- package/build/gallery/gallery.js +2 -28
- package/build/gallery/gallery.js.map +1 -1
- package/build/paragraph/drop-zone.js +99 -0
- package/build/paragraph/drop-zone.js.map +1 -0
- package/build/paragraph/edit.js +11 -3
- package/build/paragraph/edit.js.map +1 -1
- package/build/post-content/edit.js +6 -1
- package/build/post-content/edit.js.map +1 -1
- package/build-module/comments-pagination-numbers/index.js +7 -0
- package/build-module/comments-pagination-numbers/index.js.map +1 -1
- package/build-module/gallery/gallery.js +2 -29
- package/build-module/gallery/gallery.js.map +1 -1
- package/build-module/paragraph/drop-zone.js +88 -0
- package/build-module/paragraph/drop-zone.js.map +1 -0
- package/build-module/paragraph/edit.js +10 -3
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/post-content/edit.js +6 -1
- package/build-module/post-content/edit.js.map +1 -1
- package/build-style/classic-rtl.css +85 -0
- package/build-style/classic.css +85 -0
- package/build-style/editor-rtl.css +41 -2
- package/build-style/editor.css +41 -2
- package/build-style/group/editor-rtl.css +11 -1
- package/build-style/group/editor.css +11 -1
- package/build-style/image/editor-rtl.css +3 -0
- package/build-style/image/editor.css +3 -0
- package/build-style/navigation/editor-rtl.css +11 -1
- package/build-style/navigation/editor.css +11 -1
- package/build-style/paragraph/editor-rtl.css +16 -0
- package/build-style/paragraph/editor.css +16 -0
- package/package.json +28 -28
- package/src/archives/index.php +4 -7
- package/src/classic.scss +15 -0
- package/src/comment-template/index.php +18 -8
- package/src/comments-pagination-numbers/block.json +7 -0
- package/src/gallery/gallery.js +1 -31
- package/src/image/editor.scss +4 -0
- package/src/navigation-submenu/index.php +11 -2
- package/src/page-list/index.php +1 -1
- package/src/paragraph/drop-zone.js +105 -0
- package/src/paragraph/edit.js +14 -1
- package/src/paragraph/editor.scss +20 -0
- package/src/post-content/edit.js +3 -1
- package/src/tag-cloud/index.php +1 -8
|
@@ -9,9 +9,11 @@ import classnames from 'classnames';
|
|
|
9
9
|
* WordPress dependencies
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
import { useState } from '@wordpress/element';
|
|
12
13
|
import { __, _x, isRTL } from '@wordpress/i18n';
|
|
13
14
|
import { ToolbarButton, ToggleControl, __experimentalToolsPanelItem as ToolsPanelItem } from '@wordpress/components';
|
|
14
15
|
import { AlignmentControl, BlockControls, InspectorControls, RichText, useBlockProps, useSetting } from '@wordpress/block-editor';
|
|
16
|
+
import { useMergeRefs } from '@wordpress/compose';
|
|
15
17
|
import { createBlock } from '@wordpress/blocks';
|
|
16
18
|
import { formatLtr } from '@wordpress/icons';
|
|
17
19
|
/**
|
|
@@ -19,6 +21,7 @@ import { formatLtr } from '@wordpress/icons';
|
|
|
19
21
|
*/
|
|
20
22
|
|
|
21
23
|
import { useOnEnter } from './use-enter';
|
|
24
|
+
import DropZone from './drop-zone';
|
|
22
25
|
const name = 'core/paragraph';
|
|
23
26
|
|
|
24
27
|
function ParagraphRTLControl(_ref) {
|
|
@@ -53,11 +56,12 @@ function ParagraphBlock(_ref2) {
|
|
|
53
56
|
placeholder
|
|
54
57
|
} = attributes;
|
|
55
58
|
const isDropCapFeatureEnabled = useSetting('typography.dropCap');
|
|
59
|
+
const [paragraphElement, setParagraphElement] = useState(null);
|
|
56
60
|
const blockProps = useBlockProps({
|
|
57
|
-
ref: useOnEnter({
|
|
61
|
+
ref: useMergeRefs([useOnEnter({
|
|
58
62
|
clientId,
|
|
59
63
|
content
|
|
60
|
-
}),
|
|
64
|
+
}), setParagraphElement]),
|
|
61
65
|
className: classnames({
|
|
62
66
|
'has-drop-cap': dropCap,
|
|
63
67
|
[`has-text-align-${align}`]: align
|
|
@@ -97,7 +101,10 @@ function ParagraphBlock(_ref2) {
|
|
|
97
101
|
dropCap: !dropCap
|
|
98
102
|
}),
|
|
99
103
|
help: dropCap ? __('Showing large initial letter.') : __('Toggle to show a large initial letter.')
|
|
100
|
-
}))), createElement(
|
|
104
|
+
}))), !content && createElement(DropZone, {
|
|
105
|
+
clientId: clientId,
|
|
106
|
+
paragraphElement: paragraphElement
|
|
107
|
+
}), createElement(RichText, _extends({
|
|
101
108
|
identifier: "content",
|
|
102
109
|
tagName: "p"
|
|
103
110
|
}, blockProps, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/block-library/src/paragraph/edit.js"],"names":["classnames","__","_x","isRTL","ToolbarButton","ToggleControl","__experimentalToolsPanelItem","ToolsPanelItem","AlignmentControl","BlockControls","InspectorControls","RichText","useBlockProps","useSetting","createBlock","formatLtr","useOnEnter","name","ParagraphRTLControl","direction","setDirection","undefined","ParagraphBlock","attributes","mergeBlocks","onReplace","onRemove","setAttributes","clientId","align","content","dropCap","placeholder","isDropCapFeatureEnabled","blockProps","ref","className","style","newAlign","newDirection","newContent","value","isOriginal","newAttributes","block"],"mappings":";;;AAAA;AACA;AACA;AACA,OAAOA,UAAP,MAAuB,YAAvB;AAEA;AACA;AACA;;AACA,SAASC,EAAT,EAAaC,EAAb,EAAiBC,KAAjB,QAA8B,iBAA9B;AACA,SACCC,aADD,EAECC,aAFD,EAGCC,4BAA4B,IAAIC,cAHjC,QAIO,uBAJP;AAKA,SACCC,gBADD,EAECC,aAFD,EAGCC,iBAHD,EAICC,QAJD,EAKCC,aALD,EAMCC,UAND,QAOO,yBAPP;AAQA,SAASC,WAAT,QAA4B,mBAA5B;AACA,SAASC,SAAT,QAA0B,kBAA1B;AAEA;AACA;AACA;;AACA,SAASC,UAAT,QAA2B,aAA3B;AAEA,MAAMC,IAAI,GAAG,gBAAb;;AAEA,SAASC,mBAAT,OAA4D;AAAA,MAA9B;AAAEC,IAAAA,SAAF;AAAaC,IAAAA;AAAb,GAA8B;AAC3D,
|
|
1
|
+
{"version":3,"sources":["@wordpress/block-library/src/paragraph/edit.js"],"names":["classnames","useState","__","_x","isRTL","ToolbarButton","ToggleControl","__experimentalToolsPanelItem","ToolsPanelItem","AlignmentControl","BlockControls","InspectorControls","RichText","useBlockProps","useSetting","useMergeRefs","createBlock","formatLtr","useOnEnter","DropZone","name","ParagraphRTLControl","direction","setDirection","undefined","ParagraphBlock","attributes","mergeBlocks","onReplace","onRemove","setAttributes","clientId","align","content","dropCap","placeholder","isDropCapFeatureEnabled","paragraphElement","setParagraphElement","blockProps","ref","className","style","newAlign","newDirection","newContent","value","isOriginal","newAttributes","block"],"mappings":";;;AAAA;AACA;AACA;AACA,OAAOA,UAAP,MAAuB,YAAvB;AAEA;AACA;AACA;;AACA,SAASC,QAAT,QAAyB,oBAAzB;AACA,SAASC,EAAT,EAAaC,EAAb,EAAiBC,KAAjB,QAA8B,iBAA9B;AACA,SACCC,aADD,EAECC,aAFD,EAGCC,4BAA4B,IAAIC,cAHjC,QAIO,uBAJP;AAKA,SACCC,gBADD,EAECC,aAFD,EAGCC,iBAHD,EAICC,QAJD,EAKCC,aALD,EAMCC,UAND,QAOO,yBAPP;AAQA,SAASC,YAAT,QAA6B,oBAA7B;AACA,SAASC,WAAT,QAA4B,mBAA5B;AACA,SAASC,SAAT,QAA0B,kBAA1B;AAEA;AACA;AACA;;AACA,SAASC,UAAT,QAA2B,aAA3B;AACA,OAAOC,QAAP,MAAqB,aAArB;AAEA,MAAMC,IAAI,GAAG,gBAAb;;AAEA,SAASC,mBAAT,OAA4D;AAAA,MAA9B;AAAEC,IAAAA,SAAF;AAAaC,IAAAA;AAAb,GAA8B;AAC3D,SACCnB,KAAK,MACJ,cAAC,aAAD;AACC,IAAA,IAAI,EAAGa,SADR;AAEC,IAAA,KAAK,EAAGd,EAAE,CAAE,eAAF,EAAmB,eAAnB,CAFX;AAGC,IAAA,QAAQ,EAAGmB,SAAS,KAAK,KAH1B;AAIC,IAAA,OAAO,EAAG,MAAM;AACfC,MAAAA,Y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fO,UAAAA,OAAO,EAAEa;AAFM,SAAhB;AAIA;;AAED,YAAMG,KAAK,GAAGjC,WAAW,CAAEI,IAAF,EAAQ4B,aAAR,CAAzB;;AAEA,UAAKD,UAAL,EAAkB;AACjBE,QAAAA,KAAK,CAAClB,QAAN,GAAiBA,QAAjB;AACA;;AAED,aAAOkB,KAAP;AACA,KAzBF;AA0BC,IAAA,OAAO,EAAGtB,WA1BX;AA2BC,IAAA,SAAS,EAAGC,SA3Bb;AA4BC,IAAA,QAAQ,EAAGC,QA5BZ;AA6BC,kBACCI,OAAO,GACJ/B,EAAE,CAAE,iBAAF,CADE,GAEJA,EAAE,CACF,oEADE,CAhCP;AAoCC,kBAAa+B,OAAO,GAAG,KAAH,GAAW,IApChC;AAqCC,IAAA,WAAW,EAAGE,WAAW,IAAIjC,EAAE,CAAE,0BAAF,CArChC;AAsCC,+BAA0BiC,WAAW,GAAG,IAAH,GAAUX,SAtChD;AAuCC,IAAA,yBAAyB,MAvC1B;AAwCC,IAAA,oCAAoC;AAxCrC,KAjDD,CADD;AA8FA;;AAED,eAAeC,cAAf","sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { useState } from '@wordpress/element';\nimport { __, _x, isRTL } from '@wordpress/i18n';\nimport {\n\tToolbarButton,\n\tToggleControl,\n\t__experimentalToolsPanelItem as ToolsPanelItem,\n} from '@wordpress/components';\nimport {\n\tAlignmentControl,\n\tBlockControls,\n\tInspectorControls,\n\tRichText,\n\tuseBlockProps,\n\tuseSetting,\n} from '@wordpress/block-editor';\nimport { useMergeRefs } from '@wordpress/compose';\nimport { createBlock } from '@wordpress/blocks';\nimport { formatLtr } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport { useOnEnter } from './use-enter';\nimport DropZone from './drop-zone';\n\nconst name = 'core/paragraph';\n\nfunction ParagraphRTLControl( { direction, setDirection } ) {\n\treturn (\n\t\tisRTL() && (\n\t\t\t<ToolbarButton\n\t\t\t\ticon={ formatLtr }\n\t\t\t\ttitle={ _x( 'Left to right', 'editor button' ) }\n\t\t\t\tisActive={ direction === 'ltr' }\n\t\t\t\tonClick={ () => {\n\t\t\t\t\tsetDirection( direction === 'ltr' ? undefined : 'ltr' );\n\t\t\t\t} }\n\t\t\t/>\n\t\t)\n\t);\n}\n\nfunction ParagraphBlock( {\n\tattributes,\n\tmergeBlocks,\n\tonReplace,\n\tonRemove,\n\tsetAttributes,\n\tclientId,\n} ) {\n\tconst { align, content, direction, dropCap, placeholder } = attributes;\n\tconst isDropCapFeatureEnabled = useSetting( 'typography.dropCap' );\n\tconst [ paragraphElement, setParagraphElement ] = useState( null );\n\tconst blockProps = useBlockProps( {\n\t\tref: useMergeRefs( [\n\t\t\tuseOnEnter( { clientId, content } ),\n\t\t\tsetParagraphElement,\n\t\t] ),\n\t\tclassName: classnames( {\n\t\t\t'has-drop-cap': dropCap,\n\t\t\t[ `has-text-align-${ align }` ]: align,\n\t\t} ),\n\t\tstyle: { direction },\n\t} );\n\n\treturn (\n\t\t<>\n\t\t\t<BlockControls group=\"block\">\n\t\t\t\t<AlignmentControl\n\t\t\t\t\tvalue={ align }\n\t\t\t\t\tonChange={ ( newAlign ) =>\n\t\t\t\t\t\tsetAttributes( { align: newAlign } )\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t\t<ParagraphRTLControl\n\t\t\t\t\tdirection={ direction }\n\t\t\t\t\tsetDirection={ ( newDirection ) =>\n\t\t\t\t\t\tsetAttributes( { direction: newDirection } )\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t</BlockControls>\n\t\t\t{ isDropCapFeatureEnabled && (\n\t\t\t\t<InspectorControls __experimentalGroup=\"typography\">\n\t\t\t\t\t<ToolsPanelItem\n\t\t\t\t\t\thasValue={ () => !! dropCap }\n\t\t\t\t\t\tlabel={ __( 'Drop cap' ) }\n\t\t\t\t\t\tonDeselect={ () =>\n\t\t\t\t\t\t\tsetAttributes( { dropCap: undefined } )\n\t\t\t\t\t\t}\n\t\t\t\t\t\tresetAllFilter={ () => ( { dropCap: undefined } ) }\n\t\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t\t>\n\t\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t\tlabel={ __( 'Drop cap' ) }\n\t\t\t\t\t\t\tchecked={ !! dropCap }\n\t\t\t\t\t\t\tonChange={ () =>\n\t\t\t\t\t\t\t\tsetAttributes( { dropCap: ! dropCap } )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\thelp={\n\t\t\t\t\t\t\t\tdropCap\n\t\t\t\t\t\t\t\t\t? __( 'Showing large initial letter.' )\n\t\t\t\t\t\t\t\t\t: __(\n\t\t\t\t\t\t\t\t\t\t\t'Toggle to show a large initial letter.'\n\t\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToolsPanelItem>\n\t\t\t\t</InspectorControls>\n\t\t\t) }\n\t\t\t{ ! content && (\n\t\t\t\t<DropZone\n\t\t\t\t\tclientId={ clientId }\n\t\t\t\t\tparagraphElement={ paragraphElement }\n\t\t\t\t/>\n\t\t\t) }\n\t\t\t<RichText\n\t\t\t\tidentifier=\"content\"\n\t\t\t\ttagName=\"p\"\n\t\t\t\t{ ...blockProps }\n\t\t\t\tvalue={ content }\n\t\t\t\tonChange={ ( newContent ) =>\n\t\t\t\t\tsetAttributes( { content: newContent } )\n\t\t\t\t}\n\t\t\t\tonSplit={ ( value, isOriginal ) => {\n\t\t\t\t\tlet newAttributes;\n\n\t\t\t\t\tif ( isOriginal || value ) {\n\t\t\t\t\t\tnewAttributes = {\n\t\t\t\t\t\t\t...attributes,\n\t\t\t\t\t\t\tcontent: value,\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\tconst block = createBlock( name, newAttributes );\n\n\t\t\t\t\tif ( isOriginal ) {\n\t\t\t\t\t\tblock.clientId = clientId;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn block;\n\t\t\t\t} }\n\t\t\t\tonMerge={ mergeBlocks }\n\t\t\t\tonReplace={ onReplace }\n\t\t\t\tonRemove={ onRemove }\n\t\t\t\taria-label={\n\t\t\t\t\tcontent\n\t\t\t\t\t\t? __( 'Paragraph block' )\n\t\t\t\t\t\t: __(\n\t\t\t\t\t\t\t\t'Empty block; start writing or type forward slash to choose a block'\n\t\t\t\t\t\t )\n\t\t\t\t}\n\t\t\t\tdata-empty={ content ? false : true }\n\t\t\t\tplaceholder={ placeholder || __( 'Type / to choose a block' ) }\n\t\t\t\tdata-custom-placeholder={ placeholder ? true : undefined }\n\t\t\t\t__unstableEmbedURLOnPaste\n\t\t\t\t__unstableAllowPrefixTransformations\n\t\t\t/>\n\t\t</>\n\t);\n}\n\nexport default ParagraphBlock;\n"]}
|
|
@@ -47,7 +47,12 @@ function EditableContent(_ref2) {
|
|
|
47
47
|
return (_getSettings = getSettings()) === null || _getSettings === void 0 ? void 0 : _getSettings.supportsLayout;
|
|
48
48
|
}, []);
|
|
49
49
|
const defaultLayout = useSetting('layout') || {};
|
|
50
|
-
const usedLayout =
|
|
50
|
+
const usedLayout = !(layout !== null && layout !== void 0 && layout.type) ? { ...defaultLayout,
|
|
51
|
+
...layout,
|
|
52
|
+
type: 'default'
|
|
53
|
+
} : { ...defaultLayout,
|
|
54
|
+
...layout
|
|
55
|
+
};
|
|
51
56
|
const [blocks, onInput, onChange] = useEntityBlockEditor('postType', postType, {
|
|
52
57
|
id: postId
|
|
53
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/block-library/src/post-content/edit.js"],"names":["__","useSelect","useBlockProps","useInnerBlocksProps","useSetting","__experimentalRecursionProvider","RecursionProvider","__experimentalUseHasRecursion","useHasRecursion","store","blockEditorStore","Warning","useEntityProp","useEntityBlockEditor","useCanEditEntity","ReadOnlyContent","userCanEdit","postType","postId","content","blockProps","protected","__html","rendered","EditableContent","layout","context","themeSupportsLayout","select","getSettings","supportsLayout","defaultLayout","usedLayout","
|
|
1
|
+
{"version":3,"sources":["@wordpress/block-library/src/post-content/edit.js"],"names":["__","useSelect","useBlockProps","useInnerBlocksProps","useSetting","__experimentalRecursionProvider","RecursionProvider","__experimentalUseHasRecursion","useHasRecursion","store","blockEditorStore","Warning","useEntityProp","useEntityBlockEditor","useCanEditEntity","ReadOnlyContent","userCanEdit","postType","postId","content","blockProps","protected","__html","rendered","EditableContent","layout","context","themeSupportsLayout","select","getSettings","supportsLayout","defaultLayout","usedLayout","type","blocks","onInput","onChange","id","props","className","value","__experimentalLayout","undefined","Content","queryId","isDescendentOfQueryLoop","Number","isFinite","isEditable","Placeholder","RecursionError","PostContentEdit","attributes","contextPostId","contextPostType","hasAlreadyRendered"],"mappings":";;;AAAA;AACA;AACA;AACA,SAASA,EAAT,QAAmB,iBAAnB;AACA,SAASC,SAAT,QAA0B,iBAA1B;AACA,SACCC,aADD,EAECC,mBAFD,EAGCC,UAHD,EAICC,+BAA+B,IAAIC,iBAJpC,EAKCC,6BAA6B,IAAIC,eALlC,EAMCC,KAAK,IAAIC,gBANV,EAOCC,OAPD,QAQO,yBARP;AASA,SAASC,aAAT,EAAwBC,oBAAxB,QAAoD,sBAApD;AAEA;AACA;AACA;;AACA,SAASC,gBAAT,QAAiC,gBAAjC;;AAEA,SAASC,eAAT,OAA8D;AAAA,MAApC;AAAEC,IAAAA,WAAF;AAAeC,IAAAA,QAAf;AAAyBC,IAAAA;AAAzB,GAAoC;AAC7D,QAAM,IAAMC,OAAN,IAAkBP,aAAa,CACpC,UADoC,EAEpCK,QAFoC,EAGpC,SAHoC,EAIpCC,MAJoC,CAArC;AAMA,QAAME,UAAU,GAAGlB,aAAa,EAAhC;AACA,SAAOiB,OAAO,SAAP,IAAAA,OAAO,WAAP,IAAAA,OAAO,CAAEE,SAAT,IAAsB,CAAEL,WAAxB,GACN,qBAAUI,UAAV,EACC,cAAC,OAAD,QAAWpB,EAAE,CAAE,qCAAF,CAAb,CADD,CADM,GAK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UAAxB;AACA,QAAMG,kBAAkB,GAAG/C,eAAe,CAAE6C,aAAF,CAA1C;;AAEA,MAAKA,aAAa,IAAIC,eAAjB,IAAoCC,kBAAzC,EAA8D;AAC7D,WAAO,cAAC,cAAD,OAAP;AACA;;AAED,SACC,cAAC,iBAAD;AAAmB,IAAA,QAAQ,EAAGF;AAA9B,KACGA,aAAa,IAAIC,eAAjB,GACD,cAAC,OAAD;AAAS,IAAA,OAAO,EAAG5B,OAAnB;AAA6B,IAAA,MAAM,EAAGD;AAAtC,IADC,GAGD,cAAC,WAAD,OAJF,CADD;AASA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\nimport {\n\tuseBlockProps,\n\tuseInnerBlocksProps,\n\tuseSetting,\n\t__experimentalRecursionProvider as RecursionProvider,\n\t__experimentalUseHasRecursion as useHasRecursion,\n\tstore as blockEditorStore,\n\tWarning,\n} from '@wordpress/block-editor';\nimport { useEntityProp, useEntityBlockEditor } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport { useCanEditEntity } from '../utils/hooks';\n\nfunction ReadOnlyContent( { userCanEdit, postType, postId } ) {\n\tconst [ , , content ] = useEntityProp(\n\t\t'postType',\n\t\tpostType,\n\t\t'content',\n\t\tpostId\n\t);\n\tconst blockProps = useBlockProps();\n\treturn content?.protected && ! userCanEdit ? (\n\t\t<div { ...blockProps }>\n\t\t\t<Warning>{ __( 'This content is password protected.' ) }</Warning>\n\t\t</div>\n\t) : (\n\t\t<div\n\t\t\t{ ...blockProps }\n\t\t\tdangerouslySetInnerHTML={ { __html: content?.rendered } }\n\t\t></div>\n\t);\n}\n\nfunction EditableContent( { layout, context = {} } ) {\n\tconst { postType, postId } = context;\n\tconst themeSupportsLayout = useSelect( ( select ) => {\n\t\tconst { getSettings } = select( blockEditorStore );\n\t\treturn getSettings()?.supportsLayout;\n\t}, [] );\n\tconst defaultLayout = useSetting( 'layout' ) || {};\n\tconst usedLayout = ! layout?.type\n\t\t? { ...defaultLayout, ...layout, type: 'default' }\n\t\t: { ...defaultLayout, ...layout };\n\tconst [ blocks, onInput, onChange ] = useEntityBlockEditor(\n\t\t'postType',\n\t\tpostType,\n\t\t{ id: postId }\n\t);\n\n\tconst props = useInnerBlocksProps(\n\t\tuseBlockProps( { className: 'entry-content' } ),\n\t\t{\n\t\t\tvalue: blocks,\n\t\t\tonInput,\n\t\t\tonChange,\n\t\t\t__experimentalLayout: themeSupportsLayout ? usedLayout : undefined,\n\t\t}\n\t);\n\treturn <div { ...props } />;\n}\n\nfunction Content( props ) {\n\tconst { context: { queryId, postType, postId } = {} } = props;\n\tconst isDescendentOfQueryLoop = Number.isFinite( queryId );\n\tconst userCanEdit = useCanEditEntity( 'postType', postType, postId );\n\tconst isEditable = userCanEdit && ! isDescendentOfQueryLoop;\n\n\treturn isEditable ? (\n\t\t<EditableContent { ...props } />\n\t) : (\n\t\t<ReadOnlyContent\n\t\t\tuserCanEdit={ userCanEdit }\n\t\t\tpostType={ postType }\n\t\t\tpostId={ postId }\n\t\t/>\n\t);\n}\n\nfunction Placeholder() {\n\tconst blockProps = useBlockProps();\n\treturn (\n\t\t<div { ...blockProps }>\n\t\t\t<p>\n\t\t\t\t{ __(\n\t\t\t\t\t'This is the Post Content block, it will display all the blocks in any single post or page.'\n\t\t\t\t) }\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t{ __(\n\t\t\t\t\t'That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.'\n\t\t\t\t) }\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t{ __(\n\t\t\t\t\t'If there are any Custom Post Types registered at your site, the Post Content block can display the contents of those entries as well.'\n\t\t\t\t) }\n\t\t\t</p>\n\t\t</div>\n\t);\n}\n\nfunction RecursionError() {\n\tconst blockProps = useBlockProps();\n\treturn (\n\t\t<div { ...blockProps }>\n\t\t\t<Warning>\n\t\t\t\t{ __( 'Block cannot be rendered inside itself.' ) }\n\t\t\t</Warning>\n\t\t</div>\n\t);\n}\n\nexport default function PostContentEdit( { context, attributes } ) {\n\tconst { postId: contextPostId, postType: contextPostType } = context;\n\tconst { layout = {} } = attributes;\n\tconst hasAlreadyRendered = useHasRecursion( contextPostId );\n\n\tif ( contextPostId && contextPostType && hasAlreadyRendered ) {\n\t\treturn <RecursionError />;\n\t}\n\n\treturn (\n\t\t<RecursionProvider uniqueId={ contextPostId }>\n\t\t\t{ contextPostId && contextPostType ? (\n\t\t\t\t<Content context={ context } layout={ layout } />\n\t\t\t) : (\n\t\t\t\t<Placeholder />\n\t\t\t) }\n\t\t</RecursionProvider>\n\t);\n}\n"]}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colors
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Breakpoints & Media Queries
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* SCSS Variables.
|
|
9
|
+
*
|
|
10
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
11
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
12
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Colors
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Fonts & basic variables.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Grid System.
|
|
22
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Dimensions.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Shadows.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Editor widths.
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Block & Editor UI.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Block paddings.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* React Native specific.
|
|
41
|
+
* These variables do not appear to be used anywhere else.
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Converts a hex value into the rgb equivalent.
|
|
45
|
+
*
|
|
46
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
47
|
+
* @return {string} comma separated rgb values
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* Breakpoint mixins
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* Long content fade mixin
|
|
54
|
+
*
|
|
55
|
+
* Creates a fading overlay to signify that the content is longer
|
|
56
|
+
* than the space allows.
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* Focus styles.
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Applies editor left position to the selector passed as argument
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Styles that are reused verbatim in a few places
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Reset default styles for JavaScript UI based pages.
|
|
72
|
+
* This is a WP-admin agnostic reset
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
|
+
*/
|
|
77
|
+
.wp-block-button__link {
|
|
78
|
+
color: #fff;
|
|
79
|
+
background-color: #32373c;
|
|
80
|
+
border-radius: 9999px;
|
|
81
|
+
box-shadow: none;
|
|
82
|
+
text-decoration: none;
|
|
83
|
+
padding: calc(0.667em + 2px) calc(1.333em + 2px);
|
|
84
|
+
font-size: 1.125em;
|
|
85
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colors
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Breakpoints & Media Queries
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* SCSS Variables.
|
|
9
|
+
*
|
|
10
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
11
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
12
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Colors
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Fonts & basic variables.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Grid System.
|
|
22
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Dimensions.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Shadows.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Editor widths.
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Block & Editor UI.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Block paddings.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* React Native specific.
|
|
41
|
+
* These variables do not appear to be used anywhere else.
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Converts a hex value into the rgb equivalent.
|
|
45
|
+
*
|
|
46
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
47
|
+
* @return {string} comma separated rgb values
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* Breakpoint mixins
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* Long content fade mixin
|
|
54
|
+
*
|
|
55
|
+
* Creates a fading overlay to signify that the content is longer
|
|
56
|
+
* than the space allows.
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* Focus styles.
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Applies editor left position to the selector passed as argument
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Styles that are reused verbatim in a few places
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Reset default styles for JavaScript UI based pages.
|
|
72
|
+
* This is a WP-admin agnostic reset
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
|
+
*/
|
|
77
|
+
.wp-block-button__link {
|
|
78
|
+
color: #fff;
|
|
79
|
+
background-color: #32373c;
|
|
80
|
+
border-radius: 9999px;
|
|
81
|
+
box-shadow: none;
|
|
82
|
+
text-decoration: none;
|
|
83
|
+
padding: calc(0.667em + 2px) calc(1.333em + 2px);
|
|
84
|
+
font-size: 1.125em;
|
|
85
|
+
}
|
|
@@ -1104,9 +1104,19 @@ figure.wp-block-gallery .components-spinner {
|
|
|
1104
1104
|
flex: 1 0 48px;
|
|
1105
1105
|
pointer-events: none;
|
|
1106
1106
|
min-height: 46px;
|
|
1107
|
-
border: 1px dashed currentColor;
|
|
1108
1107
|
border-radius: 2px;
|
|
1109
1108
|
}
|
|
1109
|
+
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child::after::before {
|
|
1110
|
+
content: "";
|
|
1111
|
+
position: absolute;
|
|
1112
|
+
top: 0;
|
|
1113
|
+
left: 0;
|
|
1114
|
+
bottom: 0;
|
|
1115
|
+
right: 0;
|
|
1116
|
+
pointer-events: none;
|
|
1117
|
+
background: currentColor;
|
|
1118
|
+
opacity: 0.1;
|
|
1119
|
+
}
|
|
1110
1120
|
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-inserter {
|
|
1111
1121
|
pointer-events: all;
|
|
1112
1122
|
}
|
|
@@ -1155,6 +1165,9 @@ figure.wp-block-gallery .components-spinner {
|
|
|
1155
1165
|
.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration {
|
|
1156
1166
|
display: none;
|
|
1157
1167
|
}
|
|
1168
|
+
.wp-block-image.wp-block-image.is-selected .components-placeholder::before {
|
|
1169
|
+
opacity: 0;
|
|
1170
|
+
}
|
|
1158
1171
|
.wp-block-image.wp-block-image .components-placeholder__label,
|
|
1159
1172
|
.wp-block-image.wp-block-image .components-placeholder__instructions,
|
|
1160
1173
|
.wp-block-image.wp-block-image .components-button {
|
|
@@ -1592,10 +1605,20 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1592
1605
|
bottom: 0;
|
|
1593
1606
|
right: 0;
|
|
1594
1607
|
pointer-events: none;
|
|
1595
|
-
border: 1px dashed currentColor;
|
|
1596
1608
|
border-radius: 2px;
|
|
1597
1609
|
border-radius: inherit;
|
|
1598
1610
|
}
|
|
1611
|
+
.wp-block-navigation-placeholder__preview::before::before {
|
|
1612
|
+
content: "";
|
|
1613
|
+
position: absolute;
|
|
1614
|
+
top: 0;
|
|
1615
|
+
left: 0;
|
|
1616
|
+
bottom: 0;
|
|
1617
|
+
right: 0;
|
|
1618
|
+
pointer-events: none;
|
|
1619
|
+
background: currentColor;
|
|
1620
|
+
opacity: 0.1;
|
|
1621
|
+
}
|
|
1599
1622
|
.wp-block-navigation-placeholder__preview > svg {
|
|
1600
1623
|
fill: currentColor;
|
|
1601
1624
|
}
|
|
@@ -2074,6 +2097,22 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2074
2097
|
opacity: 0;
|
|
2075
2098
|
}
|
|
2076
2099
|
|
|
2100
|
+
.components-popover.wp-block-paragraph__drop-zone .components-popover__content {
|
|
2101
|
+
border: none;
|
|
2102
|
+
outline: none;
|
|
2103
|
+
box-shadow: none;
|
|
2104
|
+
}
|
|
2105
|
+
.components-popover.wp-block-paragraph__drop-zone .wp-block-paragraph__drop-zone-backdrop {
|
|
2106
|
+
position: absolute;
|
|
2107
|
+
}
|
|
2108
|
+
.components-popover.wp-block-paragraph__drop-zone .wp-block-paragraph__drop-zone-foreground {
|
|
2109
|
+
position: absolute;
|
|
2110
|
+
inset: 0;
|
|
2111
|
+
pointer-events: none;
|
|
2112
|
+
background-color: var(--wp-admin-theme-color);
|
|
2113
|
+
border-radius: 2px;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2077
2116
|
.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline {
|
|
2078
2117
|
display: inline-block;
|
|
2079
2118
|
}
|
package/build-style/editor.css
CHANGED
|
@@ -1112,9 +1112,19 @@ figure.wp-block-gallery .components-spinner {
|
|
|
1112
1112
|
flex: 1 0 48px;
|
|
1113
1113
|
pointer-events: none;
|
|
1114
1114
|
min-height: 46px;
|
|
1115
|
-
border: 1px dashed currentColor;
|
|
1116
1115
|
border-radius: 2px;
|
|
1117
1116
|
}
|
|
1117
|
+
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child::after::before {
|
|
1118
|
+
content: "";
|
|
1119
|
+
position: absolute;
|
|
1120
|
+
top: 0;
|
|
1121
|
+
right: 0;
|
|
1122
|
+
bottom: 0;
|
|
1123
|
+
left: 0;
|
|
1124
|
+
pointer-events: none;
|
|
1125
|
+
background: currentColor;
|
|
1126
|
+
opacity: 0.1;
|
|
1127
|
+
}
|
|
1118
1128
|
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-inserter {
|
|
1119
1129
|
pointer-events: all;
|
|
1120
1130
|
}
|
|
@@ -1163,6 +1173,9 @@ figure.wp-block-gallery .components-spinner {
|
|
|
1163
1173
|
.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration {
|
|
1164
1174
|
display: none;
|
|
1165
1175
|
}
|
|
1176
|
+
.wp-block-image.wp-block-image.is-selected .components-placeholder::before {
|
|
1177
|
+
opacity: 0;
|
|
1178
|
+
}
|
|
1166
1179
|
.wp-block-image.wp-block-image .components-placeholder__label,
|
|
1167
1180
|
.wp-block-image.wp-block-image .components-placeholder__instructions,
|
|
1168
1181
|
.wp-block-image.wp-block-image .components-button {
|
|
@@ -1600,10 +1613,20 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1600
1613
|
bottom: 0;
|
|
1601
1614
|
left: 0;
|
|
1602
1615
|
pointer-events: none;
|
|
1603
|
-
border: 1px dashed currentColor;
|
|
1604
1616
|
border-radius: 2px;
|
|
1605
1617
|
border-radius: inherit;
|
|
1606
1618
|
}
|
|
1619
|
+
.wp-block-navigation-placeholder__preview::before::before {
|
|
1620
|
+
content: "";
|
|
1621
|
+
position: absolute;
|
|
1622
|
+
top: 0;
|
|
1623
|
+
right: 0;
|
|
1624
|
+
bottom: 0;
|
|
1625
|
+
left: 0;
|
|
1626
|
+
pointer-events: none;
|
|
1627
|
+
background: currentColor;
|
|
1628
|
+
opacity: 0.1;
|
|
1629
|
+
}
|
|
1607
1630
|
.wp-block-navigation-placeholder__preview > svg {
|
|
1608
1631
|
fill: currentColor;
|
|
1609
1632
|
}
|
|
@@ -2082,6 +2105,22 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2082
2105
|
opacity: 0;
|
|
2083
2106
|
}
|
|
2084
2107
|
|
|
2108
|
+
.components-popover.wp-block-paragraph__drop-zone .components-popover__content {
|
|
2109
|
+
border: none;
|
|
2110
|
+
outline: none;
|
|
2111
|
+
box-shadow: none;
|
|
2112
|
+
}
|
|
2113
|
+
.components-popover.wp-block-paragraph__drop-zone .wp-block-paragraph__drop-zone-backdrop {
|
|
2114
|
+
position: absolute;
|
|
2115
|
+
}
|
|
2116
|
+
.components-popover.wp-block-paragraph__drop-zone .wp-block-paragraph__drop-zone-foreground {
|
|
2117
|
+
position: absolute;
|
|
2118
|
+
inset: 0;
|
|
2119
|
+
pointer-events: none;
|
|
2120
|
+
background-color: var(--wp-admin-theme-color);
|
|
2121
|
+
border-radius: 2px;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2085
2124
|
.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline {
|
|
2086
2125
|
display: inline-block;
|
|
2087
2126
|
}
|
|
@@ -109,9 +109,19 @@
|
|
|
109
109
|
flex: 1 0 48px;
|
|
110
110
|
pointer-events: none;
|
|
111
111
|
min-height: 46px;
|
|
112
|
-
border: 1px dashed currentColor;
|
|
113
112
|
border-radius: 2px;
|
|
114
113
|
}
|
|
114
|
+
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child::after::before {
|
|
115
|
+
content: "";
|
|
116
|
+
position: absolute;
|
|
117
|
+
top: 0;
|
|
118
|
+
left: 0;
|
|
119
|
+
bottom: 0;
|
|
120
|
+
right: 0;
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
background: currentColor;
|
|
123
|
+
opacity: 0.1;
|
|
124
|
+
}
|
|
115
125
|
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-inserter {
|
|
116
126
|
pointer-events: all;
|
|
117
127
|
}
|
|
@@ -109,9 +109,19 @@
|
|
|
109
109
|
flex: 1 0 48px;
|
|
110
110
|
pointer-events: none;
|
|
111
111
|
min-height: 46px;
|
|
112
|
-
border: 1px dashed currentColor;
|
|
113
112
|
border-radius: 2px;
|
|
114
113
|
}
|
|
114
|
+
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child::after::before {
|
|
115
|
+
content: "";
|
|
116
|
+
position: absolute;
|
|
117
|
+
top: 0;
|
|
118
|
+
right: 0;
|
|
119
|
+
bottom: 0;
|
|
120
|
+
left: 0;
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
background: currentColor;
|
|
123
|
+
opacity: 0.1;
|
|
124
|
+
}
|
|
115
125
|
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-inserter {
|
|
116
126
|
pointer-events: all;
|
|
117
127
|
}
|
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration {
|
|
89
89
|
display: none;
|
|
90
90
|
}
|
|
91
|
+
.wp-block-image.wp-block-image.is-selected .components-placeholder::before {
|
|
92
|
+
opacity: 0;
|
|
93
|
+
}
|
|
91
94
|
.wp-block-image.wp-block-image .components-placeholder__label,
|
|
92
95
|
.wp-block-image.wp-block-image .components-placeholder__instructions,
|
|
93
96
|
.wp-block-image.wp-block-image .components-button {
|
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration {
|
|
89
89
|
display: none;
|
|
90
90
|
}
|
|
91
|
+
.wp-block-image.wp-block-image.is-selected .components-placeholder::before {
|
|
92
|
+
opacity: 0;
|
|
93
|
+
}
|
|
91
94
|
.wp-block-image.wp-block-image .components-placeholder__label,
|
|
92
95
|
.wp-block-image.wp-block-image .components-placeholder__instructions,
|
|
93
96
|
.wp-block-image.wp-block-image .components-button {
|
|
@@ -281,10 +281,20 @@
|
|
|
281
281
|
bottom: 0;
|
|
282
282
|
right: 0;
|
|
283
283
|
pointer-events: none;
|
|
284
|
-
border: 1px dashed currentColor;
|
|
285
284
|
border-radius: 2px;
|
|
286
285
|
border-radius: inherit;
|
|
287
286
|
}
|
|
287
|
+
.wp-block-navigation-placeholder__preview::before::before {
|
|
288
|
+
content: "";
|
|
289
|
+
position: absolute;
|
|
290
|
+
top: 0;
|
|
291
|
+
left: 0;
|
|
292
|
+
bottom: 0;
|
|
293
|
+
right: 0;
|
|
294
|
+
pointer-events: none;
|
|
295
|
+
background: currentColor;
|
|
296
|
+
opacity: 0.1;
|
|
297
|
+
}
|
|
288
298
|
.wp-block-navigation-placeholder__preview > svg {
|
|
289
299
|
fill: currentColor;
|
|
290
300
|
}
|
|
@@ -281,10 +281,20 @@
|
|
|
281
281
|
bottom: 0;
|
|
282
282
|
left: 0;
|
|
283
283
|
pointer-events: none;
|
|
284
|
-
border: 1px dashed currentColor;
|
|
285
284
|
border-radius: 2px;
|
|
286
285
|
border-radius: inherit;
|
|
287
286
|
}
|
|
287
|
+
.wp-block-navigation-placeholder__preview::before::before {
|
|
288
|
+
content: "";
|
|
289
|
+
position: absolute;
|
|
290
|
+
top: 0;
|
|
291
|
+
right: 0;
|
|
292
|
+
bottom: 0;
|
|
293
|
+
left: 0;
|
|
294
|
+
pointer-events: none;
|
|
295
|
+
background: currentColor;
|
|
296
|
+
opacity: 0.1;
|
|
297
|
+
}
|
|
288
298
|
.wp-block-navigation-placeholder__preview > svg {
|
|
289
299
|
fill: currentColor;
|
|
290
300
|
}
|
|
@@ -84,4 +84,20 @@
|
|
|
84
84
|
|
|
85
85
|
.block-editor-block-list__block[data-empty=true] + .block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder] {
|
|
86
86
|
opacity: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.components-popover.wp-block-paragraph__drop-zone .components-popover__content {
|
|
90
|
+
border: none;
|
|
91
|
+
outline: none;
|
|
92
|
+
box-shadow: none;
|
|
93
|
+
}
|
|
94
|
+
.components-popover.wp-block-paragraph__drop-zone .wp-block-paragraph__drop-zone-backdrop {
|
|
95
|
+
position: absolute;
|
|
96
|
+
}
|
|
97
|
+
.components-popover.wp-block-paragraph__drop-zone .wp-block-paragraph__drop-zone-foreground {
|
|
98
|
+
position: absolute;
|
|
99
|
+
inset: 0;
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
background-color: var(--wp-admin-theme-color);
|
|
102
|
+
border-radius: 2px;
|
|
87
103
|
}
|
|
@@ -84,4 +84,20 @@
|
|
|
84
84
|
|
|
85
85
|
.block-editor-block-list__block[data-empty=true] + .block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder] {
|
|
86
86
|
opacity: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.components-popover.wp-block-paragraph__drop-zone .components-popover__content {
|
|
90
|
+
border: none;
|
|
91
|
+
outline: none;
|
|
92
|
+
box-shadow: none;
|
|
93
|
+
}
|
|
94
|
+
.components-popover.wp-block-paragraph__drop-zone .wp-block-paragraph__drop-zone-backdrop {
|
|
95
|
+
position: absolute;
|
|
96
|
+
}
|
|
97
|
+
.components-popover.wp-block-paragraph__drop-zone .wp-block-paragraph__drop-zone-foreground {
|
|
98
|
+
position: absolute;
|
|
99
|
+
inset: 0;
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
background-color: var(--wp-admin-theme-color);
|
|
102
|
+
border-radius: 2px;
|
|
87
103
|
}
|