first commit
This commit is contained in:
60
wp-includes/blocks/post-excerpt/block.json
Normal file
60
wp-includes/blocks/post-excerpt/block.json
Normal file
@ -0,0 +1,60 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/post-excerpt",
|
||||
"title": "Excerpt",
|
||||
"category": "theme",
|
||||
"description": "Display the excerpt.",
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"textAlign": {
|
||||
"type": "string"
|
||||
},
|
||||
"moreText": {
|
||||
"type": "string"
|
||||
},
|
||||
"showMoreOnNewLine": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"excerptLength": {
|
||||
"type": "number",
|
||||
"default": 55
|
||||
}
|
||||
},
|
||||
"usesContext": [ "postId", "postType", "queryId" ],
|
||||
"supports": {
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"background": true,
|
||||
"text": true,
|
||||
"link": true
|
||||
}
|
||||
},
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
"padding": true
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": true,
|
||||
"lineHeight": true,
|
||||
"__experimentalFontFamily": true,
|
||||
"__experimentalFontWeight": true,
|
||||
"__experimentalFontStyle": true,
|
||||
"__experimentalTextTransform": true,
|
||||
"__experimentalTextDecoration": true,
|
||||
"__experimentalLetterSpacing": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"fontSize": true
|
||||
}
|
||||
},
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-post-excerpt-editor",
|
||||
"style": "wp-block-post-excerpt"
|
||||
}
|
3
wp-includes/blocks/post-excerpt/editor-rtl.css
Normal file
3
wp-includes/blocks/post-excerpt/editor-rtl.css
Normal file
@ -0,0 +1,3 @@
|
||||
.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{
|
||||
display:inline;
|
||||
}
|
1
wp-includes/blocks/post-excerpt/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/post-excerpt/editor-rtl.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}
|
3
wp-includes/blocks/post-excerpt/editor.css
Normal file
3
wp-includes/blocks/post-excerpt/editor.css
Normal file
@ -0,0 +1,3 @@
|
||||
.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{
|
||||
display:inline;
|
||||
}
|
1
wp-includes/blocks/post-excerpt/editor.min.css
vendored
Normal file
1
wp-includes/blocks/post-excerpt/editor.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}
|
18
wp-includes/blocks/post-excerpt/style-rtl.css
Normal file
18
wp-includes/blocks/post-excerpt/style-rtl.css
Normal file
@ -0,0 +1,18 @@
|
||||
:where(.wp-block-post-excerpt){
|
||||
margin-bottom:var(--wp--style--block-gap);
|
||||
margin-top:var(--wp--style--block-gap);
|
||||
}
|
||||
|
||||
.wp-block-post-excerpt__excerpt{
|
||||
margin-bottom:0;
|
||||
margin-top:0;
|
||||
}
|
||||
|
||||
.wp-block-post-excerpt__more-text{
|
||||
margin-bottom:0;
|
||||
margin-top:var(--wp--style--block-gap);
|
||||
}
|
||||
|
||||
.wp-block-post-excerpt__more-link{
|
||||
display:inline-block;
|
||||
}
|
1
wp-includes/blocks/post-excerpt/style-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/post-excerpt/style-rtl.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
:where(.wp-block-post-excerpt){margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-bottom:0;margin-top:0}.wp-block-post-excerpt__more-text{margin-bottom:0;margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__more-link{display:inline-block}
|
18
wp-includes/blocks/post-excerpt/style.css
Normal file
18
wp-includes/blocks/post-excerpt/style.css
Normal file
@ -0,0 +1,18 @@
|
||||
:where(.wp-block-post-excerpt){
|
||||
margin-bottom:var(--wp--style--block-gap);
|
||||
margin-top:var(--wp--style--block-gap);
|
||||
}
|
||||
|
||||
.wp-block-post-excerpt__excerpt{
|
||||
margin-bottom:0;
|
||||
margin-top:0;
|
||||
}
|
||||
|
||||
.wp-block-post-excerpt__more-text{
|
||||
margin-bottom:0;
|
||||
margin-top:var(--wp--style--block-gap);
|
||||
}
|
||||
|
||||
.wp-block-post-excerpt__more-link{
|
||||
display:inline-block;
|
||||
}
|
1
wp-includes/blocks/post-excerpt/style.min.css
vendored
Normal file
1
wp-includes/blocks/post-excerpt/style.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
:where(.wp-block-post-excerpt){margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-bottom:0;margin-top:0}.wp-block-post-excerpt__more-text{margin-bottom:0;margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__more-link{display:inline-block}
|
Reference in New Issue
Block a user