summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/social-link
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/blocks/social-link')
-rw-r--r--wp-includes/blocks/social-link/block.json37
-rw-r--r--wp-includes/blocks/social-link/editor-rtl.css20
-rw-r--r--wp-includes/blocks/social-link/editor-rtl.min.css1
-rw-r--r--wp-includes/blocks/social-link/editor.css20
-rw-r--r--wp-includes/blocks/social-link/editor.min.css1
5 files changed, 79 insertions, 0 deletions
diff --git a/wp-includes/blocks/social-link/block.json b/wp-includes/blocks/social-link/block.json
new file mode 100644
index 0000000..50e95ef
--- /dev/null
+++ b/wp-includes/blocks/social-link/block.json
@@ -0,0 +1,37 @@
+{
+ "$schema": "https://schemas.wp.org/trunk/block.json",
+ "apiVersion": 3,
+ "name": "core/social-link",
+ "title": "Social Icon",
+ "category": "widgets",
+ "parent": [ "core/social-links" ],
+ "description": "Display an icon linking to a social media profile or site.",
+ "textdomain": "default",
+ "attributes": {
+ "url": {
+ "type": "string"
+ },
+ "service": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "rel": {
+ "type": "string"
+ }
+ },
+ "usesContext": [
+ "openInNewTab",
+ "showLabels",
+ "iconColor",
+ "iconColorValue",
+ "iconBackgroundColor",
+ "iconBackgroundColorValue"
+ ],
+ "supports": {
+ "reusable": false,
+ "html": false
+ },
+ "editorStyle": "wp-block-social-link-editor"
+}
diff --git a/wp-includes/blocks/social-link/editor-rtl.css b/wp-includes/blocks/social-link/editor-rtl.css
new file mode 100644
index 0000000..8c16bcf
--- /dev/null
+++ b/wp-includes/blocks/social-link/editor-rtl.css
@@ -0,0 +1,20 @@
+.wp-block-social-links .wp-social-link{
+ line-height:0;
+}
+.wp-block-social-links .wp-social-link button{
+ color:currentColor;
+ font-size:inherit;
+ height:auto;
+ line-height:0;
+ opacity:1;
+ padding:.25em;
+}
+
+.wp-block-social-links.is-style-pill-shape .wp-social-link button{
+ padding-left:.66667em;
+ padding-right:.66667em;
+}
+
+.wp-block-social-links.is-style-logos-only .wp-social-link button{
+ padding:0;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/social-link/editor-rtl.min.css b/wp-includes/blocks/social-link/editor-rtl.min.css
new file mode 100644
index 0000000..ff5a4b8
--- /dev/null
+++ b/wp-includes/blocks/social-link/editor-rtl.min.css
@@ -0,0 +1 @@
+.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-links .wp-social-link button{color:currentColor;font-size:inherit;height:auto;line-height:0;opacity:1;padding:.25em}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:.66667em;padding-right:.66667em}.wp-block-social-links.is-style-logos-only .wp-social-link button{padding:0} \ No newline at end of file
diff --git a/wp-includes/blocks/social-link/editor.css b/wp-includes/blocks/social-link/editor.css
new file mode 100644
index 0000000..8c16bcf
--- /dev/null
+++ b/wp-includes/blocks/social-link/editor.css
@@ -0,0 +1,20 @@
+.wp-block-social-links .wp-social-link{
+ line-height:0;
+}
+.wp-block-social-links .wp-social-link button{
+ color:currentColor;
+ font-size:inherit;
+ height:auto;
+ line-height:0;
+ opacity:1;
+ padding:.25em;
+}
+
+.wp-block-social-links.is-style-pill-shape .wp-social-link button{
+ padding-left:.66667em;
+ padding-right:.66667em;
+}
+
+.wp-block-social-links.is-style-logos-only .wp-social-link button{
+ padding:0;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/social-link/editor.min.css b/wp-includes/blocks/social-link/editor.min.css
new file mode 100644
index 0000000..ff5a4b8
--- /dev/null
+++ b/wp-includes/blocks/social-link/editor.min.css
@@ -0,0 +1 @@
+.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-links .wp-social-link button{color:currentColor;font-size:inherit;height:auto;line-height:0;opacity:1;padding:.25em}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:.66667em;padding-right:.66667em}.wp-block-social-links.is-style-logos-only .wp-social-link button{padding:0} \ No newline at end of file