first commit
This commit is contained in:
53
wp-includes/blocks/rss/block.json
Normal file
53
wp-includes/blocks/rss/block.json
Normal file
@ -0,0 +1,53 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/rss",
|
||||
"title": "RSS",
|
||||
"category": "widgets",
|
||||
"description": "Display entries from any RSS or Atom feed.",
|
||||
"keywords": [ "atom", "feed" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"columns": {
|
||||
"type": "number",
|
||||
"default": 2
|
||||
},
|
||||
"blockLayout": {
|
||||
"type": "string",
|
||||
"default": "list"
|
||||
},
|
||||
"feedURL": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"itemsToShow": {
|
||||
"type": "number",
|
||||
"default": 5
|
||||
},
|
||||
"displayExcerpt": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"displayAuthor": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"displayDate": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"excerptLength": {
|
||||
"type": "number",
|
||||
"default": 55
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": true,
|
||||
"html": false,
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-rss-editor",
|
||||
"style": "wp-block-rss"
|
||||
}
|
16
wp-includes/blocks/rss/editor-rtl.css
Normal file
16
wp-includes/blocks/rss/editor-rtl.css
Normal file
@ -0,0 +1,16 @@
|
||||
.wp-block-rss li a>div{
|
||||
display:inline;
|
||||
}
|
||||
|
||||
.wp-block-rss__placeholder-form>*{
|
||||
margin-bottom:8px;
|
||||
}
|
||||
@media (min-width:782px){
|
||||
.wp-block-rss__placeholder-form>*{
|
||||
margin-bottom:0;
|
||||
}
|
||||
}
|
||||
.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{
|
||||
flex:1;
|
||||
min-width:80%;
|
||||
}
|
1
wp-includes/blocks/rss/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/rss/editor-rtl.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1;min-width:80%}
|
16
wp-includes/blocks/rss/editor.css
Normal file
16
wp-includes/blocks/rss/editor.css
Normal file
@ -0,0 +1,16 @@
|
||||
.wp-block-rss li a>div{
|
||||
display:inline;
|
||||
}
|
||||
|
||||
.wp-block-rss__placeholder-form>*{
|
||||
margin-bottom:8px;
|
||||
}
|
||||
@media (min-width:782px){
|
||||
.wp-block-rss__placeholder-form>*{
|
||||
margin-bottom:0;
|
||||
}
|
||||
}
|
||||
.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{
|
||||
flex:1;
|
||||
min-width:80%;
|
||||
}
|
1
wp-includes/blocks/rss/editor.min.css
vendored
Normal file
1
wp-includes/blocks/rss/editor.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1;min-width:80%}
|
45
wp-includes/blocks/rss/style-rtl.css
Normal file
45
wp-includes/blocks/rss/style-rtl.css
Normal file
@ -0,0 +1,45 @@
|
||||
ul.wp-block-rss{
|
||||
list-style:none;
|
||||
padding:0;
|
||||
}
|
||||
ul.wp-block-rss.wp-block-rss{
|
||||
box-sizing:border-box;
|
||||
}
|
||||
ul.wp-block-rss.alignleft{
|
||||
margin-right:2em;
|
||||
}
|
||||
ul.wp-block-rss.alignright{
|
||||
margin-left:2em;
|
||||
}
|
||||
ul.wp-block-rss.is-grid{
|
||||
display:flex;
|
||||
flex-wrap:wrap;
|
||||
list-style:none;
|
||||
padding:0;
|
||||
}
|
||||
ul.wp-block-rss.is-grid li{
|
||||
margin:0 0 1em 1em;
|
||||
width:100%;
|
||||
}
|
||||
@media (min-width:600px){
|
||||
ul.wp-block-rss.columns-2 li{
|
||||
width:calc(50% - 1em);
|
||||
}
|
||||
ul.wp-block-rss.columns-3 li{
|
||||
width:calc(33.33333% - 1em);
|
||||
}
|
||||
ul.wp-block-rss.columns-4 li{
|
||||
width:calc(25% - 1em);
|
||||
}
|
||||
ul.wp-block-rss.columns-5 li{
|
||||
width:calc(20% - 1em);
|
||||
}
|
||||
ul.wp-block-rss.columns-6 li{
|
||||
width:calc(16.66667% - 1em);
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-rss__item-author,.wp-block-rss__item-publish-date{
|
||||
display:block;
|
||||
font-size:.8125em;
|
||||
}
|
1
wp-includes/blocks/rss/style-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/rss/style-rtl.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
ul.wp-block-rss{list-style:none;padding:0}ul.wp-block-rss.wp-block-rss{box-sizing:border-box}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;list-style:none;padding:0}ul.wp-block-rss.is-grid li{margin:0 0 1em 1em;width:100%}@media (min-width:600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;font-size:.8125em}
|
45
wp-includes/blocks/rss/style.css
Normal file
45
wp-includes/blocks/rss/style.css
Normal file
@ -0,0 +1,45 @@
|
||||
ul.wp-block-rss{
|
||||
list-style:none;
|
||||
padding:0;
|
||||
}
|
||||
ul.wp-block-rss.wp-block-rss{
|
||||
box-sizing:border-box;
|
||||
}
|
||||
ul.wp-block-rss.alignleft{
|
||||
margin-right:2em;
|
||||
}
|
||||
ul.wp-block-rss.alignright{
|
||||
margin-left:2em;
|
||||
}
|
||||
ul.wp-block-rss.is-grid{
|
||||
display:flex;
|
||||
flex-wrap:wrap;
|
||||
list-style:none;
|
||||
padding:0;
|
||||
}
|
||||
ul.wp-block-rss.is-grid li{
|
||||
margin:0 1em 1em 0;
|
||||
width:100%;
|
||||
}
|
||||
@media (min-width:600px){
|
||||
ul.wp-block-rss.columns-2 li{
|
||||
width:calc(50% - 1em);
|
||||
}
|
||||
ul.wp-block-rss.columns-3 li{
|
||||
width:calc(33.33333% - 1em);
|
||||
}
|
||||
ul.wp-block-rss.columns-4 li{
|
||||
width:calc(25% - 1em);
|
||||
}
|
||||
ul.wp-block-rss.columns-5 li{
|
||||
width:calc(20% - 1em);
|
||||
}
|
||||
ul.wp-block-rss.columns-6 li{
|
||||
width:calc(16.66667% - 1em);
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-rss__item-author,.wp-block-rss__item-publish-date{
|
||||
display:block;
|
||||
font-size:.8125em;
|
||||
}
|
1
wp-includes/blocks/rss/style.min.css
vendored
Normal file
1
wp-includes/blocks/rss/style.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
ul.wp-block-rss{list-style:none;padding:0}ul.wp-block-rss.wp-block-rss{box-sizing:border-box}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;list-style:none;padding:0}ul.wp-block-rss.is-grid li{margin:0 1em 1em 0;width:100%}@media (min-width:600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;font-size:.8125em}
|
Reference in New Issue
Block a user