first commit
This commit is contained in:
62
wp-includes/blocks/term-template/block.json
Normal file
62
wp-includes/blocks/term-template/block.json
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/term-template",
|
||||
"title": "Term Template",
|
||||
"category": "theme",
|
||||
"ancestor": [ "core/terms-query" ],
|
||||
"description": "Contains the block elements used to render a taxonomy term, like the name, description, and more.",
|
||||
"textdomain": "default",
|
||||
"usesContext": [ "termQuery" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"align": [ "wide", "full" ],
|
||||
"layout": true,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"background": true,
|
||||
"text": true
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": true,
|
||||
"lineHeight": true,
|
||||
"__experimentalFontFamily": true,
|
||||
"__experimentalFontWeight": true,
|
||||
"__experimentalFontStyle": true,
|
||||
"__experimentalTextTransform": true,
|
||||
"__experimentalTextDecoration": true,
|
||||
"__experimentalLetterSpacing": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"fontSize": true
|
||||
}
|
||||
},
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
"padding": true,
|
||||
"blockGap": {
|
||||
"__experimentalDefault": "1.25em"
|
||||
},
|
||||
"__experimentalDefaultControls": {
|
||||
"blockGap": true,
|
||||
"padding": false,
|
||||
"margin": false
|
||||
}
|
||||
},
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
},
|
||||
"__experimentalBorder": {
|
||||
"radius": true,
|
||||
"color": true,
|
||||
"width": true,
|
||||
"style": true
|
||||
}
|
||||
},
|
||||
"style": "wp-block-term-template",
|
||||
"editorStyle": "wp-block-term-template-editor"
|
||||
}
|
||||
27
wp-includes/blocks/term-template/editor-rtl.css
Normal file
27
wp-includes/blocks/term-template/editor-rtl.css
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
.wp-block-term-template .term-loading .term-loading-placeholder {
|
||||
width: 100%;
|
||||
height: 1.5em;
|
||||
margin-bottom: 0.25em;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 2px;
|
||||
}
|
||||
@media not (prefers-reduced-motion) {
|
||||
.wp-block-term-template .term-loading .term-loading-placeholder {
|
||||
animation: loadingpulse 1.5s ease-in-out infinite;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loadingpulse {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
1
wp-includes/blocks/term-template/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/term-template/editor-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-term-template .term-loading .term-loading-placeholder{background-color:#f0f0f0;border-radius:2px;height:1.5em;margin-bottom:.25em;width:100%}@media not (prefers-reduced-motion){.wp-block-term-template .term-loading .term-loading-placeholder{animation:loadingpulse 1.5s ease-in-out infinite}}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}
|
||||
27
wp-includes/blocks/term-template/editor.css
Normal file
27
wp-includes/blocks/term-template/editor.css
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
.wp-block-term-template .term-loading .term-loading-placeholder {
|
||||
width: 100%;
|
||||
height: 1.5em;
|
||||
margin-bottom: 0.25em;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 2px;
|
||||
}
|
||||
@media not (prefers-reduced-motion) {
|
||||
.wp-block-term-template .term-loading .term-loading-placeholder {
|
||||
animation: loadingpulse 1.5s ease-in-out infinite;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loadingpulse {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
1
wp-includes/blocks/term-template/editor.min.css
vendored
Normal file
1
wp-includes/blocks/term-template/editor.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-term-template .term-loading .term-loading-placeholder{background-color:#f0f0f0;border-radius:2px;height:1.5em;margin-bottom:.25em;width:100%}@media not (prefers-reduced-motion){.wp-block-term-template .term-loading .term-loading-placeholder{animation:loadingpulse 1.5s ease-in-out infinite}}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}
|
||||
8
wp-includes/blocks/term-template/style-rtl.css
Normal file
8
wp-includes/blocks/term-template/style-rtl.css
Normal file
@@ -0,0 +1,8 @@
|
||||
.wp-block-term-template {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
max-width: 100%;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
1
wp-includes/blocks/term-template/style-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/term-template/style-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-term-template{box-sizing:border-box;list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}
|
||||
8
wp-includes/blocks/term-template/style.css
Normal file
8
wp-includes/blocks/term-template/style.css
Normal file
@@ -0,0 +1,8 @@
|
||||
.wp-block-term-template {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
max-width: 100%;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
1
wp-includes/blocks/term-template/style.min.css
vendored
Normal file
1
wp-includes/blocks/term-template/style.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-term-template{box-sizing:border-box;list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}
|
||||
Reference in New Issue
Block a user