diff options
Diffstat (limited to '')
-rw-r--r-- | wp-includes/blocks/group/block.json | 91 | ||||
-rw-r--r-- | wp-includes/blocks/group/editor-rtl.css | 90 | ||||
-rw-r--r-- | wp-includes/blocks/group/editor-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/group/editor.css | 90 | ||||
-rw-r--r-- | wp-includes/blocks/group/editor.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/group/style-rtl.css | 3 | ||||
-rw-r--r-- | wp-includes/blocks/group/style-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/group/style.css | 3 | ||||
-rw-r--r-- | wp-includes/blocks/group/style.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/group/theme-rtl.css | 3 | ||||
-rw-r--r-- | wp-includes/blocks/group/theme-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/group/theme.css | 3 | ||||
-rw-r--r-- | wp-includes/blocks/group/theme.min.css | 1 |
13 files changed, 289 insertions, 0 deletions
diff --git a/wp-includes/blocks/group/block.json b/wp-includes/blocks/group/block.json new file mode 100644 index 0000000..4b89d86 --- /dev/null +++ b/wp-includes/blocks/group/block.json @@ -0,0 +1,91 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "core/group", + "title": "Group", + "category": "design", + "description": "Gather blocks in a layout container.", + "keywords": [ "container", "wrapper", "row", "section" ], + "textdomain": "default", + "attributes": { + "tagName": { + "type": "string", + "default": "div" + }, + "templateLock": { + "type": [ "string", "boolean" ], + "enum": [ "all", "insert", "contentOnly", false ] + }, + "allowedBlocks": { + "type": "array" + } + }, + "supports": { + "__experimentalOnEnter": true, + "__experimentalOnMerge": true, + "__experimentalSettings": true, + "__experimentalMetadata": true, + "align": [ "wide", "full" ], + "anchor": true, + "ariaLabel": true, + "html": false, + "background": { + "backgroundImage": true + }, + "color": { + "gradients": true, + "heading": true, + "button": true, + "link": true, + "__experimentalDefaultControls": { + "background": true, + "text": true + } + }, + "spacing": { + "margin": [ "top", "bottom" ], + "padding": true, + "blockGap": true, + "__experimentalDefaultControls": { + "padding": true, + "blockGap": true + } + }, + "dimensions": { + "minHeight": true + }, + "__experimentalBorder": { + "color": true, + "radius": true, + "style": true, + "width": true, + "__experimentalDefaultControls": { + "color": true, + "radius": true, + "style": true, + "width": true + } + }, + "position": { + "sticky": true + }, + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalFontWeight": true, + "__experimentalFontStyle": true, + "__experimentalTextTransform": true, + "__experimentalTextDecoration": true, + "__experimentalLetterSpacing": true, + "__experimentalDefaultControls": { + "fontSize": true + } + }, + "layout": { + "allowSizingOnChildren": true + } + }, + "editorStyle": "wp-block-group-editor", + "style": "wp-block-group" +} diff --git a/wp-includes/blocks/group/editor-rtl.css b/wp-includes/blocks/group/editor-rtl.css new file mode 100644 index 0000000..78cb04e --- /dev/null +++ b/wp-includes/blocks/group/editor-rtl.css @@ -0,0 +1,90 @@ +.wp-block-group .block-editor-block-list__insertion-point{ + left:0; + right:0; +} + +[data-type="core/group"].is-selected .block-list-appender{ + margin-left:0; + margin-right:0; +} +[data-type="core/group"].is-selected .has-background .block-list-appender{ + margin-bottom:18px; + margin-top:18px; +} + +.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{ + gap:inherit; + pointer-events:none; +} +.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{ + display:inherit; + flex:1; + flex-direction:inherit; + width:100%; +} +.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{ + border:1px dashed; + border-radius:2px; + content:""; + display:flex; + flex:1 0 48px; + min-height:46px; + pointer-events:none; +} +.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{ + background:currentColor; + bottom:0; + content:""; + left:0; + opacity:.1; + pointer-events:none; + position:absolute; + right:0; + top:0; +} +.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{ + pointer-events:all; +} + +.wp-block-group__placeholder .wp-block-group-placeholder__variations{ + display:flex; + flex-direction:row; + flex-wrap:wrap; + justify-content:center; + list-style:none; + margin:0; + padding:0; + width:100%; +} +.wp-block-group__placeholder .components-placeholder__instructions{ + margin-bottom:18px; + text-align:center; +} +.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{ + fill:#ccc !important; +} +.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{ + fill:var(--wp-admin-theme-color) !important; +} +.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{ + align-items:center; + display:flex; + flex-direction:column; + margin:0 12px 12px; + width:auto; +} +.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{ + height:32px; + padding:0; + width:44px; +} +.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{ + box-shadow:none; +} +.wp-block-group__placeholder .components-placeholder{ + min-height:auto; + padding:24px; +} +.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{ + margin:12px; +}
\ No newline at end of file diff --git a/wp-includes/blocks/group/editor-rtl.min.css b/wp-includes/blocks/group/editor-rtl.min.css new file mode 100644 index 0000000..ff863a8 --- /dev/null +++ b/wp-includes/blocks/group/editor-rtl.min.css @@ -0,0 +1 @@ +.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.wp-block-group__placeholder .wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;list-style:none;margin:0;padding:0;width:100%}.wp-block-group__placeholder .components-placeholder__instructions{margin-bottom:18px;text-align:center}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{fill:#ccc!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{fill:var(--wp-admin-theme-color)!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;margin:0 12px 12px;width:auto}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{height:32px;padding:0;width:44px}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{box-shadow:none}.wp-block-group__placeholder .components-placeholder{min-height:auto;padding:24px}.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{margin:12px}
\ No newline at end of file diff --git a/wp-includes/blocks/group/editor.css b/wp-includes/blocks/group/editor.css new file mode 100644 index 0000000..78cb04e --- /dev/null +++ b/wp-includes/blocks/group/editor.css @@ -0,0 +1,90 @@ +.wp-block-group .block-editor-block-list__insertion-point{ + left:0; + right:0; +} + +[data-type="core/group"].is-selected .block-list-appender{ + margin-left:0; + margin-right:0; +} +[data-type="core/group"].is-selected .has-background .block-list-appender{ + margin-bottom:18px; + margin-top:18px; +} + +.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{ + gap:inherit; + pointer-events:none; +} +.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{ + display:inherit; + flex:1; + flex-direction:inherit; + width:100%; +} +.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{ + border:1px dashed; + border-radius:2px; + content:""; + display:flex; + flex:1 0 48px; + min-height:46px; + pointer-events:none; +} +.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{ + background:currentColor; + bottom:0; + content:""; + left:0; + opacity:.1; + pointer-events:none; + position:absolute; + right:0; + top:0; +} +.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{ + pointer-events:all; +} + +.wp-block-group__placeholder .wp-block-group-placeholder__variations{ + display:flex; + flex-direction:row; + flex-wrap:wrap; + justify-content:center; + list-style:none; + margin:0; + padding:0; + width:100%; +} +.wp-block-group__placeholder .components-placeholder__instructions{ + margin-bottom:18px; + text-align:center; +} +.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{ + fill:#ccc !important; +} +.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{ + fill:var(--wp-admin-theme-color) !important; +} +.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{ + align-items:center; + display:flex; + flex-direction:column; + margin:0 12px 12px; + width:auto; +} +.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{ + height:32px; + padding:0; + width:44px; +} +.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{ + box-shadow:none; +} +.wp-block-group__placeholder .components-placeholder{ + min-height:auto; + padding:24px; +} +.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{ + margin:12px; +}
\ No newline at end of file diff --git a/wp-includes/blocks/group/editor.min.css b/wp-includes/blocks/group/editor.min.css new file mode 100644 index 0000000..ff863a8 --- /dev/null +++ b/wp-includes/blocks/group/editor.min.css @@ -0,0 +1 @@ +.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;content:"";display:flex;flex:1 0 48px;min-height:46px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.wp-block-group__placeholder .wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;list-style:none;margin:0;padding:0;width:100%}.wp-block-group__placeholder .components-placeholder__instructions{margin-bottom:18px;text-align:center}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg{fill:#ccc!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations svg:hover{fill:var(--wp-admin-theme-color)!important}.wp-block-group__placeholder .wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;margin:0 12px 12px;width:auto}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button{height:32px;padding:0;width:44px}.wp-block-group__placeholder .wp-block-group-placeholder__variations li>.wp-block-group-placeholder__variation-button:hover{box-shadow:none}.wp-block-group__placeholder .components-placeholder{min-height:auto;padding:24px}.wp-block-group__placeholder .is-medium .wp-block-group-placeholder__variations>li,.wp-block-group__placeholder .is-small .wp-block-group-placeholder__variations>li{margin:12px}
\ No newline at end of file diff --git a/wp-includes/blocks/group/style-rtl.css b/wp-includes/blocks/group/style-rtl.css new file mode 100644 index 0000000..5128c34 --- /dev/null +++ b/wp-includes/blocks/group/style-rtl.css @@ -0,0 +1,3 @@ +.wp-block-group{ + box-sizing:border-box; +}
\ No newline at end of file diff --git a/wp-includes/blocks/group/style-rtl.min.css b/wp-includes/blocks/group/style-rtl.min.css new file mode 100644 index 0000000..9124e9b --- /dev/null +++ b/wp-includes/blocks/group/style-rtl.min.css @@ -0,0 +1 @@ +.wp-block-group{box-sizing:border-box}
\ No newline at end of file diff --git a/wp-includes/blocks/group/style.css b/wp-includes/blocks/group/style.css new file mode 100644 index 0000000..5128c34 --- /dev/null +++ b/wp-includes/blocks/group/style.css @@ -0,0 +1,3 @@ +.wp-block-group{ + box-sizing:border-box; +}
\ No newline at end of file diff --git a/wp-includes/blocks/group/style.min.css b/wp-includes/blocks/group/style.min.css new file mode 100644 index 0000000..9124e9b --- /dev/null +++ b/wp-includes/blocks/group/style.min.css @@ -0,0 +1 @@ +.wp-block-group{box-sizing:border-box}
\ No newline at end of file diff --git a/wp-includes/blocks/group/theme-rtl.css b/wp-includes/blocks/group/theme-rtl.css new file mode 100644 index 0000000..d232b03 --- /dev/null +++ b/wp-includes/blocks/group/theme-rtl.css @@ -0,0 +1,3 @@ +:where(.wp-block-group.has-background){ + padding:1.25em 2.375em; +}
\ No newline at end of file diff --git a/wp-includes/blocks/group/theme-rtl.min.css b/wp-includes/blocks/group/theme-rtl.min.css new file mode 100644 index 0000000..df68e7e --- /dev/null +++ b/wp-includes/blocks/group/theme-rtl.min.css @@ -0,0 +1 @@ +:where(.wp-block-group.has-background){padding:1.25em 2.375em}
\ No newline at end of file diff --git a/wp-includes/blocks/group/theme.css b/wp-includes/blocks/group/theme.css new file mode 100644 index 0000000..d232b03 --- /dev/null +++ b/wp-includes/blocks/group/theme.css @@ -0,0 +1,3 @@ +:where(.wp-block-group.has-background){ + padding:1.25em 2.375em; +}
\ No newline at end of file diff --git a/wp-includes/blocks/group/theme.min.css b/wp-includes/blocks/group/theme.min.css new file mode 100644 index 0000000..df68e7e --- /dev/null +++ b/wp-includes/blocks/group/theme.min.css @@ -0,0 +1 @@ +:where(.wp-block-group.has-background){padding:1.25em 2.375em}
\ No newline at end of file |