first commit

This commit is contained in:
Roman Pyrih
2026-05-21 15:33:11 +02:00
commit acb036dbd9
8059 changed files with 2885104 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{
"$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",
"role": "content"
}
},
"supports": {
"customClassName": false,
"className": false,
"html": false,
"interactivity": {
"clientNavigation": true
},
"customCSS": false,
"visibility": false
},
"editorStyle": "wp-block-html-editor"
}

View File

@@ -0,0 +1,158 @@
/**
* Typography
*/
/**
* SCSS Variables.
*
* Please use variables from this sheet to ensure consistency across the UI.
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
*/
/**
* Colors
*/
/**
* Fonts & basic variables.
*/
/**
* Typography
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Radius scale.
*/
/**
* Elevation scale.
*/
/**
* Dimensions.
*/
/**
* Mobile specific styles
*/
/**
* Editor styles.
*/
/**
* Block & Editor UI.
*/
/**
* Block paddings.
*/
/**
* React Native specific.
* These variables do not appear to be used anywhere else.
*/
/**
* Breakpoints & Media Queries
*/
/**
* Converts a hex value into the rgb equivalent.
*
* @param {string} hex - the hexadecimal value to convert
* @return {string} comma separated rgb values
*/
/**
* Long content fade mixin
*
* Creates a fading overlay to signify that the content is longer
* than the space allows.
*/
/**
* Breakpoint mixins
*/
/**
* Focus styles.
*/
/**
* Applies editor left position to the selector passed as argument
*/
/**
* Styles that are reused verbatim in a few places
*/
/**
* Allows users to opt-out of animations via OS-level preferences.
*/
/**
* Reset default styles for JavaScript UI based pages.
* This is a WP-admin agnostic reset
*/
/**
* Reset the WP Admin page styles for Gutenberg-like pages.
*/
/**
* Creates a checkerboard pattern background to indicate transparency.
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
*/
.block-library-html__edit .block-library-html__preview-overlay {
position: absolute;
width: 100%;
height: 100%;
top: 0;
right: 0;
}
@media (min-width: 600px) {
.block-library-html__modal:not(.is-full-screen) {
height: 9999rem;
}
}
.block-library-html__modal .components-modal__children-container {
height: 100%;
}
.block-library-html__modal-tabs {
flex: 1;
}
.block-library-html__modal-content {
flex: 1;
}
.block-library-html__modal-tab {
height: 100%;
display: flex;
flex-direction: column;
margin: 0;
box-sizing: border-box;
border: 1px solid #e0e0e0;
border-radius: 2px;
padding: 16px;
font-family: Menlo, Consolas, monaco, monospace;
}
.block-library-html__modal-editor {
width: 100%;
height: 100%;
flex: 1;
border: none;
background: transparent;
padding: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
color: inherit;
resize: none;
direction: ltr;
overflow-x: auto;
box-sizing: border-box;
}
.block-library-html__modal-editor:focus {
outline: none;
box-shadow: none;
}
.block-library-html__preview {
display: flex;
align-items: center;
justify-content: center;
min-height: 0;
overflow-y: auto;
flex: 1;
}
.block-library-html__preview iframe {
height: 100%;
}

View File

@@ -0,0 +1 @@
.block-library-html__edit .block-library-html__preview-overlay{height:100%;position:absolute;right:0;top:0;width:100%}@media (min-width:600px){.block-library-html__modal:not(.is-full-screen){height:9999rem}}.block-library-html__modal .components-modal__children-container{height:100%}.block-library-html__modal-content,.block-library-html__modal-tabs{flex:1}.block-library-html__modal-tab{border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;display:flex;flex-direction:column;font-family:Menlo,Consolas,monaco,monospace;height:100%;margin:0;padding:16px}.block-library-html__modal-editor{background:#0000;border:none;box-sizing:border-box;color:inherit;direction:ltr;flex:1;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;overflow-x:auto;padding:0;resize:none;width:100%}.block-library-html__modal-editor:focus{box-shadow:none;outline:none}.block-library-html__preview{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;overflow-y:auto}.block-library-html__preview iframe{height:100%}

View File

@@ -0,0 +1,159 @@
/**
* Typography
*/
/**
* SCSS Variables.
*
* Please use variables from this sheet to ensure consistency across the UI.
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
*/
/**
* Colors
*/
/**
* Fonts & basic variables.
*/
/**
* Typography
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Radius scale.
*/
/**
* Elevation scale.
*/
/**
* Dimensions.
*/
/**
* Mobile specific styles
*/
/**
* Editor styles.
*/
/**
* Block & Editor UI.
*/
/**
* Block paddings.
*/
/**
* React Native specific.
* These variables do not appear to be used anywhere else.
*/
/**
* Breakpoints & Media Queries
*/
/**
* Converts a hex value into the rgb equivalent.
*
* @param {string} hex - the hexadecimal value to convert
* @return {string} comma separated rgb values
*/
/**
* Long content fade mixin
*
* Creates a fading overlay to signify that the content is longer
* than the space allows.
*/
/**
* Breakpoint mixins
*/
/**
* Focus styles.
*/
/**
* Applies editor left position to the selector passed as argument
*/
/**
* Styles that are reused verbatim in a few places
*/
/**
* Allows users to opt-out of animations via OS-level preferences.
*/
/**
* Reset default styles for JavaScript UI based pages.
* This is a WP-admin agnostic reset
*/
/**
* Reset the WP Admin page styles for Gutenberg-like pages.
*/
/**
* Creates a checkerboard pattern background to indicate transparency.
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
*/
.block-library-html__edit .block-library-html__preview-overlay {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
@media (min-width: 600px) {
.block-library-html__modal:not(.is-full-screen) {
height: 9999rem;
}
}
.block-library-html__modal .components-modal__children-container {
height: 100%;
}
.block-library-html__modal-tabs {
flex: 1;
}
.block-library-html__modal-content {
flex: 1;
}
.block-library-html__modal-tab {
height: 100%;
display: flex;
flex-direction: column;
margin: 0;
box-sizing: border-box;
border: 1px solid #e0e0e0;
border-radius: 2px;
padding: 16px;
font-family: Menlo, Consolas, monaco, monospace;
}
.block-library-html__modal-editor {
width: 100%;
height: 100%;
flex: 1;
border: none;
background: transparent;
padding: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
color: inherit;
resize: none;
/*rtl:ignore*/
direction: ltr;
overflow-x: auto;
box-sizing: border-box;
}
.block-library-html__modal-editor:focus {
outline: none;
box-shadow: none;
}
.block-library-html__preview {
display: flex;
align-items: center;
justify-content: center;
min-height: 0;
overflow-y: auto;
flex: 1;
}
.block-library-html__preview iframe {
height: 100%;
}

View File

@@ -0,0 +1 @@
.block-library-html__edit .block-library-html__preview-overlay{height:100%;left:0;position:absolute;top:0;width:100%}@media (min-width:600px){.block-library-html__modal:not(.is-full-screen){height:9999rem}}.block-library-html__modal .components-modal__children-container{height:100%}.block-library-html__modal-content,.block-library-html__modal-tabs{flex:1}.block-library-html__modal-tab{border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;display:flex;flex-direction:column;font-family:Menlo,Consolas,monaco,monospace;height:100%;margin:0;padding:16px}.block-library-html__modal-editor{background:#0000;border:none;box-sizing:border-box;color:inherit;direction:ltr;flex:1;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;overflow-x:auto;padding:0;resize:none;width:100%}.block-library-html__modal-editor:focus{box-shadow:none;outline:none}.block-library-html__preview{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;overflow-y:auto}.block-library-html__preview iframe{height:100%}