diff options
Diffstat (limited to 'wp-includes/blocks/avatar')
-rw-r--r-- | wp-includes/blocks/avatar/block.json | 56 | ||||
-rw-r--r-- | wp-includes/blocks/avatar/editor-rtl.css | 7 | ||||
-rw-r--r-- | wp-includes/blocks/avatar/editor-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/avatar/editor.css | 7 | ||||
-rw-r--r-- | wp-includes/blocks/avatar/editor.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/avatar/style-rtl.css | 9 | ||||
-rw-r--r-- | wp-includes/blocks/avatar/style-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/avatar/style.css | 9 | ||||
-rw-r--r-- | wp-includes/blocks/avatar/style.min.css | 1 |
9 files changed, 92 insertions, 0 deletions
diff --git a/wp-includes/blocks/avatar/block.json b/wp-includes/blocks/avatar/block.json new file mode 100644 index 0000000..3b4ac7c --- /dev/null +++ b/wp-includes/blocks/avatar/block.json @@ -0,0 +1,56 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "core/avatar", + "title": "Avatar", + "category": "theme", + "description": "Add a user’s avatar.", + "textdomain": "default", + "attributes": { + "userId": { + "type": "number" + }, + "size": { + "type": "number", + "default": 96 + }, + "isLink": { + "type": "boolean", + "default": false + }, + "linkTarget": { + "type": "string", + "default": "_self" + } + }, + "usesContext": [ "postType", "postId", "commentId" ], + "supports": { + "html": false, + "align": true, + "alignWide": false, + "spacing": { + "margin": true, + "padding": true + }, + "__experimentalBorder": { + "__experimentalSkipSerialization": true, + "radius": true, + "width": true, + "color": true, + "style": true, + "__experimentalDefaultControls": { + "radius": true + } + }, + "color": { + "text": false, + "background": false, + "__experimentalDuotone": "img" + } + }, + "selectors": { + "border": ".wp-block-avatar img" + }, + "editorStyle": "wp-block-avatar-editor", + "style": "wp-block-avatar" +} diff --git a/wp-includes/blocks/avatar/editor-rtl.css b/wp-includes/blocks/avatar/editor-rtl.css new file mode 100644 index 0000000..5e3ddc5 --- /dev/null +++ b/wp-includes/blocks/avatar/editor-rtl.css @@ -0,0 +1,7 @@ +.wp-block-avatar__image img{ + width:100%; +} + +.wp-block-avatar.aligncenter .components-resizable-box__container{ + margin:0 auto; +}
\ No newline at end of file diff --git a/wp-includes/blocks/avatar/editor-rtl.min.css b/wp-includes/blocks/avatar/editor-rtl.min.css new file mode 100644 index 0000000..88706a0 --- /dev/null +++ b/wp-includes/blocks/avatar/editor-rtl.min.css @@ -0,0 +1 @@ +.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 auto}
\ No newline at end of file diff --git a/wp-includes/blocks/avatar/editor.css b/wp-includes/blocks/avatar/editor.css new file mode 100644 index 0000000..5e3ddc5 --- /dev/null +++ b/wp-includes/blocks/avatar/editor.css @@ -0,0 +1,7 @@ +.wp-block-avatar__image img{ + width:100%; +} + +.wp-block-avatar.aligncenter .components-resizable-box__container{ + margin:0 auto; +}
\ No newline at end of file diff --git a/wp-includes/blocks/avatar/editor.min.css b/wp-includes/blocks/avatar/editor.min.css new file mode 100644 index 0000000..88706a0 --- /dev/null +++ b/wp-includes/blocks/avatar/editor.min.css @@ -0,0 +1 @@ +.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 auto}
\ No newline at end of file diff --git a/wp-includes/blocks/avatar/style-rtl.css b/wp-includes/blocks/avatar/style-rtl.css new file mode 100644 index 0000000..8742c0f --- /dev/null +++ b/wp-includes/blocks/avatar/style-rtl.css @@ -0,0 +1,9 @@ +.wp-block-avatar{ + line-height:0; +} +.wp-block-avatar,.wp-block-avatar img{ + box-sizing:border-box; +} +.wp-block-avatar.aligncenter{ + text-align:center; +}
\ No newline at end of file diff --git a/wp-includes/blocks/avatar/style-rtl.min.css b/wp-includes/blocks/avatar/style-rtl.min.css new file mode 100644 index 0000000..c9989c1 --- /dev/null +++ b/wp-includes/blocks/avatar/style-rtl.min.css @@ -0,0 +1 @@ +.wp-block-avatar{line-height:0}.wp-block-avatar,.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}
\ No newline at end of file diff --git a/wp-includes/blocks/avatar/style.css b/wp-includes/blocks/avatar/style.css new file mode 100644 index 0000000..8742c0f --- /dev/null +++ b/wp-includes/blocks/avatar/style.css @@ -0,0 +1,9 @@ +.wp-block-avatar{ + line-height:0; +} +.wp-block-avatar,.wp-block-avatar img{ + box-sizing:border-box; +} +.wp-block-avatar.aligncenter{ + text-align:center; +}
\ No newline at end of file diff --git a/wp-includes/blocks/avatar/style.min.css b/wp-includes/blocks/avatar/style.min.css new file mode 100644 index 0000000..c9989c1 --- /dev/null +++ b/wp-includes/blocks/avatar/style.min.css @@ -0,0 +1 @@ +.wp-block-avatar{line-height:0}.wp-block-avatar,.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}
\ No newline at end of file |