first commit
This commit is contained in:
92
wp-includes/blocks/pullquote/block.json
Normal file
92
wp-includes/blocks/pullquote/block.json
Normal file
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/pullquote",
|
||||
"title": "Pullquote",
|
||||
"category": "text",
|
||||
"description": "Give special visual emphasis to a quote from your text.",
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"value": {
|
||||
"type": "rich-text",
|
||||
"source": "rich-text",
|
||||
"selector": "p",
|
||||
"role": "content"
|
||||
},
|
||||
"citation": {
|
||||
"type": "rich-text",
|
||||
"source": "rich-text",
|
||||
"selector": "cite",
|
||||
"role": "content"
|
||||
},
|
||||
"textAlign": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": [ "left", "right", "wide", "full" ],
|
||||
"background": {
|
||||
"backgroundImage": true,
|
||||
"backgroundSize": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"backgroundImage": true
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"background": true,
|
||||
"link": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"background": true,
|
||||
"text": true
|
||||
}
|
||||
},
|
||||
"dimensions": {
|
||||
"minHeight": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"minHeight": false
|
||||
}
|
||||
},
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
"padding": true
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": true,
|
||||
"lineHeight": true,
|
||||
"__experimentalFontFamily": true,
|
||||
"__experimentalFontWeight": true,
|
||||
"__experimentalFontStyle": true,
|
||||
"__experimentalTextTransform": true,
|
||||
"__experimentalTextDecoration": true,
|
||||
"__experimentalLetterSpacing": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"fontSize": true
|
||||
}
|
||||
},
|
||||
"__experimentalBorder": {
|
||||
"color": true,
|
||||
"radius": true,
|
||||
"style": true,
|
||||
"width": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"color": true,
|
||||
"radius": true,
|
||||
"style": true,
|
||||
"width": true
|
||||
}
|
||||
},
|
||||
"__experimentalStyle": {
|
||||
"typography": {
|
||||
"fontSize": "1.5em",
|
||||
"lineHeight": "1.6"
|
||||
}
|
||||
},
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-pullquote-editor",
|
||||
"style": "wp-block-pullquote"
|
||||
}
|
||||
11
wp-includes/blocks/pullquote/editor-rtl.css
Normal file
11
wp-includes/blocks/pullquote/editor-rtl.css
Normal file
@@ -0,0 +1,11 @@
|
||||
.wp-block-pullquote.is-style-solid-color blockquote p {
|
||||
font-size: 32px;
|
||||
}
|
||||
.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation {
|
||||
text-transform: none;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block-pullquote__citation {
|
||||
color: inherit;
|
||||
}
|
||||
1
wp-includes/blocks/pullquote/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/pullquote/editor-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{font-style:normal;text-transform:none}.wp-block-pullquote__citation{color:inherit}
|
||||
11
wp-includes/blocks/pullquote/editor.css
Normal file
11
wp-includes/blocks/pullquote/editor.css
Normal file
@@ -0,0 +1,11 @@
|
||||
.wp-block-pullquote.is-style-solid-color blockquote p {
|
||||
font-size: 32px;
|
||||
}
|
||||
.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation {
|
||||
text-transform: none;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block-pullquote__citation {
|
||||
color: inherit;
|
||||
}
|
||||
1
wp-includes/blocks/pullquote/editor.min.css
vendored
Normal file
1
wp-includes/blocks/pullquote/editor.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{font-style:normal;text-transform:none}.wp-block-pullquote__citation{color:inherit}
|
||||
110
wp-includes/blocks/pullquote/style-rtl.css
Normal file
110
wp-includes/blocks/pullquote/style-rtl.css
Normal file
@@ -0,0 +1,110 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
.wp-block-pullquote {
|
||||
text-align: center;
|
||||
overflow-wrap: break-word;
|
||||
box-sizing: border-box;
|
||||
margin: 0 0 1em 0;
|
||||
padding: 4em 0;
|
||||
}
|
||||
.wp-block-pullquote p,
|
||||
.wp-block-pullquote blockquote {
|
||||
color: inherit;
|
||||
}
|
||||
.wp-block-pullquote blockquote {
|
||||
margin: 0;
|
||||
}
|
||||
.wp-block-pullquote p {
|
||||
margin-top: 0;
|
||||
}
|
||||
.wp-block-pullquote p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.wp-block-pullquote.alignleft, .wp-block-pullquote.alignright {
|
||||
max-width: 420px;
|
||||
}
|
||||
.wp-block-pullquote cite,
|
||||
.wp-block-pullquote footer {
|
||||
position: relative;
|
||||
}
|
||||
.wp-block-pullquote .has-text-color a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.has-text-align-left blockquote {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.has-text-align-right blockquote {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.has-text-align-center blockquote {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color {
|
||||
border: none;
|
||||
}
|
||||
.wp-block-pullquote.is-style-solid-color blockquote {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
max-width: 60%;
|
||||
}
|
||||
.wp-block-pullquote.is-style-solid-color blockquote p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
font-size: 2em;
|
||||
}
|
||||
.wp-block-pullquote.is-style-solid-color blockquote cite {
|
||||
text-transform: none;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block-pullquote :where(cite) {
|
||||
color: inherit;
|
||||
display: block;
|
||||
}
|
||||
1
wp-includes/blocks/pullquote/style-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/pullquote/style-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-pullquote{box-sizing:border-box;margin:0 0 1em;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:right}.wp-block-pullquote.has-text-align-right blockquote{text-align:left}.wp-block-pullquote.has-text-align-center blockquote{text-align:center}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote :where(cite){color:inherit;display:block}
|
||||
110
wp-includes/blocks/pullquote/style.css
Normal file
110
wp-includes/blocks/pullquote/style.css
Normal file
@@ -0,0 +1,110 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
.wp-block-pullquote {
|
||||
text-align: center;
|
||||
overflow-wrap: break-word;
|
||||
box-sizing: border-box;
|
||||
margin: 0 0 1em 0;
|
||||
padding: 4em 0;
|
||||
}
|
||||
.wp-block-pullquote p,
|
||||
.wp-block-pullquote blockquote {
|
||||
color: inherit;
|
||||
}
|
||||
.wp-block-pullquote blockquote {
|
||||
margin: 0;
|
||||
}
|
||||
.wp-block-pullquote p {
|
||||
margin-top: 0;
|
||||
}
|
||||
.wp-block-pullquote p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.wp-block-pullquote.alignleft, .wp-block-pullquote.alignright {
|
||||
max-width: 420px;
|
||||
}
|
||||
.wp-block-pullquote cite,
|
||||
.wp-block-pullquote footer {
|
||||
position: relative;
|
||||
}
|
||||
.wp-block-pullquote .has-text-color a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.has-text-align-left blockquote {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.has-text-align-right blockquote {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.has-text-align-center blockquote {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color {
|
||||
border: none;
|
||||
}
|
||||
.wp-block-pullquote.is-style-solid-color blockquote {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 60%;
|
||||
}
|
||||
.wp-block-pullquote.is-style-solid-color blockquote p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
font-size: 2em;
|
||||
}
|
||||
.wp-block-pullquote.is-style-solid-color blockquote cite {
|
||||
text-transform: none;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block-pullquote :where(cite) {
|
||||
color: inherit;
|
||||
display: block;
|
||||
}
|
||||
1
wp-includes/blocks/pullquote/style.min.css
vendored
Normal file
1
wp-includes/blocks/pullquote/style.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-pullquote{box-sizing:border-box;margin:0 0 1em;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:left}.wp-block-pullquote.has-text-align-right blockquote{text-align:right}.wp-block-pullquote.has-text-align-center blockquote{text-align:center}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote :where(cite){color:inherit;display:block}
|
||||
13
wp-includes/blocks/pullquote/theme-rtl.css
Normal file
13
wp-includes/blocks/pullquote/theme-rtl.css
Normal file
@@ -0,0 +1,13 @@
|
||||
.wp-block-pullquote {
|
||||
border-top: 4px solid currentColor;
|
||||
border-bottom: 4px solid currentColor;
|
||||
margin-bottom: 1.75em;
|
||||
color: currentColor;
|
||||
}
|
||||
.wp-block-pullquote :where(cite),
|
||||
.wp-block-pullquote :where(footer), .wp-block-pullquote__citation {
|
||||
color: currentColor;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.8125em;
|
||||
font-style: normal;
|
||||
}
|
||||
1
wp-includes/blocks/pullquote/theme-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/pullquote/theme-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote :where(cite),.wp-block-pullquote :where(footer),.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}
|
||||
13
wp-includes/blocks/pullquote/theme.css
Normal file
13
wp-includes/blocks/pullquote/theme.css
Normal file
@@ -0,0 +1,13 @@
|
||||
.wp-block-pullquote {
|
||||
border-top: 4px solid currentColor;
|
||||
border-bottom: 4px solid currentColor;
|
||||
margin-bottom: 1.75em;
|
||||
color: currentColor;
|
||||
}
|
||||
.wp-block-pullquote :where(cite),
|
||||
.wp-block-pullquote :where(footer), .wp-block-pullquote__citation {
|
||||
color: currentColor;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.8125em;
|
||||
font-style: normal;
|
||||
}
|
||||
1
wp-includes/blocks/pullquote/theme.min.css
vendored
Normal file
1
wp-includes/blocks/pullquote/theme.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote :where(cite),.wp-block-pullquote :where(footer),.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}
|
||||
Reference in New Issue
Block a user