first commit
This commit is contained in:
86
wp-includes/blocks/page-list/block.json
Normal file
86
wp-includes/blocks/page-list/block.json
Normal file
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/page-list",
|
||||
"title": "Page List",
|
||||
"category": "widgets",
|
||||
"allowedBlocks": [ "core/page-list-item" ],
|
||||
"description": "Display a list of all pages.",
|
||||
"keywords": [ "menu", "navigation" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"parentPageID": {
|
||||
"type": "integer",
|
||||
"default": 0
|
||||
},
|
||||
"isNested": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"usesContext": [
|
||||
"textColor",
|
||||
"customTextColor",
|
||||
"backgroundColor",
|
||||
"customBackgroundColor",
|
||||
"overlayTextColor",
|
||||
"customOverlayTextColor",
|
||||
"overlayBackgroundColor",
|
||||
"customOverlayBackgroundColor",
|
||||
"fontSize",
|
||||
"customFontSize",
|
||||
"showSubmenuIcon",
|
||||
"style",
|
||||
"openSubmenusOnClick",
|
||||
"submenuVisibility"
|
||||
],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"typography": {
|
||||
"fontSize": true,
|
||||
"lineHeight": true,
|
||||
"__experimentalFontFamily": true,
|
||||
"__experimentalFontWeight": true,
|
||||
"__experimentalFontStyle": true,
|
||||
"__experimentalTextTransform": true,
|
||||
"__experimentalTextDecoration": true,
|
||||
"__experimentalLetterSpacing": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"fontSize": true
|
||||
}
|
||||
},
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
},
|
||||
"color": {
|
||||
"text": true,
|
||||
"background": true,
|
||||
"link": true,
|
||||
"gradients": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"background": true,
|
||||
"text": true,
|
||||
"link": true
|
||||
}
|
||||
},
|
||||
"__experimentalBorder": {
|
||||
"radius": true,
|
||||
"color": true,
|
||||
"width": true,
|
||||
"style": true
|
||||
},
|
||||
"spacing": {
|
||||
"padding": true,
|
||||
"margin": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"padding": false,
|
||||
"margin": false
|
||||
}
|
||||
},
|
||||
"contentRole": true
|
||||
},
|
||||
"editorStyle": "wp-block-page-list-editor",
|
||||
"style": "wp-block-page-list"
|
||||
}
|
||||
129
wp-includes/blocks/page-list/editor-rtl.css
Normal file
129
wp-includes/blocks/page-list/editor-rtl.css
Normal file
@@ -0,0 +1,129 @@
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
.wp-block-navigation.items-justified-space-between .wp-block-page-list > div,
|
||||
.wp-block-navigation.items-justified-space-between .wp-block-page-list {
|
||||
display: contents;
|
||||
flex: 1;
|
||||
}
|
||||
.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list > div, .wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list, .wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list > div, .wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list {
|
||||
flex: inherit;
|
||||
}
|
||||
|
||||
.wp-block-navigation .wp-block-navigation__submenu-container > .wp-block-page-list {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.wp-block-pages-list__item__link {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-page-list-modal {
|
||||
max-width: 480px;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-page-list-modal-buttons {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.wp-block-page-list .open-on-click:focus-within > .wp-block-navigation__submenu-container {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
width: auto;
|
||||
height: auto;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.wp-block-page-list__loading-indicator-container {
|
||||
padding: 8px 12px;
|
||||
}
|
||||
1
wp-includes/blocks/page-list/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/page-list/editor-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width:600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}
|
||||
129
wp-includes/blocks/page-list/editor.css
Normal file
129
wp-includes/blocks/page-list/editor.css
Normal file
@@ -0,0 +1,129 @@
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
.wp-block-navigation.items-justified-space-between .wp-block-page-list > div,
|
||||
.wp-block-navigation.items-justified-space-between .wp-block-page-list {
|
||||
display: contents;
|
||||
flex: 1;
|
||||
}
|
||||
.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list > div, .wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list, .wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list > div, .wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list {
|
||||
flex: inherit;
|
||||
}
|
||||
|
||||
.wp-block-navigation .wp-block-navigation__submenu-container > .wp-block-page-list {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.wp-block-pages-list__item__link {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-page-list-modal {
|
||||
max-width: 480px;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-page-list-modal-buttons {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.wp-block-page-list .open-on-click:focus-within > .wp-block-navigation__submenu-container {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
width: auto;
|
||||
height: auto;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.wp-block-page-list__loading-indicator-container {
|
||||
padding: 8px 12px;
|
||||
}
|
||||
1
wp-includes/blocks/page-list/editor.min.css
vendored
Normal file
1
wp-includes/blocks/page-list/editor.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width:600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}
|
||||
15
wp-includes/blocks/page-list/style-rtl.css
Normal file
15
wp-includes/blocks/page-list/style-rtl.css
Normal file
@@ -0,0 +1,15 @@
|
||||
.wp-block-navigation .wp-block-page-list {
|
||||
display: flex;
|
||||
flex-direction: var(--navigation-layout-direction, initial);
|
||||
justify-content: var(--navigation-layout-justify, initial);
|
||||
align-items: var(--navigation-layout-align, initial);
|
||||
flex-wrap: var(--navigation-layout-wrap, wrap);
|
||||
background-color: inherit;
|
||||
}
|
||||
.wp-block-navigation .wp-block-navigation-item {
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
.wp-block-page-list {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
1
wp-includes/blocks/page-list/style-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/page-list/style-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-navigation .wp-block-page-list{align-items:var(--navigation-layout-align,initial);background-color:inherit;display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.wp-block-page-list{box-sizing:border-box}
|
||||
15
wp-includes/blocks/page-list/style.css
Normal file
15
wp-includes/blocks/page-list/style.css
Normal file
@@ -0,0 +1,15 @@
|
||||
.wp-block-navigation .wp-block-page-list {
|
||||
display: flex;
|
||||
flex-direction: var(--navigation-layout-direction, initial);
|
||||
justify-content: var(--navigation-layout-justify, initial);
|
||||
align-items: var(--navigation-layout-align, initial);
|
||||
flex-wrap: var(--navigation-layout-wrap, wrap);
|
||||
background-color: inherit;
|
||||
}
|
||||
.wp-block-navigation .wp-block-navigation-item {
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
.wp-block-page-list {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
1
wp-includes/blocks/page-list/style.min.css
vendored
Normal file
1
wp-includes/blocks/page-list/style.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-navigation .wp-block-page-list{align-items:var(--navigation-layout-align,initial);background-color:inherit;display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.wp-block-page-list{box-sizing:border-box}
|
||||
Reference in New Issue
Block a user