first commit
This commit is contained in:
68
wp-includes/blocks/details/block.json
Normal file
68
wp-includes/blocks/details/block.json
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/details",
|
||||
"title": "Details",
|
||||
"category": "text",
|
||||
"description": "Hide and show additional content.",
|
||||
"keywords": [ "accordion", "summary", "toggle", "disclosure" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"showContent": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"summary": {
|
||||
"type": "rich-text",
|
||||
"source": "rich-text",
|
||||
"selector": "summary"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": [ "wide", "full" ],
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"background": true,
|
||||
"text": true
|
||||
}
|
||||
},
|
||||
"__experimentalBorder": {
|
||||
"color": true,
|
||||
"width": true,
|
||||
"style": true
|
||||
},
|
||||
"html": false,
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
"padding": true,
|
||||
"blockGap": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"margin": false,
|
||||
"padding": false
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": true,
|
||||
"lineHeight": true,
|
||||
"__experimentalFontFamily": true,
|
||||
"__experimentalFontWeight": true,
|
||||
"__experimentalFontStyle": true,
|
||||
"__experimentalTextTransform": true,
|
||||
"__experimentalTextDecoration": true,
|
||||
"__experimentalLetterSpacing": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"fontSize": true
|
||||
}
|
||||
},
|
||||
"layout": {
|
||||
"allowEditing": false
|
||||
},
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-details-editor",
|
||||
"style": "wp-block-details"
|
||||
}
|
3
wp-includes/blocks/details/editor-rtl.css
Normal file
3
wp-includes/blocks/details/editor-rtl.css
Normal file
@ -0,0 +1,3 @@
|
||||
.wp-block-details summary div{
|
||||
display:inline;
|
||||
}
|
1
wp-includes/blocks/details/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/details/editor-rtl.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-details summary div{display:inline}
|
3
wp-includes/blocks/details/editor.css
Normal file
3
wp-includes/blocks/details/editor.css
Normal file
@ -0,0 +1,3 @@
|
||||
.wp-block-details summary div{
|
||||
display:inline;
|
||||
}
|
1
wp-includes/blocks/details/editor.min.css
vendored
Normal file
1
wp-includes/blocks/details/editor.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-details summary div{display:inline}
|
8
wp-includes/blocks/details/style-rtl.css
Normal file
8
wp-includes/blocks/details/style-rtl.css
Normal file
@ -0,0 +1,8 @@
|
||||
.wp-block-details{
|
||||
box-sizing:border-box;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
.wp-block-details summary{
|
||||
cursor:pointer;
|
||||
}
|
1
wp-includes/blocks/details/style-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/details/style-rtl.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-details{box-sizing:border-box;overflow:hidden}.wp-block-details summary{cursor:pointer}
|
8
wp-includes/blocks/details/style.css
Normal file
8
wp-includes/blocks/details/style.css
Normal file
@ -0,0 +1,8 @@
|
||||
.wp-block-details{
|
||||
box-sizing:border-box;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
.wp-block-details summary{
|
||||
cursor:pointer;
|
||||
}
|
1
wp-includes/blocks/details/style.min.css
vendored
Normal file
1
wp-includes/blocks/details/style.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-details{box-sizing:border-box;overflow:hidden}.wp-block-details summary{cursor:pointer}
|
Reference in New Issue
Block a user