first commit
This commit is contained in:
97
wp-includes/blocks/group/block.json
Normal file
97
wp-includes/blocks/group/block.json
Normal file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"$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,
|
||||
"align": [ "wide", "full" ],
|
||||
"anchor": true,
|
||||
"ariaLabel": true,
|
||||
"html": false,
|
||||
"background": {
|
||||
"backgroundImage": true,
|
||||
"backgroundSize": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"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
|
||||
},
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-group-editor",
|
||||
"style": "wp-block-group"
|
||||
}
|
||||
47
wp-includes/blocks/group/editor-rtl.css
Normal file
47
wp-includes/blocks/group/editor-rtl.css
Normal file
@@ -0,0 +1,47 @@
|
||||
.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-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{
|
||||
pointer-events:all;
|
||||
}
|
||||
1
wp-includes/blocks/group/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/group/editor-rtl.min.css
vendored
Normal file
@@ -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-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}
|
||||
47
wp-includes/blocks/group/editor.css
Normal file
47
wp-includes/blocks/group/editor.css
Normal file
@@ -0,0 +1,47 @@
|
||||
.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-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{
|
||||
pointer-events:all;
|
||||
}
|
||||
1
wp-includes/blocks/group/editor.min.css
vendored
Normal file
1
wp-includes/blocks/group/editor.min.css
vendored
Normal file
@@ -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-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}
|
||||
7
wp-includes/blocks/group/style-rtl.css
Normal file
7
wp-includes/blocks/group/style-rtl.css
Normal file
@@ -0,0 +1,7 @@
|
||||
.wp-block-group{
|
||||
box-sizing:border-box;
|
||||
}
|
||||
|
||||
:where(.wp-block-group.wp-block-group-is-layout-constrained){
|
||||
position:relative;
|
||||
}
|
||||
1
wp-includes/blocks/group/style-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/group/style-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative}
|
||||
7
wp-includes/blocks/group/style.css
Normal file
7
wp-includes/blocks/group/style.css
Normal file
@@ -0,0 +1,7 @@
|
||||
.wp-block-group{
|
||||
box-sizing:border-box;
|
||||
}
|
||||
|
||||
:where(.wp-block-group.wp-block-group-is-layout-constrained){
|
||||
position:relative;
|
||||
}
|
||||
1
wp-includes/blocks/group/style.min.css
vendored
Normal file
1
wp-includes/blocks/group/style.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative}
|
||||
3
wp-includes/blocks/group/theme-rtl.css
Normal file
3
wp-includes/blocks/group/theme-rtl.css
Normal file
@@ -0,0 +1,3 @@
|
||||
:where(.wp-block-group.has-background){
|
||||
padding:1.25em 2.375em;
|
||||
}
|
||||
1
wp-includes/blocks/group/theme-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/group/theme-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
:where(.wp-block-group.has-background){padding:1.25em 2.375em}
|
||||
3
wp-includes/blocks/group/theme.css
Normal file
3
wp-includes/blocks/group/theme.css
Normal file
@@ -0,0 +1,3 @@
|
||||
:where(.wp-block-group.has-background){
|
||||
padding:1.25em 2.375em;
|
||||
}
|
||||
1
wp-includes/blocks/group/theme.min.css
vendored
Normal file
1
wp-includes/blocks/group/theme.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
:where(.wp-block-group.has-background){padding:1.25em 2.375em}
|
||||
Reference in New Issue
Block a user