first commit
This commit is contained in:
56
wp-includes/blocks/latest-comments/block.json
Normal file
56
wp-includes/blocks/latest-comments/block.json
Normal file
@ -0,0 +1,56 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/latest-comments",
|
||||
"title": "Latest Comments",
|
||||
"category": "widgets",
|
||||
"description": "Display a list of your most recent comments.",
|
||||
"keywords": [ "recent comments" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"commentsToShow": {
|
||||
"type": "number",
|
||||
"default": 5,
|
||||
"minimum": 1,
|
||||
"maximum": 100
|
||||
},
|
||||
"displayAvatar": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"displayDate": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"displayExcerpt": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": true,
|
||||
"html": false,
|
||||
"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-latest-comments-editor",
|
||||
"style": "wp-block-latest-comments"
|
||||
}
|
55
wp-includes/blocks/latest-comments/style-rtl.css
Normal file
55
wp-includes/blocks/latest-comments/style-rtl.css
Normal file
@ -0,0 +1,55 @@
|
||||
ol.wp-block-latest-comments{
|
||||
box-sizing:border-box;
|
||||
margin-right:0;
|
||||
}
|
||||
|
||||
:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){
|
||||
line-height:1.1;
|
||||
}
|
||||
|
||||
:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){
|
||||
line-height:1.8;
|
||||
}
|
||||
|
||||
.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){
|
||||
line-height:1.5;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments{
|
||||
padding-right:0;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment{
|
||||
list-style:none;
|
||||
margin-bottom:1em;
|
||||
}
|
||||
.has-avatars .wp-block-latest-comments__comment{
|
||||
list-style:none;
|
||||
min-height:2.25em;
|
||||
}
|
||||
.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{
|
||||
margin-right:3.25em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-excerpt p{
|
||||
font-size:.875em;
|
||||
margin:.36em 0 1.4em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-date{
|
||||
display:block;
|
||||
font-size:.75em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{
|
||||
border-radius:1.5em;
|
||||
display:block;
|
||||
float:right;
|
||||
height:2.5em;
|
||||
margin-left:.75em;
|
||||
width:2.5em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{
|
||||
font-size:inherit;
|
||||
}
|
1
wp-includes/blocks/latest-comments/style-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/latest-comments/style-rtl.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
ol.wp-block-latest-comments{box-sizing:border-box;margin-right:0}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments .wp-block-latest-comments{padding-right:0}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{list-style:none;min-height:2.25em}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{font-size:inherit}
|
55
wp-includes/blocks/latest-comments/style.css
Normal file
55
wp-includes/blocks/latest-comments/style.css
Normal file
@ -0,0 +1,55 @@
|
||||
ol.wp-block-latest-comments{
|
||||
box-sizing:border-box;
|
||||
margin-left:0;
|
||||
}
|
||||
|
||||
:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){
|
||||
line-height:1.1;
|
||||
}
|
||||
|
||||
:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){
|
||||
line-height:1.8;
|
||||
}
|
||||
|
||||
.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){
|
||||
line-height:1.5;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments{
|
||||
padding-left:0;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment{
|
||||
list-style:none;
|
||||
margin-bottom:1em;
|
||||
}
|
||||
.has-avatars .wp-block-latest-comments__comment{
|
||||
list-style:none;
|
||||
min-height:2.25em;
|
||||
}
|
||||
.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{
|
||||
margin-left:3.25em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-excerpt p{
|
||||
font-size:.875em;
|
||||
margin:.36em 0 1.4em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-date{
|
||||
display:block;
|
||||
font-size:.75em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{
|
||||
border-radius:1.5em;
|
||||
display:block;
|
||||
float:left;
|
||||
height:2.5em;
|
||||
margin-right:.75em;
|
||||
width:2.5em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{
|
||||
font-size:inherit;
|
||||
}
|
1
wp-includes/blocks/latest-comments/style.min.css
vendored
Normal file
1
wp-includes/blocks/latest-comments/style.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
ol.wp-block-latest-comments{box-sizing:border-box;margin-left:0}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments .wp-block-latest-comments{padding-left:0}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{list-style:none;min-height:2.25em}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{font-size:inherit}
|
Reference in New Issue
Block a user