summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/social-link
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
commita415c29efee45520ae252d2aa28f1083a521cd7b (patch)
treef4ade4b6668ecc0765de7e1424f7c1427ad433ff /wp-includes/blocks/social-link
parentInitial commit. (diff)
downloadwordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.tar.xz
wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.zip
Adding upstream version 6.4.3+dfsg1.upstream/6.4.3+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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