first commit
This commit is contained in:
66
wp-includes/blocks/latest-comments/block.json
Normal file
66
wp-includes/blocks/latest-comments/block.json
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"$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
|
||||
},
|
||||
"displayContent": {
|
||||
"type": "string",
|
||||
"default": "excerpt",
|
||||
"enum": [ "none", "excerpt", "full" ]
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"background": true,
|
||||
"text": true,
|
||||
"link": 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
|
||||
}
|
||||
},
|
||||
"style": "wp-block-latest-comments"
|
||||
}
|
||||
59
wp-includes/blocks/latest-comments/style-rtl.css
Normal file
59
wp-includes/blocks/latest-comments/style-rtl.css
Normal file
@@ -0,0 +1,59 @@
|
||||
ol.wp-block-latest-comments {
|
||||
margin-right: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
: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 {
|
||||
min-height: 2.25em;
|
||||
list-style: none;
|
||||
}
|
||||
.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta,
|
||||
.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt {
|
||||
margin-right: 3.25em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-excerpt p {
|
||||
font-size: 0.875em;
|
||||
margin: 0.36em 0 1.4em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-date {
|
||||
display: block;
|
||||
font-size: 0.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: 0.75em;
|
||||
width: 2.5em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments[style*=font-size] a,
|
||||
.wp-block-latest-comments[class*=-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}
|
||||
59
wp-includes/blocks/latest-comments/style.css
Normal file
59
wp-includes/blocks/latest-comments/style.css
Normal file
@@ -0,0 +1,59 @@
|
||||
ol.wp-block-latest-comments {
|
||||
margin-left: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
: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 {
|
||||
min-height: 2.25em;
|
||||
list-style: none;
|
||||
}
|
||||
.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta,
|
||||
.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt {
|
||||
margin-left: 3.25em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-excerpt p {
|
||||
font-size: 0.875em;
|
||||
margin: 0.36em 0 1.4em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-date {
|
||||
display: block;
|
||||
font-size: 0.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: 0.75em;
|
||||
width: 2.5em;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments[style*=font-size] a,
|
||||
.wp-block-latest-comments[class*=-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