diff options
Diffstat (limited to '')
-rw-r--r-- | wp-includes/blocks/html/block.json | 22 | ||||
-rw-r--r-- | wp-includes/blocks/html/editor-rtl.css | 29 | ||||
-rw-r--r-- | wp-includes/blocks/html/editor-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/html/editor.css | 29 | ||||
-rw-r--r-- | wp-includes/blocks/html/editor.min.css | 1 |
5 files changed, 82 insertions, 0 deletions
diff --git a/wp-includes/blocks/html/block.json b/wp-includes/blocks/html/block.json new file mode 100644 index 0000000..b1a2ad6 --- /dev/null +++ b/wp-includes/blocks/html/block.json @@ -0,0 +1,22 @@ +{ + "$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 + }, + "editorStyle": "wp-block-html-editor" +} diff --git a/wp-includes/blocks/html/editor-rtl.css b/wp-includes/blocks/html/editor-rtl.css new file mode 100644 index 0000000..6419368 --- /dev/null +++ b/wp-includes/blocks/html/editor-rtl.css @@ -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 transparent !important; +}
\ No newline at end of file diff --git a/wp-includes/blocks/html/editor-rtl.min.css b/wp-includes/blocks/html/editor-rtl.min.css new file mode 100644 index 0000000..aad3497 --- /dev/null +++ b/wp-includes/blocks/html/editor-rtl.min.css @@ -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 transparent!important}
\ No newline at end of file diff --git a/wp-includes/blocks/html/editor.css b/wp-includes/blocks/html/editor.css new file mode 100644 index 0000000..28fcf6f --- /dev/null +++ b/wp-includes/blocks/html/editor.css @@ -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 transparent !important; +}
\ No newline at end of file diff --git a/wp-includes/blocks/html/editor.min.css b/wp-includes/blocks/html/editor.min.css new file mode 100644 index 0000000..068a199 --- /dev/null +++ b/wp-includes/blocks/html/editor.min.css @@ -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 transparent!important}
\ No newline at end of file |