first commit
This commit is contained in:
115
wp/wp-includes/blocks/image/block.json
Normal file
115
wp/wp-includes/blocks/image/block.json
Normal file
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "core/image",
|
||||
"title": "Image",
|
||||
"category": "media",
|
||||
"usesContext": [ "allowResize", "imageCrop", "fixedHeight" ],
|
||||
"description": "Insert an image to make a visual statement.",
|
||||
"keywords": [ "img", "photo", "picture" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"align": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "img",
|
||||
"attribute": "src",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "img",
|
||||
"attribute": "alt",
|
||||
"default": "",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"caption": {
|
||||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": "figcaption",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "img",
|
||||
"attribute": "title",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"href": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "figure > a",
|
||||
"attribute": "href",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"rel": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "figure > a",
|
||||
"attribute": "rel"
|
||||
},
|
||||
"linkClass": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "figure > a",
|
||||
"attribute": "class"
|
||||
},
|
||||
"id": {
|
||||
"type": "number",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"width": {
|
||||
"type": "number"
|
||||
},
|
||||
"height": {
|
||||
"type": "number"
|
||||
},
|
||||
"sizeSlug": {
|
||||
"type": "string"
|
||||
},
|
||||
"linkDestination": {
|
||||
"type": "string"
|
||||
},
|
||||
"linkTarget": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "figure > a",
|
||||
"attribute": "target"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"color": {
|
||||
"__experimentalDuotone": "img, .components-placeholder",
|
||||
"text": false,
|
||||
"background": false
|
||||
},
|
||||
"__experimentalBorder": {
|
||||
"color": true,
|
||||
"radius": true,
|
||||
"width": true,
|
||||
"__experimentalSelector": "img, .wp-block-image__crop-area",
|
||||
"__experimentalSkipSerialization": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"color": true,
|
||||
"radius": true,
|
||||
"width": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"styles": [
|
||||
{
|
||||
"name": "default",
|
||||
"label": "Default",
|
||||
"isDefault": true
|
||||
},
|
||||
{ "name": "rounded", "label": "Rounded" }
|
||||
],
|
||||
"editorStyle": "wp-block-image-editor",
|
||||
"style": "wp-block-image"
|
||||
}
|
||||
126
wp/wp-includes/blocks/image/editor-rtl.css
Normal file
126
wp/wp-includes/blocks/image/editor-rtl.css
Normal file
@@ -0,0 +1,126 @@
|
||||
.wp-block-image.wp-block-image.is-selected .components-placeholder{
|
||||
background-color:#fff;
|
||||
border:none;
|
||||
border-radius:2px;
|
||||
box-shadow:inset 0 0 0 1px #1e1e1e;
|
||||
color:#1e1e1e;
|
||||
filter:none;
|
||||
}
|
||||
.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{
|
||||
opacity:0;
|
||||
}
|
||||
.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{
|
||||
display:none;
|
||||
}
|
||||
.wp-block-image.wp-block-image.is-selected .components-placeholder:before{
|
||||
opacity:0;
|
||||
}
|
||||
.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{
|
||||
transition:none;
|
||||
}
|
||||
|
||||
figure.wp-block-image:not(.wp-block){
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.wp-block-image{
|
||||
position:relative;
|
||||
}
|
||||
.wp-block-image .is-applying img,.wp-block-image.is-transient img{
|
||||
opacity:.3;
|
||||
}
|
||||
.wp-block-image figcaption img{
|
||||
display:inline;
|
||||
}
|
||||
.wp-block-image .components-spinner{
|
||||
position:absolute;
|
||||
right:50%;
|
||||
top:50%;
|
||||
transform:translate(50%, -50%);
|
||||
}
|
||||
|
||||
.wp-block-image .components-resizable-box__container{
|
||||
display:table;
|
||||
}
|
||||
.wp-block-image .components-resizable-box__container img{
|
||||
display:block;
|
||||
height:inherit;
|
||||
width:inherit;
|
||||
}
|
||||
|
||||
.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{
|
||||
left:0;
|
||||
margin:-1px 0;
|
||||
position:absolute;
|
||||
right:0;
|
||||
}
|
||||
@media (min-width:600px){
|
||||
.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{
|
||||
margin:-1px;
|
||||
}
|
||||
}
|
||||
|
||||
[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{
|
||||
height:auto;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{
|
||||
display:table;
|
||||
}
|
||||
.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{
|
||||
caption-side:bottom;
|
||||
display:table-caption;
|
||||
}
|
||||
|
||||
.wp-block[data-align=left]>.wp-block-image{
|
||||
margin:.5em 0 .5em 1em;
|
||||
}
|
||||
|
||||
.wp-block[data-align=right]>.wp-block-image{
|
||||
margin:.5em 1em .5em 0;
|
||||
}
|
||||
|
||||
.wp-block[data-align=center]>.wp-block-image{
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.wp-block-image__crop-area{
|
||||
max-width:100%;
|
||||
overflow:hidden;
|
||||
position:relative;
|
||||
width:100%;
|
||||
}
|
||||
.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{
|
||||
border:none;
|
||||
}
|
||||
|
||||
.wp-block-image__crop-icon{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
justify-content:center;
|
||||
min-width:48px;
|
||||
padding:0 8px;
|
||||
}
|
||||
.wp-block-image__crop-icon svg{
|
||||
fill:currentColor;
|
||||
}
|
||||
|
||||
.wp-block-image__zoom .components-popover__content{
|
||||
min-width:260px;
|
||||
overflow:visible !important;
|
||||
}
|
||||
|
||||
.wp-block-image__aspect-ratio{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
height:46px;
|
||||
margin-bottom:-8px;
|
||||
}
|
||||
.wp-block-image__aspect-ratio .components-button{
|
||||
padding-left:0;
|
||||
padding-right:0;
|
||||
width:36px;
|
||||
}
|
||||
1
wp/wp-includes/blocks/image/editor-rtl.min.css
vendored
Normal file
1
wp/wp-includes/blocks/image/editor-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right:0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__aspect-ratio{align-items:center;display:flex;height:46px;margin-bottom:-8px}.wp-block-image__aspect-ratio .components-button{padding-left:0;padding-right:0;width:36px}
|
||||
126
wp/wp-includes/blocks/image/editor.css
Normal file
126
wp/wp-includes/blocks/image/editor.css
Normal file
@@ -0,0 +1,126 @@
|
||||
.wp-block-image.wp-block-image.is-selected .components-placeholder{
|
||||
background-color:#fff;
|
||||
border:none;
|
||||
border-radius:2px;
|
||||
box-shadow:inset 0 0 0 1px #1e1e1e;
|
||||
color:#1e1e1e;
|
||||
filter:none;
|
||||
}
|
||||
.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{
|
||||
opacity:0;
|
||||
}
|
||||
.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{
|
||||
display:none;
|
||||
}
|
||||
.wp-block-image.wp-block-image.is-selected .components-placeholder:before{
|
||||
opacity:0;
|
||||
}
|
||||
.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{
|
||||
transition:none;
|
||||
}
|
||||
|
||||
figure.wp-block-image:not(.wp-block){
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.wp-block-image{
|
||||
position:relative;
|
||||
}
|
||||
.wp-block-image .is-applying img,.wp-block-image.is-transient img{
|
||||
opacity:.3;
|
||||
}
|
||||
.wp-block-image figcaption img{
|
||||
display:inline;
|
||||
}
|
||||
.wp-block-image .components-spinner{
|
||||
left:50%;
|
||||
position:absolute;
|
||||
top:50%;
|
||||
transform:translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.wp-block-image .components-resizable-box__container{
|
||||
display:table;
|
||||
}
|
||||
.wp-block-image .components-resizable-box__container img{
|
||||
display:block;
|
||||
height:inherit;
|
||||
width:inherit;
|
||||
}
|
||||
|
||||
.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{
|
||||
left:0;
|
||||
margin:-1px 0;
|
||||
position:absolute;
|
||||
right:0;
|
||||
}
|
||||
@media (min-width:600px){
|
||||
.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{
|
||||
margin:-1px;
|
||||
}
|
||||
}
|
||||
|
||||
[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{
|
||||
height:auto;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{
|
||||
display:table;
|
||||
}
|
||||
.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{
|
||||
caption-side:bottom;
|
||||
display:table-caption;
|
||||
}
|
||||
|
||||
.wp-block[data-align=left]>.wp-block-image{
|
||||
margin:.5em 1em .5em 0;
|
||||
}
|
||||
|
||||
.wp-block[data-align=right]>.wp-block-image{
|
||||
margin:.5em 0 .5em 1em;
|
||||
}
|
||||
|
||||
.wp-block[data-align=center]>.wp-block-image{
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.wp-block-image__crop-area{
|
||||
max-width:100%;
|
||||
overflow:hidden;
|
||||
position:relative;
|
||||
width:100%;
|
||||
}
|
||||
.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{
|
||||
border:none;
|
||||
}
|
||||
|
||||
.wp-block-image__crop-icon{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
justify-content:center;
|
||||
min-width:48px;
|
||||
padding:0 8px;
|
||||
}
|
||||
.wp-block-image__crop-icon svg{
|
||||
fill:currentColor;
|
||||
}
|
||||
|
||||
.wp-block-image__zoom .components-popover__content{
|
||||
min-width:260px;
|
||||
overflow:visible !important;
|
||||
}
|
||||
|
||||
.wp-block-image__aspect-ratio{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
height:46px;
|
||||
margin-bottom:-8px;
|
||||
}
|
||||
.wp-block-image__aspect-ratio .components-button{
|
||||
padding-left:0;
|
||||
padding-right:0;
|
||||
width:36px;
|
||||
}
|
||||
1
wp/wp-includes/blocks/image/editor.min.css
vendored
Normal file
1
wp/wp-includes/blocks/image/editor.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right:0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__aspect-ratio{align-items:center;display:flex;height:46px;margin-bottom:-8px}.wp-block-image__aspect-ratio .components-button{padding-left:0;padding-right:0;width:36px}
|
||||
93
wp/wp-includes/blocks/image/style-rtl.css
Normal file
93
wp/wp-includes/blocks/image/style-rtl.css
Normal file
@@ -0,0 +1,93 @@
|
||||
.wp-block-image img{
|
||||
height:auto;
|
||||
max-width:100%;
|
||||
vertical-align:bottom;
|
||||
}
|
||||
.wp-block-image img,.wp-block-image.has-custom-border img{
|
||||
box-sizing:border-box;
|
||||
}
|
||||
.wp-block-image.aligncenter{
|
||||
text-align:center;
|
||||
}
|
||||
.wp-block-image.alignfull img,.wp-block-image.alignwide img{
|
||||
height:auto;
|
||||
width:100%;
|
||||
}
|
||||
.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{
|
||||
display:table;
|
||||
}
|
||||
.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{
|
||||
caption-side:bottom;
|
||||
display:table-caption;
|
||||
}
|
||||
.wp-block-image .alignleft{
|
||||
float:left;
|
||||
margin-bottom:.5em;
|
||||
margin-left:1em;
|
||||
margin-top:.5em;
|
||||
}
|
||||
.wp-block-image .alignright{
|
||||
float:right;
|
||||
margin-bottom:.5em;
|
||||
margin-right:1em;
|
||||
margin-top:.5em;
|
||||
}
|
||||
.wp-block-image .aligncenter{
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
}
|
||||
.wp-block-image figcaption{
|
||||
margin-bottom:1em;
|
||||
margin-top:.5em;
|
||||
}
|
||||
.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{
|
||||
border-radius:9999px;
|
||||
}
|
||||
@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){
|
||||
.wp-block-image.is-style-circle-mask img{
|
||||
border-radius:0;
|
||||
-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
|
||||
mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
|
||||
mask-mode:alpha;
|
||||
-webkit-mask-position:center;
|
||||
mask-position:center;
|
||||
-webkit-mask-repeat:no-repeat;
|
||||
mask-repeat:no-repeat;
|
||||
-webkit-mask-size:contain;
|
||||
mask-size:contain;
|
||||
}
|
||||
}
|
||||
.wp-block-image :where(.has-border-color){
|
||||
border-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-top-color]){
|
||||
border-top-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-right-color]){
|
||||
border-left-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-bottom-color]){
|
||||
border-bottom-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-left-color]){
|
||||
border-right-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-width]){
|
||||
border-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-top-width]){
|
||||
border-top-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-right-width]){
|
||||
border-left-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-bottom-width]){
|
||||
border-bottom-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-left-width]){
|
||||
border-right-style:solid;
|
||||
}
|
||||
|
||||
.wp-block-image figure{
|
||||
margin:0;
|
||||
}
|
||||
1
wp/wp-includes/blocks/image/style-rtl.min.css
vendored
Normal file
1
wp/wp-includes/blocks/image/style-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-image img{height:auto;max-width:100%;vertical-align:bottom}.wp-block-image img,.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.wp-block-image .alignleft{float:left;margin-bottom:.5em;margin-left:1em;margin-top:.5em}.wp-block-image .alignright{float:right;margin-bottom:.5em;margin-right:1em;margin-top:.5em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-left-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-right-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-left-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-right-style:solid}.wp-block-image figure{margin:0}
|
||||
89
wp/wp-includes/blocks/image/style.css
Normal file
89
wp/wp-includes/blocks/image/style.css
Normal file
@@ -0,0 +1,89 @@
|
||||
.wp-block-image img{
|
||||
height:auto;
|
||||
max-width:100%;
|
||||
vertical-align:bottom;
|
||||
}
|
||||
.wp-block-image img,.wp-block-image.has-custom-border img{
|
||||
box-sizing:border-box;
|
||||
}
|
||||
.wp-block-image.aligncenter{
|
||||
text-align:center;
|
||||
}
|
||||
.wp-block-image.alignfull img,.wp-block-image.alignwide img{
|
||||
height:auto;
|
||||
width:100%;
|
||||
}
|
||||
.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{
|
||||
display:table;
|
||||
}
|
||||
.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{
|
||||
caption-side:bottom;
|
||||
display:table-caption;
|
||||
}
|
||||
.wp-block-image .alignleft{
|
||||
float:left;
|
||||
margin:.5em 1em .5em 0;
|
||||
}
|
||||
.wp-block-image .alignright{
|
||||
float:right;
|
||||
margin:.5em 0 .5em 1em;
|
||||
}
|
||||
.wp-block-image .aligncenter{
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
}
|
||||
.wp-block-image figcaption{
|
||||
margin-bottom:1em;
|
||||
margin-top:.5em;
|
||||
}
|
||||
.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{
|
||||
border-radius:9999px;
|
||||
}
|
||||
@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){
|
||||
.wp-block-image.is-style-circle-mask img{
|
||||
border-radius:0;
|
||||
-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
|
||||
mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
|
||||
mask-mode:alpha;
|
||||
-webkit-mask-position:center;
|
||||
mask-position:center;
|
||||
-webkit-mask-repeat:no-repeat;
|
||||
mask-repeat:no-repeat;
|
||||
-webkit-mask-size:contain;
|
||||
mask-size:contain;
|
||||
}
|
||||
}
|
||||
.wp-block-image :where(.has-border-color){
|
||||
border-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-top-color]){
|
||||
border-top-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-right-color]){
|
||||
border-right-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-bottom-color]){
|
||||
border-bottom-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-left-color]){
|
||||
border-left-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-width]){
|
||||
border-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-top-width]){
|
||||
border-top-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-right-width]){
|
||||
border-right-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-bottom-width]){
|
||||
border-bottom-style:solid;
|
||||
}
|
||||
.wp-block-image :where([style*=border-left-width]){
|
||||
border-left-style:solid;
|
||||
}
|
||||
|
||||
.wp-block-image figure{
|
||||
margin:0;
|
||||
}
|
||||
1
wp/wp-includes/blocks/image/style.min.css
vendored
Normal file
1
wp/wp-includes/blocks/image/style.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-image img{height:auto;max-width:100%;vertical-align:bottom}.wp-block-image img,.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-left-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-left-style:solid}.wp-block-image figure{margin:0}
|
||||
12
wp/wp-includes/blocks/image/theme-rtl.css
Normal file
12
wp/wp-includes/blocks/image/theme-rtl.css
Normal file
@@ -0,0 +1,12 @@
|
||||
.wp-block-image figcaption{
|
||||
color:#555;
|
||||
font-size:13px;
|
||||
text-align:center;
|
||||
}
|
||||
.is-dark-theme .wp-block-image figcaption{
|
||||
color:hsla(0,0%,100%,.65);
|
||||
}
|
||||
|
||||
.wp-block-image{
|
||||
margin:0 0 1em;
|
||||
}
|
||||
1
wp/wp-includes/blocks/image/theme-rtl.min.css
vendored
Normal file
1
wp/wp-includes/blocks/image/theme-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-image figcaption{color:hsla(0,0%,100%,.65)}.wp-block-image{margin:0 0 1em}
|
||||
12
wp/wp-includes/blocks/image/theme.css
Normal file
12
wp/wp-includes/blocks/image/theme.css
Normal file
@@ -0,0 +1,12 @@
|
||||
.wp-block-image figcaption{
|
||||
color:#555;
|
||||
font-size:13px;
|
||||
text-align:center;
|
||||
}
|
||||
.is-dark-theme .wp-block-image figcaption{
|
||||
color:hsla(0,0%,100%,.65);
|
||||
}
|
||||
|
||||
.wp-block-image{
|
||||
margin:0 0 1em;
|
||||
}
|
||||
1
wp/wp-includes/blocks/image/theme.min.css
vendored
Normal file
1
wp/wp-includes/blocks/image/theme.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-image figcaption{color:hsla(0,0%,100%,.65)}.wp-block-image{margin:0 0 1em}
|
||||
Reference in New Issue
Block a user