first commit
This commit is contained in:
21
wp-includes/blocks/shortcode/block.json
Normal file
21
wp-includes/blocks/shortcode/block.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/shortcode",
|
||||
"title": "Shortcode",
|
||||
"category": "widgets",
|
||||
"description": "Insert additional custom elements with a WordPress shortcode.",
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"text": {
|
||||
"type": "string",
|
||||
"source": "raw"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"className": false,
|
||||
"customClassName": false,
|
||||
"html": false
|
||||
},
|
||||
"editorStyle": "wp-block-shortcode-editor"
|
||||
}
|
27
wp-includes/blocks/shortcode/editor-rtl.css
Normal file
27
wp-includes/blocks/shortcode/editor-rtl.css
Normal file
@ -0,0 +1,27 @@
|
||||
[data-type="core/shortcode"].components-placeholder{
|
||||
min-height:0;
|
||||
}
|
||||
|
||||
.blocks-shortcode__textarea{
|
||||
background:#fff !important;
|
||||
border:1px solid #1e1e1e !important;
|
||||
border-radius:2px !important;
|
||||
box-shadow:none !important;
|
||||
box-sizing:border-box;
|
||||
color:#1e1e1e !important;
|
||||
font-family:Menlo,Consolas,monaco,monospace !important;
|
||||
font-size:16px !important;
|
||||
max-height:250px;
|
||||
padding:12px !important;
|
||||
resize:none;
|
||||
}
|
||||
@media (min-width:600px){
|
||||
.blocks-shortcode__textarea{
|
||||
font-size:13px !important;
|
||||
}
|
||||
}
|
||||
.blocks-shortcode__textarea:focus{
|
||||
border-color:var(--wp-admin-theme-color) !important;
|
||||
box-shadow:0 0 0 1px var(--wp-admin-theme-color) !important;
|
||||
outline:2px solid #0000 !important;
|
||||
}
|
1
wp-includes/blocks/shortcode/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/shortcode/editor-rtl.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
[data-type="core/shortcode"].components-placeholder{min-height:0}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important}
|
27
wp-includes/blocks/shortcode/editor.css
Normal file
27
wp-includes/blocks/shortcode/editor.css
Normal file
@ -0,0 +1,27 @@
|
||||
[data-type="core/shortcode"].components-placeholder{
|
||||
min-height:0;
|
||||
}
|
||||
|
||||
.blocks-shortcode__textarea{
|
||||
background:#fff !important;
|
||||
border:1px solid #1e1e1e !important;
|
||||
border-radius:2px !important;
|
||||
box-shadow:none !important;
|
||||
box-sizing:border-box;
|
||||
color:#1e1e1e !important;
|
||||
font-family:Menlo,Consolas,monaco,monospace !important;
|
||||
font-size:16px !important;
|
||||
max-height:250px;
|
||||
padding:12px !important;
|
||||
resize:none;
|
||||
}
|
||||
@media (min-width:600px){
|
||||
.blocks-shortcode__textarea{
|
||||
font-size:13px !important;
|
||||
}
|
||||
}
|
||||
.blocks-shortcode__textarea:focus{
|
||||
border-color:var(--wp-admin-theme-color) !important;
|
||||
box-shadow:0 0 0 1px var(--wp-admin-theme-color) !important;
|
||||
outline:2px solid #0000 !important;
|
||||
}
|
1
wp-includes/blocks/shortcode/editor.min.css
vendored
Normal file
1
wp-includes/blocks/shortcode/editor.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
[data-type="core/shortcode"].components-placeholder{min-height:0}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid #0000!important}
|
Reference in New Issue
Block a user