first commit

This commit is contained in:
Rachit Bhargava
2023-07-21 17:12:10 -04:00
parent d0fe47dde4
commit 5d0f0734d8
14003 changed files with 2829464 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "core/query",
"title": "Query Loop",
"category": "theme",
"description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
"textdomain": "default",
"attributes": {
"queryId": {
"type": "number"
},
"query": {
"type": "object",
"default": {
"perPage": null,
"pages": 0,
"offset": 0,
"postType": "post",
"order": "desc",
"orderBy": "date",
"author": "",
"search": "",
"exclude": [],
"sticky": "",
"inherit": true,
"taxQuery": null,
"parents": []
}
},
"tagName": {
"type": "string",
"default": "div"
},
"displayLayout": {
"type": "object",
"default": {
"type": "list"
}
},
"namespace": {
"type": "string"
}
},
"providesContext": {
"queryId": "queryId",
"query": "query",
"displayLayout": "displayLayout"
},
"supports": {
"align": [ "wide", "full" ],
"html": false,
"__experimentalLayout": true
},
"editorStyle": "wp-block-query-editor"
}

View File

@@ -0,0 +1,51 @@
.block-library-query-toolbar__popover .components-popover__content{
min-width:230px;
}
.wp-block-query__create-new-link{
padding:0 52px 16px 16px;
}
.block-library-query__pattern-selection-content .block-editor-block-patterns-list{
grid-gap:8px;
display:grid;
grid-template-columns:1fr 1fr 1fr;
}
.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
margin-bottom:0;
}
.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{
max-height:250px;
}
@media (min-width:600px){
.block-library-query-pattern__selection-modal .components-modal__frame{
height:calc(100% - 120px);
width:calc(100% - 32px);
}
}
@media (min-width:782px){
.block-library-query-pattern__selection-modal .components-modal__frame{
width:750px;
}
}
@media (min-width:960px){
.block-library-query-pattern__selection-modal .components-modal__frame{
height:70%;
}
}
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
background:#fff;
margin-bottom:2px;
padding:16px 0;
position:sticky;
top:0;
z-index:2;
}
.block-library-query-toolspanel__filters .components-form-token-field__help{
margin-bottom:0;
}
.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){
margin-bottom:24px;
}

View File

@@ -0,0 +1 @@
.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 52px 16px 16px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr 1fr}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}@media (min-width:600px){.block-library-query-pattern__selection-modal .components-modal__frame{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.block-library-query-pattern__selection-modal .components-modal__frame{width:750px}}@media (min-width:960px){.block-library-query-pattern__selection-modal .components-modal__frame{height:70%}}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}

View File

@@ -0,0 +1,51 @@
.block-library-query-toolbar__popover .components-popover__content{
min-width:230px;
}
.wp-block-query__create-new-link{
padding:0 16px 16px 52px;
}
.block-library-query__pattern-selection-content .block-editor-block-patterns-list{
grid-gap:8px;
display:grid;
grid-template-columns:1fr 1fr 1fr;
}
.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
margin-bottom:0;
}
.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{
max-height:250px;
}
@media (min-width:600px){
.block-library-query-pattern__selection-modal .components-modal__frame{
height:calc(100% - 120px);
width:calc(100% - 32px);
}
}
@media (min-width:782px){
.block-library-query-pattern__selection-modal .components-modal__frame{
width:750px;
}
}
@media (min-width:960px){
.block-library-query-pattern__selection-modal .components-modal__frame{
height:70%;
}
}
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
background:#fff;
margin-bottom:2px;
padding:16px 0;
position:sticky;
top:0;
z-index:2;
}
.block-library-query-toolspanel__filters .components-form-token-field__help{
margin-bottom:0;
}
.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){
margin-bottom:24px;
}

View File

@@ -0,0 +1 @@
.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr 1fr}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}@media (min-width:600px){.block-library-query-pattern__selection-modal .components-modal__frame{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.block-library-query-pattern__selection-modal .components-modal__frame{width:750px}}@media (min-width:960px){.block-library-query-pattern__selection-modal .components-modal__frame{height:70%}}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}