summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/rss
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/blocks/rss')
-rw-r--r--wp-includes/blocks/rss/block.json50
-rw-r--r--wp-includes/blocks/rss/editor-rtl.css16
-rw-r--r--wp-includes/blocks/rss/editor-rtl.min.css1
-rw-r--r--wp-includes/blocks/rss/editor.css16
-rw-r--r--wp-includes/blocks/rss/editor.min.css1
-rw-r--r--wp-includes/blocks/rss/style-rtl.css45
-rw-r--r--wp-includes/blocks/rss/style-rtl.min.css1
-rw-r--r--wp-includes/blocks/rss/style.css45
-rw-r--r--wp-includes/blocks/rss/style.min.css1
9 files changed, 176 insertions, 0 deletions
diff --git a/wp-includes/blocks/rss/block.json b/wp-includes/blocks/rss/block.json
new file mode 100644
index 0000000..2535eda
--- /dev/null
+++ b/wp-includes/blocks/rss/block.json
@@ -0,0 +1,50 @@
+{
+ "$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
+ },
+ "editorStyle": "wp-block-rss-editor",
+ "style": "wp-block-rss"
+}
diff --git a/wp-includes/blocks/rss/editor-rtl.css b/wp-includes/blocks/rss/editor-rtl.css
new file mode 100644
index 0000000..43815b9
--- /dev/null
+++ b/wp-includes/blocks/rss/editor-rtl.css
@@ -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%;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/rss/editor-rtl.min.css b/wp-includes/blocks/rss/editor-rtl.min.css
new file mode 100644
index 0000000..25774d0
--- /dev/null
+++ b/wp-includes/blocks/rss/editor-rtl.min.css
@@ -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%} \ No newline at end of file
diff --git a/wp-includes/blocks/rss/editor.css b/wp-includes/blocks/rss/editor.css
new file mode 100644
index 0000000..43815b9
--- /dev/null
+++ b/wp-includes/blocks/rss/editor.css
@@ -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%;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/rss/editor.min.css b/wp-includes/blocks/rss/editor.min.css
new file mode 100644
index 0000000..25774d0
--- /dev/null
+++ b/wp-includes/blocks/rss/editor.min.css
@@ -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%} \ No newline at end of file
diff --git a/wp-includes/blocks/rss/style-rtl.css b/wp-includes/blocks/rss/style-rtl.css
new file mode 100644
index 0000000..2e5edd0
--- /dev/null
+++ b/wp-includes/blocks/rss/style-rtl.css
@@ -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;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/rss/style-rtl.min.css b/wp-includes/blocks/rss/style-rtl.min.css
new file mode 100644
index 0000000..6db26a0
--- /dev/null
+++ b/wp-includes/blocks/rss/style-rtl.min.css
@@ -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} \ No newline at end of file
diff --git a/wp-includes/blocks/rss/style.css b/wp-includes/blocks/rss/style.css
new file mode 100644
index 0000000..e25bf93
--- /dev/null
+++ b/wp-includes/blocks/rss/style.css
@@ -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;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/rss/style.min.css b/wp-includes/blocks/rss/style.min.css
new file mode 100644
index 0000000..4ec346d
--- /dev/null
+++ b/wp-includes/blocks/rss/style.min.css
@@ -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} \ No newline at end of file