@wordpress/block-library 7.0.1 → 7.0.2
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/README.md +16 -0
- package/build/button/edit.native.js +2 -2
- package/build/button/edit.native.js.map +1 -1
- package/build/columns/index.js +12 -0
- package/build/columns/index.js.map +1 -1
- package/build/comment-author-avatar/edit.js +17 -4
- package/build/comment-author-avatar/edit.js.map +1 -1
- package/build/comment-template/edit.js +94 -36
- package/build/comment-template/edit.js.map +1 -1
- package/build/comment-template/hooks.js +175 -0
- package/build/comment-template/hooks.js.map +1 -0
- package/build/comment-template/index.js +1 -1
- package/build/comment-template/util.js.map +1 -1
- package/build/comments-pagination-next/index.js +1 -1
- package/build/comments-pagination-numbers/index.js +1 -1
- package/build/comments-query-loop/edit/comments-inspector-controls.js +20 -9
- package/build/comments-query-loop/edit/comments-inspector-controls.js.map +1 -1
- package/build/comments-query-loop/edit.js +1 -19
- package/build/comments-query-loop/edit.js.map +1 -1
- package/build/comments-query-loop/index.js +5 -0
- package/build/comments-query-loop/index.js.map +1 -1
- package/build/cover/edit.js +21 -22
- package/build/cover/edit.js.map +1 -1
- package/build/cover/edit.native.js +7 -5
- package/build/cover/edit.native.js.map +1 -1
- package/build/cover/overlay-color-settings.native.js +4 -3
- package/build/cover/overlay-color-settings.native.js.map +1 -1
- package/build/cover/transforms.js +4 -2
- package/build/cover/transforms.js.map +1 -1
- package/build/group/index.js +1 -0
- package/build/group/index.js.map +1 -1
- package/build/heading/edit.js +14 -2
- package/build/heading/edit.js.map +1 -1
- package/build/image/deprecated.js +89 -5
- package/build/image/deprecated.js.map +1 -1
- package/build/image/save.js +0 -7
- package/build/image/save.js.map +1 -1
- package/build/latest-posts/edit.js +1 -0
- package/build/latest-posts/edit.js.map +1 -1
- package/build/navigation/edit/index.js +17 -15
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/navigation-menu-selector.js +44 -27
- package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build/navigation/edit/placeholder/index.js +8 -22
- package/build/navigation/edit/placeholder/index.js.map +1 -1
- package/build/navigation/use-navigation-menu.js +6 -6
- package/build/navigation/use-navigation-menu.js.map +1 -1
- package/build/navigation-submenu/edit.js +41 -9
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/page-list/edit.js +11 -17
- package/build/page-list/edit.js.map +1 -1
- package/build/social-links/deprecated.js +1 -62
- package/build/social-links/deprecated.js.map +1 -1
- package/build/template-part/edit/index.js +36 -64
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/placeholder.js +64 -0
- package/build/template-part/edit/placeholder.js.map +1 -0
- package/build/template-part/edit/selection-modal.js +103 -0
- package/build/template-part/edit/selection-modal.js.map +1 -0
- package/build/template-part/edit/title-modal.js +54 -0
- package/build/template-part/edit/title-modal.js.map +1 -0
- package/build/template-part/edit/utils/hooks.js +156 -0
- package/build/template-part/edit/utils/hooks.js.map +1 -0
- package/build/template-part/index.js +3 -1
- package/build/template-part/index.js.map +1 -1
- package/build-module/button/edit.native.js +4 -4
- package/build-module/button/edit.native.js.map +1 -1
- package/build-module/columns/index.js +12 -0
- package/build-module/columns/index.js.map +1 -1
- package/build-module/comment-author-avatar/edit.js +18 -6
- package/build-module/comment-author-avatar/edit.js.map +1 -1
- package/build-module/comment-template/edit.js +95 -37
- package/build-module/comment-template/edit.js.map +1 -1
- package/build-module/comment-template/hooks.js +156 -0
- package/build-module/comment-template/hooks.js.map +1 -0
- package/build-module/comment-template/index.js +1 -1
- package/build-module/comment-template/util.js.map +1 -1
- package/build-module/comments-pagination-next/index.js +1 -1
- package/build-module/comments-pagination-numbers/index.js +1 -1
- package/build-module/comments-query-loop/edit/comments-inspector-controls.js +20 -9
- package/build-module/comments-query-loop/edit/comments-inspector-controls.js.map +1 -1
- package/build-module/comments-query-loop/edit.js +2 -19
- package/build-module/comments-query-loop/edit.js.map +1 -1
- package/build-module/comments-query-loop/index.js +5 -0
- package/build-module/comments-query-loop/index.js.map +1 -1
- package/build-module/cover/edit.js +23 -24
- package/build-module/cover/edit.js.map +1 -1
- package/build-module/cover/edit.native.js +10 -8
- package/build-module/cover/edit.native.js.map +1 -1
- package/build-module/cover/overlay-color-settings.native.js +4 -4
- package/build-module/cover/overlay-color-settings.native.js.map +1 -1
- package/build-module/cover/transforms.js +4 -2
- package/build-module/cover/transforms.js.map +1 -1
- package/build-module/group/index.js +1 -0
- package/build-module/group/index.js.map +1 -1
- package/build-module/heading/edit.js +15 -3
- package/build-module/heading/edit.js.map +1 -1
- package/build-module/image/deprecated.js +90 -7
- package/build-module/image/deprecated.js.map +1 -1
- package/build-module/image/save.js +0 -7
- package/build-module/image/save.js.map +1 -1
- package/build-module/latest-posts/edit.js +1 -0
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/navigation/edit/index.js +17 -15
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-selector.js +45 -27
- package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build-module/navigation/edit/placeholder/index.js +8 -21
- package/build-module/navigation/edit/placeholder/index.js.map +1 -1
- package/build-module/navigation/use-navigation-menu.js +6 -6
- package/build-module/navigation/use-navigation-menu.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +41 -10
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/page-list/edit.js +12 -18
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/social-links/deprecated.js +1 -62
- package/build-module/social-links/deprecated.js.map +1 -1
- package/build-module/template-part/edit/index.js +37 -65
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/placeholder.js +52 -0
- package/build-module/template-part/edit/placeholder.js.map +1 -0
- package/build-module/template-part/edit/selection-modal.js +89 -0
- package/build-module/template-part/edit/selection-modal.js.map +1 -0
- package/build-module/template-part/edit/title-modal.js +46 -0
- package/build-module/template-part/edit/title-modal.js.map +1 -0
- package/build-module/template-part/edit/utils/hooks.js +135 -0
- package/build-module/template-part/edit/utils/hooks.js.map +1 -0
- package/build-module/template-part/index.js +2 -1
- package/build-module/template-part/index.js.map +1 -1
- package/build-style/comment-author-avatar/editor-rtl.css +83 -0
- package/build-style/comment-author-avatar/editor.css +83 -0
- package/build-style/cover/style-rtl.css +4 -0
- package/build-style/cover/style.css +4 -0
- package/build-style/editor-rtl.css +27 -81
- package/build-style/editor.css +27 -81
- package/build-style/image/editor-rtl.css +0 -16
- package/build-style/image/editor.css +0 -16
- package/build-style/image/style-rtl.css +2 -0
- package/build-style/image/style.css +2 -0
- package/build-style/navigation/style-rtl.css +14 -3
- package/build-style/navigation/style.css +14 -3
- package/build-style/page-list/editor-rtl.css +0 -9
- package/build-style/page-list/editor.css +0 -9
- package/build-style/style-rtl.css +20 -3
- package/build-style/style.css +20 -3
- package/build-style/template-part/editor-rtl.css +19 -56
- package/build-style/template-part/editor.css +19 -56
- package/package.json +15 -15
- package/src/archives/index.php +1 -1
- package/src/button/edit.native.js +3 -3
- package/src/columns/block.json +12 -0
- package/src/comment-author-avatar/edit.js +13 -8
- package/src/comment-author-avatar/editor.scss +7 -0
- package/src/comment-template/block.json +7 -1
- package/src/comment-template/edit.js +102 -40
- package/src/comment-template/hooks.js +151 -0
- package/src/comment-template/index.php +8 -0
- package/src/comment-template/util.js +1 -0
- package/src/comments-pagination-next/block.json +8 -1
- package/src/comments-pagination-next/index.php +6 -8
- package/src/comments-pagination-numbers/block.json +7 -1
- package/src/comments-pagination-numbers/index.php +3 -10
- package/src/comments-query-loop/block.json +5 -0
- package/src/comments-query-loop/edit/comments-inspector-controls.js +22 -4
- package/src/comments-query-loop/edit.js +1 -16
- package/src/cover/edit.js +15 -28
- package/src/cover/edit.native.js +15 -7
- package/src/cover/overlay-color-settings.native.js +3 -4
- package/src/cover/style.scss +4 -0
- package/src/cover/transforms.js +2 -0
- package/src/editor.scss +1 -0
- package/src/gallery/index.php +1 -8
- package/src/group/block.json +1 -0
- package/src/heading/edit.js +18 -5
- package/src/home-link/index.php +1 -19
- package/src/image/deprecated.js +105 -1
- package/src/image/editor.scss +0 -18
- package/src/image/save.js +0 -8
- package/src/image/style.scss +3 -0
- package/src/image/test/edit.native.js +0 -10
- package/src/latest-posts/edit.js +1 -0
- package/src/latest-posts/index.php +1 -1
- package/src/navigation/edit/index.js +25 -26
- package/src/navigation/edit/navigation-menu-selector.js +73 -28
- package/src/navigation/edit/placeholder/index.js +8 -32
- package/src/navigation/index.php +4 -4
- package/src/navigation/style.scss +22 -3
- package/src/navigation/use-navigation-menu.js +6 -6
- package/src/navigation-link/index.php +3 -22
- package/src/navigation-submenu/edit.js +50 -12
- package/src/navigation-submenu/index.php +3 -21
- package/src/page-list/edit.js +21 -25
- package/src/page-list/editor.scss +0 -10
- package/src/page-list/index.php +4 -4
- package/src/post-navigation-link/index.php +3 -3
- package/src/search/index.php +6 -3
- package/src/site-logo/index.php +1 -1
- package/src/social-links/deprecated.js +0 -59
- package/src/template-part/edit/index.js +61 -71
- package/src/template-part/edit/placeholder.js +78 -0
- package/src/template-part/edit/selection-modal.js +115 -0
- package/src/template-part/edit/title-modal.js +59 -0
- package/src/template-part/edit/utils/hooks.js +158 -0
- package/src/template-part/editor.scss +16 -74
- package/src/template-part/index.js +4 -1
- package/build/navigation/edit/existing-menus-options.js +0 -62
- package/build/navigation/edit/existing-menus-options.js.map +0 -1
- package/build/template-part/edit/placeholder/index.js +0 -141
- package/build/template-part/edit/placeholder/index.js.map +0 -1
- package/build/template-part/edit/placeholder/patterns-setup.js +0 -100
- package/build/template-part/edit/placeholder/patterns-setup.js.map +0 -1
- package/build/template-part/edit/selection/index.js +0 -45
- package/build/template-part/edit/selection/index.js.map +0 -1
- package/build/template-part/edit/selection/template-part-previews.js +0 -317
- package/build/template-part/edit/selection/template-part-previews.js.map +0 -1
- package/build-module/navigation/edit/existing-menus-options.js +0 -53
- package/build-module/navigation/edit/existing-menus-options.js.map +0 -1
- package/build-module/template-part/edit/placeholder/index.js +0 -124
- package/build-module/template-part/edit/placeholder/index.js.map +0 -1
- package/build-module/template-part/edit/placeholder/patterns-setup.js +0 -91
- package/build-module/template-part/edit/placeholder/patterns-setup.js.map +0 -1
- package/build-module/template-part/edit/selection/index.js +0 -35
- package/build-module/template-part/edit/selection/index.js.map +0 -1
- package/build-module/template-part/edit/selection/template-part-previews.js +0 -298
- package/build-module/template-part/edit/selection/template-part-previews.js.map +0 -1
- package/src/navigation/edit/existing-menus-options.js +0 -70
- package/src/template-part/edit/placeholder/index.js +0 -172
- package/src/template-part/edit/placeholder/patterns-setup.js +0 -124
- package/src/template-part/edit/selection/index.js +0 -37
- package/src/template-part/edit/selection/template-part-previews.js +0 -372
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/block-library/src/template-part/index.js"],"names":["startCase","store","coreDataStore","select","symbolFilled","addFilter","edit","enhanceTemplatePartVariations","name","metadata","settings","icon","__experimentalLabel","slug","theme","entity","getEntityRecord","title","rendered","DISALLOWED_PARENTS","can","blockType","rootClientId","getBlock","getBlockParentsByBlockName","disallowedParentType","hasDisallowedParent","length"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,QAA1B;AAEA;AACA;AACA;;AACA,SAASC,KAAK,IAAIC,aAAlB,QAAuC,sBAAvC;AACA,SAASC,MAAT,QAAuB,iBAAvB;AACA,SAASC,YAAT,QAA6B,kBAA7B;AACA,SAASC,SAAT,QAA0B,kBAA1B;AAEA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAOC,IAAP,MAAiB,QAAjB;AACA,SAASC,6BAAT,QAA8C,cAA9C;AAEA,MAAM;AAAEC,EAAAA;AAAF,IAAWC,QAAjB;AACA,SAASA,QAAT,EAAmBD,IAAnB;AAEA,OAAO,MAAME,QAAQ,GAAG;AACvBC,EAAAA,IAAI,
|
|
1
|
+
{"version":3,"sources":["@wordpress/block-library/src/template-part/index.js"],"names":["startCase","store","coreDataStore","select","symbolFilled","addFilter","decodeEntities","edit","enhanceTemplatePartVariations","name","metadata","settings","icon","__experimentalLabel","slug","theme","entity","getEntityRecord","title","rendered","DISALLOWED_PARENTS","can","blockType","rootClientId","getBlock","getBlockParentsByBlockName","disallowedParentType","hasDisallowedParent","length"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,QAA1B;AAEA;AACA;AACA;;AACA,SAASC,KAAK,IAAIC,aAAlB,QAAuC,sBAAvC;AACA,SAASC,MAAT,QAAuB,iBAAvB;AACA,SAASC,YAAT,QAA6B,kBAA7B;AACA,SAASC,SAAT,QAA0B,kBAA1B;AACA,SAASC,cAAT,QAA+B,0BAA/B;AAEA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAOC,IAAP,MAAiB,QAAjB;AACA,SAASC,6BAAT,QAA8C,cAA9C;AAEA,MAAM;AAAEC,EAAAA;AAAF,IAAWC,QAAjB;AACA,SAASA,QAAT,EAAmBD,IAAnB;AAEA,OAAO,MAAME,QAAQ,GAAG;AACvBC,EAAAA,IAAI,EAAER,YADiB;AAEvBS,EAAAA,mBAAmB,EAAE,QAAuB;AAAA;;AAAA,QAArB;AAAEC,MAAAA,IAAF;AAAQC,MAAAA;AAAR,KAAqB;;AAC3C;AACA;AACA,QAAK,CAAED,IAAP,EAAc;AACb;AACA;;AAED,UAAME,MAAM,GAAGb,MAAM,CAAED,aAAF,CAAN,CAAwBe,eAAxB,CACd,UADc,EAEd,kBAFc,EAGdF,KAAK,GAAG,IAAR,GAAeD,IAHD,CAAf;;AAKA,QAAK,CAAEE,MAAP,EAAgB;AACf;AACA;;AAED,WACCV,cAAc,kBAAEU,MAAM,CAACE,KAAT,kDAAE,cAAcC,QAAhB,CAAd,IAA4CnB,SAAS,CAAEgB,MAAM,CAACF,IAAT,CADtD;AAGA,GArBsB;AAsBvBP,EAAAA;AAtBuB,CAAjB,C,CAyBP;;AACAF,SAAS,CACR,0BADQ,EAER,oBAFQ,EAGRG,6BAHQ,CAAT,C,CAMA;;AACA,MAAMY,kBAAkB,GAAG,CAAE,oBAAF,EAAwB,mBAAxB,CAA3B;AACAf,SAAS,CACR,0CADQ,EAER,sCAFQ,EAGR,CACCgB,GADD,EAECC,SAFD,EAGCC,YAHD,YAKK;AAAA,MADJ;AAAEC,IAAAA,QAAF;AAAYC,IAAAA;AAAZ,GACI;;AACJ,MAAKH,SAAS,CAACb,IAAV,KAAmB,oBAAxB,EAA+C;AAC9C,WAAOY,GAAP;AACA;;AAED,OAAM,MAAMK,oBAAZ,IAAoCN,kBAApC,EAAyD;AAAA;;AACxD,UAAMO,mBAAmB,GACxB,cAAAH,QAAQ,CAAED,YAAF,CAAR,wDAA0Bd,IAA1B,MAAmCiB,oBAAnC,IACAD,0BAA0B,CAAEF,YAAF,EAAgBG,oBAAhB,CAA1B,CACEE,MAHH;;AAIA,QAAKD,mBAAL,EAA2B;AAC1B,aAAO,KAAP;AACA;AACD;;AACD,SAAO,IAAP;AACA,CAvBO,CAAT","sourcesContent":["/**\n * External dependencies\n */\nimport { startCase } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { store as coreDataStore } from '@wordpress/core-data';\nimport { select } from '@wordpress/data';\nimport { symbolFilled } from '@wordpress/icons';\nimport { addFilter } from '@wordpress/hooks';\nimport { decodeEntities } from '@wordpress/html-entities';\n\n/**\n * Internal dependencies\n */\nimport metadata from './block.json';\nimport edit from './edit';\nimport { enhanceTemplatePartVariations } from './variations';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon: symbolFilled,\n\t__experimentalLabel: ( { slug, theme } ) => {\n\t\t// Attempt to find entity title if block is a template part.\n\t\t// Require slug to request, otherwise entity is uncreated and will throw 404.\n\t\tif ( ! slug ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst entity = select( coreDataStore ).getEntityRecord(\n\t\t\t'postType',\n\t\t\t'wp_template_part',\n\t\t\ttheme + '//' + slug\n\t\t);\n\t\tif ( ! entity ) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn (\n\t\t\tdecodeEntities( entity.title?.rendered ) || startCase( entity.slug )\n\t\t);\n\t},\n\tedit,\n};\n\n// Importing this file includes side effects. This is whitelisted in block-library/package.json under sideEffects\naddFilter(\n\t'blocks.registerBlockType',\n\t'core/template-part',\n\tenhanceTemplatePartVariations\n);\n\n// Prevent adding template parts inside post templates.\nconst DISALLOWED_PARENTS = [ 'core/post-template', 'core/post-content' ];\naddFilter(\n\t'blockEditor.__unstableCanInsertBlockType',\n\t'removeTemplatePartsFromPostTemplates',\n\t(\n\t\tcan,\n\t\tblockType,\n\t\trootClientId,\n\t\t{ getBlock, getBlockParentsByBlockName }\n\t) => {\n\t\tif ( blockType.name !== 'core/template-part' ) {\n\t\t\treturn can;\n\t\t}\n\n\t\tfor ( const disallowedParentType of DISALLOWED_PARENTS ) {\n\t\t\tconst hasDisallowedParent =\n\t\t\t\tgetBlock( rootClientId )?.name === disallowedParentType ||\n\t\t\t\tgetBlockParentsByBlockName( rootClientId, disallowedParentType )\n\t\t\t\t\t.length;\n\t\t\tif ( hasDisallowedParent ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n);\n"]}
|
|
@@ -0,0 +1,83 @@
|
|
|
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-comment-author-avatar__placeholder {
|
|
78
|
+
border: currentColor 1px dashed;
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 100%;
|
|
81
|
+
stroke: currentColor;
|
|
82
|
+
stroke-dasharray: 3;
|
|
83
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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-comment-author-avatar__placeholder {
|
|
78
|
+
border: currentColor 1px dashed;
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 100%;
|
|
81
|
+
stroke: currentColor;
|
|
82
|
+
stroke-dasharray: 3;
|
|
83
|
+
}
|
|
@@ -124,6 +124,10 @@
|
|
|
124
124
|
.wp-block-cover .has-background-dim:not([class*=-background-color]) {
|
|
125
125
|
background-color: #000;
|
|
126
126
|
}
|
|
127
|
+
.wp-block-cover-image .has-background-dim.has-background-gradient,
|
|
128
|
+
.wp-block-cover .has-background-dim.has-background-gradient {
|
|
129
|
+
background-color: transparent;
|
|
130
|
+
}
|
|
127
131
|
.wp-block-cover-image.has-background-dim::before,
|
|
128
132
|
.wp-block-cover-image .has-background-dim::before,
|
|
129
133
|
.wp-block-cover.has-background-dim::before,
|
|
@@ -124,6 +124,10 @@
|
|
|
124
124
|
.wp-block-cover .has-background-dim:not([class*=-background-color]) {
|
|
125
125
|
background-color: #000;
|
|
126
126
|
}
|
|
127
|
+
.wp-block-cover-image .has-background-dim.has-background-gradient,
|
|
128
|
+
.wp-block-cover .has-background-dim.has-background-gradient {
|
|
129
|
+
background-color: transparent;
|
|
130
|
+
}
|
|
127
131
|
.wp-block-cover-image.has-background-dim::before,
|
|
128
132
|
.wp-block-cover-image .has-background-dim::before,
|
|
129
133
|
.wp-block-cover.has-background-dim::before,
|
|
@@ -235,6 +235,14 @@ html :where(.wp-block-column) {
|
|
|
235
235
|
margin-bottom: 0;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
.wp-block-comment-author-avatar__placeholder {
|
|
239
|
+
border: currentColor 1px dashed;
|
|
240
|
+
width: 100%;
|
|
241
|
+
height: 100%;
|
|
242
|
+
stroke: currentColor;
|
|
243
|
+
stroke-dasharray: 3;
|
|
244
|
+
}
|
|
245
|
+
|
|
238
246
|
.block-library-comments-toolbar__popover .components-popover__content {
|
|
239
247
|
min-width: 230px;
|
|
240
248
|
}
|
|
@@ -1022,22 +1030,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1022
1030
|
caption-side: bottom;
|
|
1023
1031
|
}
|
|
1024
1032
|
|
|
1025
|
-
*:not([data-align]) > .wp-block-image {
|
|
1026
|
-
display: grid;
|
|
1027
|
-
grid-template-columns: [image] minmax(0, max-content) [placeholder] auto;
|
|
1028
|
-
}
|
|
1029
|
-
*:not([data-align]) > .wp-block-image .components-placeholder {
|
|
1030
|
-
grid-column: placeholder;
|
|
1031
|
-
}
|
|
1032
|
-
*:not([data-align]) > .wp-block-image > div:not(.components-placeholder) {
|
|
1033
|
-
grid-column: image;
|
|
1034
|
-
}
|
|
1035
|
-
*:not([data-align]) > .wp-block-image > figcaption {
|
|
1036
|
-
grid-column: image;
|
|
1037
|
-
display: table-caption;
|
|
1038
|
-
caption-side: bottom;
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
1033
|
.wp-block[data-align=left] > .wp-block-image {
|
|
1042
1034
|
margin-left: 1em;
|
|
1043
1035
|
margin-right: 0;
|
|
@@ -1812,15 +1804,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
1812
1804
|
pointer-events: none;
|
|
1813
1805
|
}
|
|
1814
1806
|
|
|
1815
|
-
.wp-block-page-list .components-placeholder {
|
|
1816
|
-
min-height: 0;
|
|
1817
|
-
padding: 0;
|
|
1818
|
-
background-color: inherit;
|
|
1819
|
-
}
|
|
1820
|
-
.wp-block-page-list .components-placeholder .components-spinner {
|
|
1821
|
-
margin: 0.5em;
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
1807
|
@media (min-width: 600px) {
|
|
1825
1808
|
.wp-block-page-list-modal {
|
|
1826
1809
|
max-width: 480px;
|
|
@@ -2327,67 +2310,30 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2327
2310
|
margin-bottom: 0;
|
|
2328
2311
|
}
|
|
2329
2312
|
|
|
2330
|
-
|
|
2331
|
-
.
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
}
|
|
2335
|
-
|
|
2336
|
-
.wp-block-template-part__selection-preview-search-form {
|
|
2337
|
-
border-bottom: 1px solid #ddd;
|
|
2338
|
-
}
|
|
2339
|
-
|
|
2340
|
-
.wp-block-template-part__selection-preview-container {
|
|
2341
|
-
background: #fff;
|
|
2342
|
-
padding-bottom: 16px;
|
|
2343
|
-
}
|
|
2344
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item {
|
|
2345
|
-
border-radius: 2px;
|
|
2346
|
-
cursor: pointer;
|
|
2347
|
-
margin-top: 16px;
|
|
2348
|
-
transition: all 0.05s ease-in-out;
|
|
2349
|
-
border: 1px solid #ddd;
|
|
2350
|
-
width: 100%;
|
|
2351
|
-
background-color: #fff;
|
|
2352
|
-
}
|
|
2353
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover {
|
|
2354
|
-
border: 1px solid var(--wp-admin-theme-color);
|
|
2355
|
-
}
|
|
2356
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus {
|
|
2357
|
-
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2358
|
-
outline: 2px solid transparent;
|
|
2359
|
-
}
|
|
2360
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder {
|
|
2361
|
-
min-height: 100px;
|
|
2362
|
-
}
|
|
2363
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item .block-editor-block-preview__container {
|
|
2364
|
-
border-bottom: 1px solid #ddd;
|
|
2365
|
-
}
|
|
2366
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title {
|
|
2367
|
-
padding: 4px;
|
|
2368
|
-
font-size: 12px;
|
|
2369
|
-
text-align: right;
|
|
2370
|
-
}
|
|
2371
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header {
|
|
2372
|
-
padding: 16px 16px 0;
|
|
2313
|
+
@media (min-width: 600px) {
|
|
2314
|
+
.block-editor-template-part__selection-modal {
|
|
2315
|
+
width: calc(100% - 32px);
|
|
2316
|
+
height: calc(100% - 120px);
|
|
2317
|
+
}
|
|
2373
2318
|
}
|
|
2374
|
-
|
|
2375
|
-
|
|
2319
|
+
@media (min-width: 782px) {
|
|
2320
|
+
.block-editor-template-part__selection-modal {
|
|
2321
|
+
width: 750px;
|
|
2322
|
+
}
|
|
2376
2323
|
}
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
font-weight: 500;
|
|
2324
|
+
@media (min-width: 960px) {
|
|
2325
|
+
.block-editor-template-part__selection-modal {
|
|
2326
|
+
height: 70%;
|
|
2327
|
+
}
|
|
2382
2328
|
}
|
|
2383
2329
|
|
|
2384
|
-
.
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2330
|
+
.block-library-template-part__selection-content .block-editor-block-patterns-list {
|
|
2331
|
+
display: grid;
|
|
2332
|
+
grid-template-columns: 1fr 1fr;
|
|
2333
|
+
grid-gap: 8px;
|
|
2388
2334
|
}
|
|
2389
|
-
.
|
|
2390
|
-
margin-
|
|
2335
|
+
.block-library-template-part__selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
2336
|
+
margin-bottom: 0;
|
|
2391
2337
|
}
|
|
2392
2338
|
|
|
2393
2339
|
.wp-block-text-columns .block-editor-rich-text__editable:focus {
|
package/build-style/editor.css
CHANGED
|
@@ -236,6 +236,14 @@ html :where(.wp-block-column) {
|
|
|
236
236
|
margin-bottom: 0;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
.wp-block-comment-author-avatar__placeholder {
|
|
240
|
+
border: currentColor 1px dashed;
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: 100%;
|
|
243
|
+
stroke: currentColor;
|
|
244
|
+
stroke-dasharray: 3;
|
|
245
|
+
}
|
|
246
|
+
|
|
239
247
|
.block-library-comments-toolbar__popover .components-popover__content {
|
|
240
248
|
min-width: 230px;
|
|
241
249
|
}
|
|
@@ -1030,22 +1038,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1030
1038
|
caption-side: bottom;
|
|
1031
1039
|
}
|
|
1032
1040
|
|
|
1033
|
-
*:not([data-align]) > .wp-block-image {
|
|
1034
|
-
display: grid;
|
|
1035
|
-
grid-template-columns: [image] minmax(0, max-content) [placeholder] auto;
|
|
1036
|
-
}
|
|
1037
|
-
*:not([data-align]) > .wp-block-image .components-placeholder {
|
|
1038
|
-
grid-column: placeholder;
|
|
1039
|
-
}
|
|
1040
|
-
*:not([data-align]) > .wp-block-image > div:not(.components-placeholder) {
|
|
1041
|
-
grid-column: image;
|
|
1042
|
-
}
|
|
1043
|
-
*:not([data-align]) > .wp-block-image > figcaption {
|
|
1044
|
-
grid-column: image;
|
|
1045
|
-
display: table-caption;
|
|
1046
|
-
caption-side: bottom;
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
1041
|
.wp-block[data-align=left] > .wp-block-image {
|
|
1050
1042
|
margin-right: 1em;
|
|
1051
1043
|
margin-left: 0;
|
|
@@ -1820,15 +1812,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
1820
1812
|
pointer-events: none;
|
|
1821
1813
|
}
|
|
1822
1814
|
|
|
1823
|
-
.wp-block-page-list .components-placeholder {
|
|
1824
|
-
min-height: 0;
|
|
1825
|
-
padding: 0;
|
|
1826
|
-
background-color: inherit;
|
|
1827
|
-
}
|
|
1828
|
-
.wp-block-page-list .components-placeholder .components-spinner {
|
|
1829
|
-
margin: 0.5em;
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
1815
|
@media (min-width: 600px) {
|
|
1833
1816
|
.wp-block-page-list-modal {
|
|
1834
1817
|
max-width: 480px;
|
|
@@ -2335,67 +2318,30 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2335
2318
|
margin-bottom: 0;
|
|
2336
2319
|
}
|
|
2337
2320
|
|
|
2338
|
-
|
|
2339
|
-
.
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
}
|
|
2343
|
-
|
|
2344
|
-
.wp-block-template-part__selection-preview-search-form {
|
|
2345
|
-
border-bottom: 1px solid #ddd;
|
|
2346
|
-
}
|
|
2347
|
-
|
|
2348
|
-
.wp-block-template-part__selection-preview-container {
|
|
2349
|
-
background: #fff;
|
|
2350
|
-
padding-bottom: 16px;
|
|
2351
|
-
}
|
|
2352
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item {
|
|
2353
|
-
border-radius: 2px;
|
|
2354
|
-
cursor: pointer;
|
|
2355
|
-
margin-top: 16px;
|
|
2356
|
-
transition: all 0.05s ease-in-out;
|
|
2357
|
-
border: 1px solid #ddd;
|
|
2358
|
-
width: 100%;
|
|
2359
|
-
background-color: #fff;
|
|
2360
|
-
}
|
|
2361
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover {
|
|
2362
|
-
border: 1px solid var(--wp-admin-theme-color);
|
|
2363
|
-
}
|
|
2364
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus {
|
|
2365
|
-
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2366
|
-
outline: 2px solid transparent;
|
|
2367
|
-
}
|
|
2368
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder {
|
|
2369
|
-
min-height: 100px;
|
|
2370
|
-
}
|
|
2371
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item .block-editor-block-preview__container {
|
|
2372
|
-
border-bottom: 1px solid #ddd;
|
|
2373
|
-
}
|
|
2374
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title {
|
|
2375
|
-
padding: 4px;
|
|
2376
|
-
font-size: 12px;
|
|
2377
|
-
text-align: left;
|
|
2378
|
-
}
|
|
2379
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header {
|
|
2380
|
-
padding: 16px 16px 0;
|
|
2321
|
+
@media (min-width: 600px) {
|
|
2322
|
+
.block-editor-template-part__selection-modal {
|
|
2323
|
+
width: calc(100% - 32px);
|
|
2324
|
+
height: calc(100% - 120px);
|
|
2325
|
+
}
|
|
2381
2326
|
}
|
|
2382
|
-
|
|
2383
|
-
|
|
2327
|
+
@media (min-width: 782px) {
|
|
2328
|
+
.block-editor-template-part__selection-modal {
|
|
2329
|
+
width: 750px;
|
|
2330
|
+
}
|
|
2384
2331
|
}
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
font-weight: 500;
|
|
2332
|
+
@media (min-width: 960px) {
|
|
2333
|
+
.block-editor-template-part__selection-modal {
|
|
2334
|
+
height: 70%;
|
|
2335
|
+
}
|
|
2390
2336
|
}
|
|
2391
2337
|
|
|
2392
|
-
.
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2338
|
+
.block-library-template-part__selection-content .block-editor-block-patterns-list {
|
|
2339
|
+
display: grid;
|
|
2340
|
+
grid-template-columns: 1fr 1fr;
|
|
2341
|
+
grid-gap: 8px;
|
|
2396
2342
|
}
|
|
2397
|
-
.
|
|
2398
|
-
margin-
|
|
2343
|
+
.block-library-template-part__selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
2344
|
+
margin-bottom: 0;
|
|
2399
2345
|
}
|
|
2400
2346
|
|
|
2401
2347
|
.wp-block-text-columns .block-editor-rich-text__editable:focus {
|
|
@@ -137,22 +137,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
137
137
|
caption-side: bottom;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
*:not([data-align]) > .wp-block-image {
|
|
141
|
-
display: grid;
|
|
142
|
-
grid-template-columns: [image] minmax(0, max-content) [placeholder] auto;
|
|
143
|
-
}
|
|
144
|
-
*:not([data-align]) > .wp-block-image .components-placeholder {
|
|
145
|
-
grid-column: placeholder;
|
|
146
|
-
}
|
|
147
|
-
*:not([data-align]) > .wp-block-image > div:not(.components-placeholder) {
|
|
148
|
-
grid-column: image;
|
|
149
|
-
}
|
|
150
|
-
*:not([data-align]) > .wp-block-image > figcaption {
|
|
151
|
-
grid-column: image;
|
|
152
|
-
display: table-caption;
|
|
153
|
-
caption-side: bottom;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
140
|
.wp-block[data-align=left] > .wp-block-image {
|
|
157
141
|
margin-left: 1em;
|
|
158
142
|
margin-right: 0;
|
|
@@ -137,22 +137,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
137
137
|
caption-side: bottom;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
*:not([data-align]) > .wp-block-image {
|
|
141
|
-
display: grid;
|
|
142
|
-
grid-template-columns: [image] minmax(0, max-content) [placeholder] auto;
|
|
143
|
-
}
|
|
144
|
-
*:not([data-align]) > .wp-block-image .components-placeholder {
|
|
145
|
-
grid-column: placeholder;
|
|
146
|
-
}
|
|
147
|
-
*:not([data-align]) > .wp-block-image > div:not(.components-placeholder) {
|
|
148
|
-
grid-column: image;
|
|
149
|
-
}
|
|
150
|
-
*:not([data-align]) > .wp-block-image > figcaption {
|
|
151
|
-
grid-column: image;
|
|
152
|
-
display: table-caption;
|
|
153
|
-
caption-side: bottom;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
140
|
.wp-block[data-align=left] > .wp-block-image {
|
|
157
141
|
margin-right: 1em;
|
|
158
142
|
margin-left: 0;
|
|
@@ -91,11 +91,13 @@
|
|
|
91
91
|
height: auto;
|
|
92
92
|
width: 100%;
|
|
93
93
|
}
|
|
94
|
+
.wp-block-image.alignleft, .wp-block-image.alignright, .wp-block-image.aligncenter,
|
|
94
95
|
.wp-block-image .alignleft,
|
|
95
96
|
.wp-block-image .alignright,
|
|
96
97
|
.wp-block-image .aligncenter {
|
|
97
98
|
display: table;
|
|
98
99
|
}
|
|
100
|
+
.wp-block-image.alignleft > figcaption, .wp-block-image.alignright > figcaption, .wp-block-image.aligncenter > figcaption,
|
|
99
101
|
.wp-block-image .alignleft > figcaption,
|
|
100
102
|
.wp-block-image .alignright > figcaption,
|
|
101
103
|
.wp-block-image .aligncenter > figcaption {
|
|
@@ -91,11 +91,13 @@
|
|
|
91
91
|
height: auto;
|
|
92
92
|
width: 100%;
|
|
93
93
|
}
|
|
94
|
+
.wp-block-image.alignleft, .wp-block-image.alignright, .wp-block-image.aligncenter,
|
|
94
95
|
.wp-block-image .alignleft,
|
|
95
96
|
.wp-block-image .alignright,
|
|
96
97
|
.wp-block-image .aligncenter {
|
|
97
98
|
display: table;
|
|
98
99
|
}
|
|
100
|
+
.wp-block-image.alignleft > figcaption, .wp-block-image.alignright > figcaption, .wp-block-image.aligncenter > figcaption,
|
|
99
101
|
.wp-block-image .alignleft > figcaption,
|
|
100
102
|
.wp-block-image .alignright > figcaption,
|
|
101
103
|
.wp-block-image .aligncenter > figcaption {
|
|
@@ -126,21 +126,21 @@
|
|
|
126
126
|
align-self: center;
|
|
127
127
|
line-height: 0;
|
|
128
128
|
display: inline-block;
|
|
129
|
-
vertical-align: middle;
|
|
130
129
|
font-size: inherit;
|
|
131
130
|
padding: 0;
|
|
132
131
|
background-color: inherit;
|
|
133
132
|
color: currentColor;
|
|
134
133
|
border: none;
|
|
135
|
-
margin-right: 0.25em;
|
|
136
134
|
width: 0.6em;
|
|
137
135
|
height: 0.6em;
|
|
136
|
+
margin-right: 0.25em;
|
|
138
137
|
}
|
|
139
138
|
.wp-block-navigation .wp-block-navigation__submenu-icon svg {
|
|
140
139
|
display: inline-block;
|
|
141
140
|
stroke: currentColor;
|
|
142
141
|
width: inherit;
|
|
143
142
|
height: inherit;
|
|
143
|
+
margin-top: 0.075em;
|
|
144
144
|
}
|
|
145
145
|
.wp-block-navigation.is-vertical {
|
|
146
146
|
--navigation-layout-direction: column;
|
|
@@ -211,6 +211,9 @@
|
|
|
211
211
|
width: 0.5em;
|
|
212
212
|
background: transparent;
|
|
213
213
|
}
|
|
214
|
+
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) .wp-block-navigation__submenu-icon {
|
|
215
|
+
margin-left: 0.25em;
|
|
216
|
+
}
|
|
214
217
|
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) .wp-block-navigation__submenu-icon svg {
|
|
215
218
|
transform: rotate(90deg);
|
|
216
219
|
}
|
|
@@ -231,7 +234,7 @@
|
|
|
231
234
|
height: auto;
|
|
232
235
|
min-width: 200px;
|
|
233
236
|
}
|
|
234
|
-
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]
|
|
237
|
+
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container {
|
|
235
238
|
visibility: visible;
|
|
236
239
|
overflow: visible;
|
|
237
240
|
opacity: 1;
|
|
@@ -273,6 +276,14 @@ button.wp-block-navigation-item__content {
|
|
|
273
276
|
cursor: pointer;
|
|
274
277
|
}
|
|
275
278
|
|
|
279
|
+
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
|
|
280
|
+
padding-left: 0.85em;
|
|
281
|
+
}
|
|
282
|
+
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
|
|
283
|
+
margin-right: -0.6em;
|
|
284
|
+
pointer-events: none;
|
|
285
|
+
}
|
|
286
|
+
|
|
276
287
|
/**
|
|
277
288
|
* Margins
|
|
278
289
|
*/
|
|
@@ -126,21 +126,21 @@
|
|
|
126
126
|
align-self: center;
|
|
127
127
|
line-height: 0;
|
|
128
128
|
display: inline-block;
|
|
129
|
-
vertical-align: middle;
|
|
130
129
|
font-size: inherit;
|
|
131
130
|
padding: 0;
|
|
132
131
|
background-color: inherit;
|
|
133
132
|
color: currentColor;
|
|
134
133
|
border: none;
|
|
135
|
-
margin-left: 0.25em;
|
|
136
134
|
width: 0.6em;
|
|
137
135
|
height: 0.6em;
|
|
136
|
+
margin-left: 0.25em;
|
|
138
137
|
}
|
|
139
138
|
.wp-block-navigation .wp-block-navigation__submenu-icon svg {
|
|
140
139
|
display: inline-block;
|
|
141
140
|
stroke: currentColor;
|
|
142
141
|
width: inherit;
|
|
143
142
|
height: inherit;
|
|
143
|
+
margin-top: 0.075em;
|
|
144
144
|
}
|
|
145
145
|
.wp-block-navigation.is-vertical {
|
|
146
146
|
--navigation-layout-direction: column;
|
|
@@ -211,6 +211,9 @@
|
|
|
211
211
|
width: 0.5em;
|
|
212
212
|
background: transparent;
|
|
213
213
|
}
|
|
214
|
+
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) .wp-block-navigation__submenu-icon {
|
|
215
|
+
margin-right: 0.25em;
|
|
216
|
+
}
|
|
214
217
|
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) .wp-block-navigation__submenu-icon svg {
|
|
215
218
|
transform: rotate(-90deg);
|
|
216
219
|
}
|
|
@@ -231,7 +234,7 @@
|
|
|
231
234
|
height: auto;
|
|
232
235
|
min-width: 200px;
|
|
233
236
|
}
|
|
234
|
-
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]
|
|
237
|
+
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container {
|
|
235
238
|
visibility: visible;
|
|
236
239
|
overflow: visible;
|
|
237
240
|
opacity: 1;
|
|
@@ -273,6 +276,14 @@ button.wp-block-navigation-item__content {
|
|
|
273
276
|
cursor: pointer;
|
|
274
277
|
}
|
|
275
278
|
|
|
279
|
+
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
|
|
280
|
+
padding-right: 0.85em;
|
|
281
|
+
}
|
|
282
|
+
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
|
|
283
|
+
margin-left: -0.6em;
|
|
284
|
+
pointer-events: none;
|
|
285
|
+
}
|
|
286
|
+
|
|
276
287
|
/**
|
|
277
288
|
* Margins
|
|
278
289
|
*/
|