first commit
This commit is contained in:
43
wp-includes/blocks/social-link/block.json
Normal file
43
wp-includes/blocks/social-link/block.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"$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 profile or site.",
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"role": "content"
|
||||
},
|
||||
"service": {
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"role": "content"
|
||||
},
|
||||
"rel": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"usesContext": [
|
||||
"openInNewTab",
|
||||
"showLabels",
|
||||
"iconColor",
|
||||
"iconColorValue",
|
||||
"iconBackgroundColor",
|
||||
"iconBackgroundColorValue"
|
||||
],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-social-link-editor"
|
||||
}
|
||||
36
wp-includes/blocks/social-link/editor-rtl.css
Normal file
36
wp-includes/blocks/social-link/editor-rtl.css
Normal file
@@ -0,0 +1,36 @@
|
||||
.wp-block-social-links .wp-social-link {
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.wp-block-social-link-anchor {
|
||||
align-items: center;
|
||||
background: none;
|
||||
border: 0;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
font-size: inherit;
|
||||
color: currentColor;
|
||||
height: auto;
|
||||
font-weight: inherit;
|
||||
font-family: inherit;
|
||||
margin: 0;
|
||||
opacity: 1;
|
||||
padding: 0.25em;
|
||||
}
|
||||
.wp-block-social-link-anchor:hover {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button) {
|
||||
padding-right: 0.6666666667em;
|
||||
padding-left: 0.6666666667em;
|
||||
}
|
||||
|
||||
:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block-social-link__toolbar_content_text {
|
||||
width: 250px;
|
||||
}
|
||||
1
wp-includes/blocks/social-link/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/social-link/editor-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:inherit;height:auto;margin:0;opacity:1;padding:.25em}.wp-block-social-link-anchor:hover{transform:none}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:.6666666667em;padding-right:.6666666667em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0}.wp-block-social-link__toolbar_content_text{width:250px}
|
||||
36
wp-includes/blocks/social-link/editor.css
Normal file
36
wp-includes/blocks/social-link/editor.css
Normal file
@@ -0,0 +1,36 @@
|
||||
.wp-block-social-links .wp-social-link {
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.wp-block-social-link-anchor {
|
||||
align-items: center;
|
||||
background: none;
|
||||
border: 0;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
font-size: inherit;
|
||||
color: currentColor;
|
||||
height: auto;
|
||||
font-weight: inherit;
|
||||
font-family: inherit;
|
||||
margin: 0;
|
||||
opacity: 1;
|
||||
padding: 0.25em;
|
||||
}
|
||||
.wp-block-social-link-anchor:hover {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button) {
|
||||
padding-left: 0.6666666667em;
|
||||
padding-right: 0.6666666667em;
|
||||
}
|
||||
|
||||
:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block-social-link__toolbar_content_text {
|
||||
width: 250px;
|
||||
}
|
||||
1
wp-includes/blocks/social-link/editor.min.css
vendored
Normal file
1
wp-includes/blocks/social-link/editor.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:inherit;height:auto;margin:0;opacity:1;padding:.25em}.wp-block-social-link-anchor:hover{transform:none}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:.6666666667em;padding-right:.6666666667em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0}.wp-block-social-link__toolbar_content_text{width:250px}
|
||||
Reference in New Issue
Block a user