first commit
This commit is contained in:
33
wp-includes/blocks/more/block.json
Normal file
33
wp-includes/blocks/more/block.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/more",
|
||||
"title": "More",
|
||||
"category": "design",
|
||||
"description": "Content before this block will be shown in the excerpt on your archives page.",
|
||||
"keywords": [ "read more" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"customText": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"role": "content"
|
||||
},
|
||||
"noTeaser": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"customClassName": false,
|
||||
"className": false,
|
||||
"html": false,
|
||||
"multiple": false,
|
||||
"visibility": false,
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
},
|
||||
"customCSS": false
|
||||
},
|
||||
"editorStyle": "wp-block-more-editor"
|
||||
}
|
||||
78
wp-includes/blocks/more/editor-rtl.css
Normal file
78
wp-includes/blocks/more/editor-rtl.css
Normal file
@@ -0,0 +1,78 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
.block-editor-block-list__block[data-type="core/more"] {
|
||||
max-width: 100%;
|
||||
text-align: center;
|
||||
margin-top: 28px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.wp-block-more {
|
||||
display: block;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.wp-block-more .rich-text {
|
||||
position: relative;
|
||||
font-size: 13px;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
color: #757575;
|
||||
display: inline-flex;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
padding: 10px 36px;
|
||||
}
|
||||
.wp-block-more::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
left: 0;
|
||||
border-top: 3px dashed #ccc;
|
||||
}
|
||||
1
wp-includes/blocks/more/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/more/editor-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.block-editor-block-list__block[data-type="core/more"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more .rich-text{background:#fff;color:#757575;display:inline-flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;padding:10px 36px;position:relative;text-align:center;text-transform:uppercase;white-space:nowrap}.wp-block-more:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}
|
||||
78
wp-includes/blocks/more/editor.css
Normal file
78
wp-includes/blocks/more/editor.css
Normal file
@@ -0,0 +1,78 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
.block-editor-block-list__block[data-type="core/more"] {
|
||||
max-width: 100%;
|
||||
text-align: center;
|
||||
margin-top: 28px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.wp-block-more {
|
||||
display: block;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.wp-block-more .rich-text {
|
||||
position: relative;
|
||||
font-size: 13px;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
color: #757575;
|
||||
display: inline-flex;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
padding: 10px 36px;
|
||||
}
|
||||
.wp-block-more::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
border-top: 3px dashed #ccc;
|
||||
}
|
||||
1
wp-includes/blocks/more/editor.min.css
vendored
Normal file
1
wp-includes/blocks/more/editor.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.block-editor-block-list__block[data-type="core/more"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more .rich-text{background:#fff;color:#757575;display:inline-flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;padding:10px 36px;position:relative;text-align:center;text-transform:uppercase;white-space:nowrap}.wp-block-more:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}
|
||||
Reference in New Issue
Block a user