first commit
This commit is contained in:
25
wp-includes/blocks/html/block.json
Normal file
25
wp-includes/blocks/html/block.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/html",
|
||||
"title": "Custom HTML",
|
||||
"category": "widgets",
|
||||
"description": "Add custom HTML code and preview it as you edit.",
|
||||
"keywords": [ "embed" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"content": {
|
||||
"type": "string",
|
||||
"source": "raw"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"customClassName": false,
|
||||
"className": false,
|
||||
"html": false,
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-html-editor"
|
||||
}
|
29
wp-includes/blocks/html/editor-rtl.css
Normal file
29
wp-includes/blocks/html/editor-rtl.css
Normal file
@ -0,0 +1,29 @@
|
||||
.block-library-html__edit .block-library-html__preview-overlay{
|
||||
height:100%;
|
||||
position:absolute;
|
||||
right:0;
|
||||
top:0;
|
||||
width:100%;
|
||||
}
|
||||
.block-library-html__edit .block-editor-plain-text{
|
||||
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;
|
||||
}
|
||||
@media (min-width:600px){
|
||||
.block-library-html__edit .block-editor-plain-text{
|
||||
font-size:13px !important;
|
||||
}
|
||||
}
|
||||
.block-library-html__edit .block-editor-plain-text: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/html/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/html/editor-rtl.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.block-library-html__edit .block-library-html__preview-overlay{height:100%;position:absolute;right:0;top:0;width:100%}.block-library-html__edit .block-editor-plain-text{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}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text: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}
|
29
wp-includes/blocks/html/editor.css
Normal file
29
wp-includes/blocks/html/editor.css
Normal file
@ -0,0 +1,29 @@
|
||||
.block-library-html__edit .block-library-html__preview-overlay{
|
||||
height:100%;
|
||||
left:0;
|
||||
position:absolute;
|
||||
top:0;
|
||||
width:100%;
|
||||
}
|
||||
.block-library-html__edit .block-editor-plain-text{
|
||||
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;
|
||||
}
|
||||
@media (min-width:600px){
|
||||
.block-library-html__edit .block-editor-plain-text{
|
||||
font-size:13px !important;
|
||||
}
|
||||
}
|
||||
.block-library-html__edit .block-editor-plain-text: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/html/editor.min.css
vendored
Normal file
1
wp-includes/blocks/html/editor.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.block-library-html__edit .block-library-html__preview-overlay{height:100%;left:0;position:absolute;top:0;width:100%}.block-library-html__edit .block-editor-plain-text{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}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text: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