first commit
This commit is contained in:
25
wp-includes/blocks/freeform/block.json
Normal file
25
wp-includes/blocks/freeform/block.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/freeform",
|
||||
"title": "Classic",
|
||||
"category": "text",
|
||||
"description": "Use the classic WordPress editor.",
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"content": {
|
||||
"type": "string",
|
||||
"source": "raw"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"className": false,
|
||||
"customClassName": false,
|
||||
"lock": false,
|
||||
"reusable": false,
|
||||
"renaming": false,
|
||||
"visibility": false,
|
||||
"customCSS": false
|
||||
},
|
||||
"editorStyle": "wp-block-freeform-editor"
|
||||
}
|
||||
121
wp-includes/blocks/freeform/editor-rtl.css
Normal file
121
wp-includes/blocks/freeform/editor-rtl.css
Normal file
@@ -0,0 +1,121 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* Typography
|
||||
*/
|
||||
/**
|
||||
* 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-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe {
|
||||
height: 50vh !important;
|
||||
}
|
||||
@media (min-width: 960px) {
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen) {
|
||||
height: 9999rem;
|
||||
}
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header + div {
|
||||
height: 100%;
|
||||
}
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce {
|
||||
height: calc(100% - 36px - 16px);
|
||||
}
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 50vw;
|
||||
}
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe {
|
||||
flex-grow: 1;
|
||||
height: 10px !important;
|
||||
}
|
||||
}
|
||||
.block-editor-freeform-modal__actions {
|
||||
margin-top: 16px;
|
||||
}
|
||||
1
wp-includes/blocks/freeform/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/freeform/editor-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width:960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{display:flex;flex-direction:column;height:100%;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{display:flex;flex-direction:column;flex-grow:1}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}
|
||||
121
wp-includes/blocks/freeform/editor.css
Normal file
121
wp-includes/blocks/freeform/editor.css
Normal file
@@ -0,0 +1,121 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* Typography
|
||||
*/
|
||||
/**
|
||||
* 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-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe {
|
||||
height: 50vh !important;
|
||||
}
|
||||
@media (min-width: 960px) {
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen) {
|
||||
height: 9999rem;
|
||||
}
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header + div {
|
||||
height: 100%;
|
||||
}
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce {
|
||||
height: calc(100% - 36px - 16px);
|
||||
}
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 50vw;
|
||||
}
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe {
|
||||
flex-grow: 1;
|
||||
height: 10px !important;
|
||||
}
|
||||
}
|
||||
.block-editor-freeform-modal__actions {
|
||||
margin-top: 16px;
|
||||
}
|
||||
1
wp-includes/blocks/freeform/editor.min.css
vendored
Normal file
1
wp-includes/blocks/freeform/editor.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width:960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{display:flex;flex-direction:column;height:100%;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{display:flex;flex-direction:column;flex-grow:1}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}
|
||||
Reference in New Issue
Block a user