initial
This commit is contained in:
commit
9883323161
17470 files changed
+4470592
No files matched your search
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "jetpack/tiled-gallery",
|
||||
"title": "Tiled Gallery",
|
||||
"description": "Display multiple images in an elegantly organized tiled layout.",
|
||||
"keywords": [
|
||||
"columns",
|
||||
"images",
|
||||
"photos",
|
||||
"pictures",
|
||||
"square",
|
||||
"circle",
|
||||
"mosaic"
|
||||
],
|
||||
"version": "12.5.0",
|
||||
"textdomain": "jetpack",
|
||||
"category": "media",
|
||||
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z'/></svg>",
|
||||
"supports": {
|
||||
"align": [
|
||||
"center",
|
||||
"wide",
|
||||
"full"
|
||||
],
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"text": false
|
||||
},
|
||||
"customClassName": false,
|
||||
"html": false,
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
"padding": true
|
||||
},
|
||||
"__experimentalHideChildBlockControls": true
|
||||
},
|
||||
"providesContext": {
|
||||
"imageCrop": "imageCrop"
|
||||
},
|
||||
"styles": [
|
||||
{
|
||||
"name": "rectangular",
|
||||
"label": "Tiled mosaic",
|
||||
"isDefault": true
|
||||
},
|
||||
{
|
||||
"name": "circle",
|
||||
"label": "Circles"
|
||||
},
|
||||
{
|
||||
"name": "square",
|
||||
"label": "Square tiles"
|
||||
},
|
||||
{
|
||||
"name": "columns",
|
||||
"label": "Tiled columns"
|
||||
}
|
||||
],
|
||||
"attributes": {
|
||||
"align": {
|
||||
"type": "string",
|
||||
"default": "center"
|
||||
},
|
||||
"className": {
|
||||
"type": "string",
|
||||
"default": "is-style-rectangular"
|
||||
},
|
||||
"columns": {
|
||||
"type": "number"
|
||||
},
|
||||
"columnWidths": {
|
||||
"type": "array",
|
||||
"default": []
|
||||
},
|
||||
"ids": {
|
||||
"type": "array",
|
||||
"default": []
|
||||
},
|
||||
"imageFilter": {
|
||||
"type": "string"
|
||||
},
|
||||
"images": {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"source": "query",
|
||||
"selector": ".tiled-gallery__item",
|
||||
"query": {
|
||||
"alt": {
|
||||
"attribute": "alt",
|
||||
"default": "",
|
||||
"selector": "img",
|
||||
"source": "attribute"
|
||||
},
|
||||
"height": {
|
||||
"attribute": "data-height",
|
||||
"type": "number",
|
||||
"selector": "img",
|
||||
"source": "attribute"
|
||||
},
|
||||
"id": {
|
||||
"attribute": "data-id",
|
||||
"selector": "img",
|
||||
"source": "attribute"
|
||||
},
|
||||
"link": {
|
||||
"attribute": "data-link",
|
||||
"selector": "img",
|
||||
"source": "attribute"
|
||||
},
|
||||
"customLink": {
|
||||
"attribute": "href",
|
||||
"selector": "a",
|
||||
"source": "attribute"
|
||||
},
|
||||
"url": {
|
||||
"attribute": "data-url",
|
||||
"selector": "img",
|
||||
"source": "attribute"
|
||||
},
|
||||
"width": {
|
||||
"attribute": "data-width",
|
||||
"selector": "img",
|
||||
"source": "attribute",
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"imageCrop": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"linkTo": {
|
||||
"default": "none",
|
||||
"type": "string"
|
||||
},
|
||||
"roundedCorners": {
|
||||
"type": "integer",
|
||||
"default": 0
|
||||
}
|
||||
},
|
||||
"editorScript": "jetpack-blocks-editor"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('wp-dom-ready', 'wp-polyfill'), 'version' => 'b2dcbd31b27d3d240fb7');
|
||||
@@ -0,0 +1 @@
|
||||
:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-circle) .tiled-gallery__item img{border-radius:50%}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row{flex-grow:1;width:100%}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-1 .tiled-gallery__col{width:100%}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-2 .tiled-gallery__col{width:calc(50% - 2px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-3 .tiled-gallery__col{width:calc(33.33333% - 2.66667px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-4 .tiled-gallery__col{width:calc(25% - 3px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-5 .tiled-gallery__col{width:calc(20% - 3.2px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-6 .tiled-gallery__col{width:calc(16.66667% - 3.33333px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-7 .tiled-gallery__col{width:calc(14.28571% - 3.42857px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-8 .tiled-gallery__col{width:calc(12.5% - 3.5px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-9 .tiled-gallery__col{width:calc(11.11111% - 3.55556px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-10 .tiled-gallery__col{width:calc(10% - 3.6px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-11 .tiled-gallery__col{width:calc(9.09091% - 3.63636px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-12 .tiled-gallery__col{width:calc(8.33333% - 3.66667px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-13 .tiled-gallery__col{width:calc(7.69231% - 3.69231px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-14 .tiled-gallery__col{width:calc(7.14286% - 3.71429px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-15 .tiled-gallery__col{width:calc(6.66667% - 3.73333px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-16 .tiled-gallery__col{width:calc(6.25% - 3.75px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
(()=>{var t={21354(){},94107(t,e,n){"use strict";n.d(e,{A:()=>A});var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],a="undefined"!=typeof MutationObserver,u=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&a()}function c(){s(o)}function a(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(c,e);i=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;c.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},d=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},f=m(0,0,0,0);function l(t){return parseFloat(t)||0}function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+l(t["border-"+n+"-width"])},0)}function _(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return f;var r=d(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=l(o)}return e}(r),o=i.left+i.right,s=i.top+i.bottom,c=l(r.width),a=l(r.height);if("border-box"===r.boxSizing&&(Math.round(c+o)!==e&&(c-=p(r,"left","right")+o),Math.round(a+s)!==n&&(a-=p(r,"top","bottom")+s)),!function(t){return t===d(t).document.documentElement}(t)){var u=Math.round(c+o)-e,h=Math.round(a+s)-n;1!==Math.abs(u)&&(c-=u),1!==Math.abs(h)&&(a-=h)}return m(i.left,i.top,c,a)}var v="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof d(t).SVGGraphicsElement}:function(t){return t instanceof d(t).SVGElement&&"function"==typeof t.getBBox};function b(t){return i?v(t)?function(t){var e=t.getBBox();return m(0,0,e.width,e.height)}(t):_(t):f}function m(t,e,n,r){return{x:t,y:e,width:n,height:r}}var y=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=t}return t.prototyLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-circle) .tiled-gallery__item img{border-radius:50%}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row{flex-grow:1;width:100%}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-1 .tiled-gallery__col{width:100%}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-2 .tiled-gallery__col{width:calc(50% - 2px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-3 .tiled-gallery__col{width:calc(33.33333% - 2.66667px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-4 .tiled-gallery__col{width:calc(25% - 3px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-5 .tiled-gallery__col{width:calc(20% - 3.2px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-6 .tiled-gallery__col{width:calc(16.66667% - 3.33333px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-7 .tiled-gallery__col{width:calc(14.28571% - 3.42857px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-8 .tiled-gallery__col{width:calc(12.5% - 3.5px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-9 .tiled-gallery__col{width:calc(11.11111% - 3.55556px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-10 .tiled-gallery__col{width:calc(10% - 3.6px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-11 .tiled-gallery__col{width:calc(9.09091% - 3.63636px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-12 .tiled-gallery__col{width:calc(8.33333% - 3.66667px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-13 .tiled-gallery__col{width:calc(7.69231% - 3.69231px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-14 .tiled-gallery__col{width:calc(7.14286% - 3.71429px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-15 .tiled-gallery__col{width:calc(6.66667% - 3.73333px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpack-tiled-gallery.is-style-square) .tiled-gallery__row.columns-16 .tiled-gallery__col{width:calc(6.25% - 3.75px)}:is(.wp-block-jetpack-tiled-gallery .is-style-circle,.wp-block-jetpack-tiled-gallery .is-style-square,.wp-block-jetpack-tiled-gallery.is-style-circle,.wp-block-jetpLine truncated
|
||||
Reference in new issue
Block a user